Skip to content

Commit

Permalink
refactor(dict): { 类 => 類別 }
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Nov 19, 2022
1 parent 888aff5 commit 203d4cc
Show file tree
Hide file tree
Showing 7 changed files with 929 additions and 920 deletions.
1 change: 1 addition & 0 deletions lib/static/synonym.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ IP 位址,IP 地址
空閒,空閑,空闲
符合,匹配
範例,示例
類別,类
線上,在線
縮排,缩进
自訂,自定义
Expand Down
1,752 changes: 876 additions & 876 deletions test/__snapshots__/handle-text.spec.ts.snap

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions test/__snapshots__/properties.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ inspection.dead.code.export.results.instantiated.from.heading=實例化
inspection.dead.code.export.results.no.instantiations.found=沒有實例化發現.
inspection.dead.code.problem.synopsis=欄位未分配.
inspection.dead.code.problem.synopsis1=欄位未使用.
inspection.dead.code.problem.synopsis10=匿名類宣告上下文從入口點是不可到達的.類是從來沒有實例化.
inspection.dead.code.problem.synopsis11=未發現類引用。類 static 初始設定式不可到達。
inspection.dead.code.problem.synopsis12=類有一個實例化但它無法存取從入口點.
inspection.dead.code.problem.synopsis13=類是不實例化.
inspection.dead.code.problem.synopsis14=<ul><li>abstract 方法沒有實作,或</li><li>實作類從未實例化,或</li><li>一個實例無法從入口點到達。</li></ul>
inspection.dead.code.problem.synopsis15=<ul><li>方法所有者類沒有實例化,或</li><li>一個實例是不是從入口點到達。</li></ul>
inspection.dead.code.problem.synopsis10=匿名類別宣告上下文從入口點是不可到達的.類別是從來沒有實例化.
inspection.dead.code.problem.synopsis11=未發現類別引用。類別 static 初始設定式不可到達。
inspection.dead.code.problem.synopsis12=類別有一個實例化但它無法存取從入口點.
inspection.dead.code.problem.synopsis13=類別是不實例化.
inspection.dead.code.problem.synopsis14=<ul><li>abstract 方法沒有實作,或</li><li>實作類別從未實例化,或</li><li>一個實例無法從入口點到達。</li></ul>
inspection.dead.code.problem.synopsis15=<ul><li>方法所有者類別沒有實例化,或</li><li>一個實例是不是從入口點到達。</li></ul>
inspection.dead.code.problem.synopsis16=方法從未使用。
inspection.dead.code.problem.synopsis17=方法使用(s),但他們都屬於遞歸調用鏈,沒有成員可從入口點.
inspection.dead.code.problem.synopsis18=方法從入口點是不可到達的.
inspection.dead.code.problem.synopsis19=類和{0, choice, 1#1|2#{0,number}}個實作都沒有實例化.
inspection.dead.code.problem.synopsis19=類別和{0, choice, 1#1|2#{0,number}}個實作都沒有實例化.
inspection.dead.code.problem.synopsis2=欄位已被分配,從未被存取。
inspection.dead.code.problem.synopsis20=類有 {0, choice, 1#1|2#{0,number}}實例,但他們是不可達的切入點。
inspection.dead.code.problem.synopsis21=方法從未用作此{0}的成員,但僅作為實作類的成員。如果從{0}中移除該方法,專案將保持相容。
inspection.dead.code.problem.synopsis20=類別有 {0, choice, 1#1|2#{0,number}}實例,但他們是不可達的切入點。
inspection.dead.code.problem.synopsis21=方法從未用作此{0}的成員,但僅作為實作類別的成員。如果從{0}中移除該方法,專案將保持相容。
inspection.dead.code.problem.synopsis22=方法覆蓋一個庫方法但<ul><li>其{0}是從來沒有實例化或</li><li>其{0}實例從入口點是不可到達的..</li></ul>
inspection.dead.code.problem.synopsis23={0}是沒有實作.
inspection.dead.code.problem.synopsis24={0} 有一個實作但 <ul><li>這是從來沒有實例化或</li><li>沒有實例化從入口點是可及的.</li></ul>
Expand All @@ -61,7 +61,7 @@ inspection.dead.code.problem.synopsis7.suspicious=沒有可到達的實例化。
inspection.dead.code.problem.synopsis8=具有可到達的實作實例化。在專案程式碼中發現 {0, choice, 1#1 個實例化|2#{0, number} 個實例化}
inspection.dead.code.problem.synopsis8.suspicious=沒有可達的實例化實作。在專案程式碼中找到{0, choice, 1#1|2#{0, number}}個實例.
inspection.dead.code.problem.synopsis9=在專案程式碼中發現{0, choice, 1#1|2#{0, number}}個實例化。
inspection.dead.code.problem.synopsis9.suspicious=匿名類上下文不可達。類未被實例化。在專案程式碼中找到{0, choice, 1#1|2#{0, number}}個實例化。
inspection.dead.code.problem.synopsis9.suspicious=匿名類別上下文不可達。類別未被實例化。在專案程式碼中找到{0, choice, 1#1|2#{0, number}}個實例化。
inspection.dead.code.remove.user.defined.entry.point.quickfix=刪除使用者定義的入口點
inspection.dead.code.safe.delete.quickfix=安全刪除
inspection.dead.code.commented.hint=已註釋掉
Expand All @@ -73,14 +73,14 @@ inspection.disabled.error=檢查''{0}''是禁用:{1}.
inspection.disabled.wrong.id=檢查''{0}''是禁用:ID''{1}''不符合''{2}''模式.
inspection.display.name.syntax.error=語法錯誤
inspection.export.results.abstract=abstract
inspection.export.results.abstract.class=abstract
inspection.export.results.abstract.class=abstract 類別
inspection.export.results.anonymous.ref.in.owner=位於
inspection.export.results.at.line=行
inspection.export.results.capitalized.abstract.class=Abstract\\\\&nbsp;class
inspection.export.results.capitalized.class=
inspection.export.results.capitalized.class=類別
inspection.export.results.capitalized.interface=接口
inspection.export.results.capitalized.location=位置
inspection.export.results.class=
inspection.export.results.class=類別
inspection.export.results.constructor=構造函數
inspection.export.results.dead.code=未使用的宣告
inspection.export.results.derived.methods=派生方法
Expand Down
58 changes: 29 additions & 29 deletions test/__snapshots__/segment-file.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2923,7 +2923,7 @@ action.edit.file.templates=編輯檔案模板…
error.unable.to.parse.template.message=無法解析模板 "{0}",\\n\\
錯誤訊息: {1}
error.invalid.template.file.name.or.extension=無效的模板文件名或副檔名
title.cannot.create.class=無法創建類
title.cannot.create.class=無法創建類別
title.cannot.create.file=無法創建檔案
title.new.from.template=新建 {0}
error.please.enter.a.file.name=指定文件名
Expand Down Expand Up @@ -2965,18 +2965,18 @@ node.hierarchy.invalid=[無效]
node.call.hierarchy.N.usages= ({0} 個用法)
title.hierarchy.callees.of={0} 的被調用方
title.hierarchy.callers.of={0} 的調用方
action.hide.non.implementations=隱藏方法未合法實作的類
hierarchy.legend.method.is.defined.in.class=方法已在類中定義
hierarchy.legend.method.defined.in.superclass=方法未在類中定義,但在其超類中定義
hierarchy.legend.method.should.be.defined=必須定義方法,因為類不為 abstract
action.hide.non.implementations=隱藏方法未合法實作的類別
hierarchy.legend.method.is.defined.in.class=方法已在類別中定義
hierarchy.legend.method.defined.in.superclass=方法未在類別中定義,但在其超類別中定義
hierarchy.legend.method.should.be.defined=必須定義方法,因為類別不為 abstract
title.hierarchy.method=方法 {0}
title.hierarchy.subtypes={0}的子類型
title.hierarchy.supertypes={0}的父類型
action.base.on.this.class=基於此類
progress.deleting.class=正在刪除類 {0}
title.hierarchy.class={0}
action.view.class.hierarchy=類層次結構
action.description.view.class.hierarchy=選擇類層次結構
action.base.on.this.class=基於此類別
progress.deleting.class=正在刪除類別 {0}
title.hierarchy.class=類別{0}
action.view.class.hierarchy=類別層次結構
action.description.view.class.hierarchy=選擇類別層次結構
action.view.subtypes.hierarchy=子類型層次結構
action.description.view.subtypes.hierarchy=切換到子類型層次結構
action.view.supertypes.hierarchy=父類型層次結構
Expand Down Expand Up @@ -3080,8 +3080,8 @@ action.package=軟體套件
action.directory=目錄
error.invalid.file.name=''{0}'' 是無效的文件名
error.invalid.directory.name=''{0}'' 不是有效的目錄名稱
error.invalid.java.package.name=無效的軟體套件名稱;無法在內部創建 Java
error.invalid.java.package.name.format=無效的軟體套件名稱格式設定;無法在內部創建 Java
error.invalid.java.package.name=無效的軟體套件名稱;無法在內部創建 Java 類別
error.invalid.java.package.name.format=無效的軟體套件名稱格式設定;無法在內部創建 Java 類別
error.file.with.name.already.exists=名稱為 ''{0}'' 的檔案已存在
error.directory.with.name.already.exists=名稱為 ''{0}'' 的目錄已存在
error.package.with.name.already.exists=名稱為 ''{0}'' 的軟體套件已存在
Expand Down Expand Up @@ -3353,7 +3353,7 @@ scope.recent.modified.files=最近更改的檔案
scope.selected.files=選定{0,choice,1#檔案|2#檔案}
scope.selected.directories=選定{0,choice,1#目錄|2#目錄}
scope.selected.files.and.directories=選定{0,choice,1#檔案|2#檔案}{1,choice,1#目錄|2#目錄}
scope.class.hierarchy=類層次結構
scope.class.hierarchy=類別層次結構
progress.searching= 正在搜尋…
title.tip.of.the.day=每日小技巧
action.open.tip=開啟(&O)…
Expand All @@ -3376,9 +3376,9 @@ button.copy=複製(&C)
description.copy.text.to.clipboard=將文本複製到剪貼簿
checkbox.copy.javadoc=複製 JavaDoc(&J)
checkbox.insert.at.override=插入 @Override(&O)
node.memberchooser.all.classes=所有類
node.memberchooser.all.classes=所有類別
action.select.none=無選擇(&N)
action.show.classes=顯示類
action.show.classes=顯示類別
action.expand.all=全部展開
action.collapse.all=全部摺疊
checkbox.narrow.down.the.list.on.typing=在輸入時縮小列表(&N)
Expand Down Expand Up @@ -3577,7 +3577,7 @@ FileChooser.refreshActionLabelText=重新整理
mixed.bag.installation=您的 {0} 安裝似乎已損壞,因為存在多個版本標記。當較新版本的歸檔被提取到包含現有安裝的目錄中時,通常就會發生這種情況。為避免出現崩潰,請從頭開始將 IDE 重新安裝到一個空目錄。
vm.options.env.vars=檢測到使用了 Java 選項環境變數。此類變數將覆寫 IDE 設定檔案(*.vmoptions),並可能導致性能和穩定性問題。請考慮刪除以下變數: {0}
vm.options.env.vars=檢測到使用了 Java 選項環境變數。此類別變數將覆寫 IDE 設定檔案(*.vmoptions),並可能導致性能和穩定性問題。請考慮刪除以下變數: {0}
code.cache.warn.message={0} MB 的程式碼快取大小不足。請將 ''-XX:ReservedCodeCacheSize'' 增加到 {1} MB 或以上,以避免性能問題。
vm.options.edit.action.cap=編輯自定義 VM 選項
Expand Down Expand Up @@ -3637,8 +3637,8 @@ new.dir.project.error.invalid=專案目錄路徑無效
new.dir.project.create=創建
go.to.class.title.prefix=轉到{0}
go.to.class.kind.text=
go.to.class.kind.text.pluralized=
go.to.class.kind.text=類別
go.to.class.kind.text.pluralized=類別
go.to.class.dumb.mode.message=在建置索引前,轉到 {0} 操作不可用,改用轉到檔案
go.to.class.action.description=按名稱快速導航到{0}
Expand Down Expand Up @@ -3676,7 +3676,7 @@ searcheverywhere.found.targets.title=未排序的結果
searcheverywhere.history.shortcuts.hint=按 {0}{1} 瀏覽搜尋歷史記錄
searcheverywhere.open.in.split.shortcuts.hint=按 {0} 在右拆分中開啟檔案
searcheverywhere.open.in.new.window.shortcuts.hint=按 {0} 在新窗口中開啟檔案
searcheverywhere.nothing.found.for.contributor.anywhere=未找到使用此類名的 {0}
searcheverywhere.nothing.found.for.contributor.anywhere=未找到使用此類別名的 {0}
searcheverywhere.nothing.found.for.all.anywhere=找不到任何內容
searcheverywhere.indexing.mode.not.supported=在 {1} 更新索引期間,無法在 ''{0}'' 中搜尋
searcheverywhere.indexing.incomplete.results=在 {1} 更新索引期間,''{0}'' 中的搜尋結果可能不完整
Expand Down Expand Up @@ -3848,7 +3848,7 @@ notifications.configurable.column.log=日誌
notifications.configurable.play.sound=播放聲音
notifications.configurable.column.read.aloud=大聲朗讀
notifications.configurable.column.popup=彈出視窗類型:
quick.lists.description=<html>快速列表允許您定義常用的操作組 (例如,重構或 VCS 操作),並將鍵盤快捷鍵分配給此類組。</html>
quick.lists.description=<html>快速列表允許您定義常用的操作組 (例如,重構或 VCS 操作),並將鍵盤快捷鍵分配給此類別組。</html>
quick.lists.not.empty.name=快速列表應具有非空名稱
path.macro.ignored.variables=忽略的變數:
path.macro.use.semicolon=使用 ; 分隔忽略的變數
Expand Down Expand Up @@ -4159,7 +4159,7 @@ search.everywhere.group.name.actions=操作
search.everywhere.group.name.files=檔案
search.everywhere.group.name.symbols=符號
search.everywhere.group.name.recent.files=最近的檔案
search.everywhere.filter.classes.description=轉到類
search.everywhere.filter.classes.description=轉到類別
search.everywhere.filter.files.description=轉到檔案
search.everywhere.filter.symbols.description=轉到符號
big.popup.filter.button.all=所有
Expand Down Expand Up @@ -4679,19 +4679,19 @@ icon.modules.testResourcesRoot.tooltip=測試資源根
icon.modules.testRoot.tooltip=測試源根
icon.modules.unloadedModule.tooltip=已移除的模組
icon.nodes.abstractClass.tooltip=abstract
icon.nodes.abstractClass.tooltip=abstract 類別
icon.nodes.abstractException.tooltip=abstract 異常
icon.nodes.abstractMethod.tooltip=abstract 方法
icon.nodes.annotationtype.tooltip=註解類型
icon.nodes.anonymousClass.tooltip=匿名類
icon.nodes.anonymousClass.tooltip=匿名類別
icon.nodes.c_plocal.tooltip=package-local
icon.nodes.c_private.tooltip=private
icon.nodes.c_protected.tooltip=protected
icon.nodes.c_public.tooltip=public
icon.nodes.class.tooltip=
icon.nodes.classInitializer.tooltip=類初始設定式
icon.nodes.class.tooltip=類別
icon.nodes.classInitializer.tooltip=類別初始設定式
icon.nodes.enum.tooltip=枚舉
icon.nodes.exceptionClass.tooltip=異常類
icon.nodes.exceptionClass.tooltip=異常類別
icon.nodes.excludedFromCompile.tooltip=已從編譯中排除
icon.nodes.field.tooltip=欄位
icon.nodes.finalMark.tooltip=final
Expand Down Expand Up @@ -4911,8 +4911,8 @@ required.plugin.at.least.versions=,版本至少為 ''{0}''
required.plugin.at.most.versions=,版本最高為 ''{0}''
window.title.switcher=切換器
progress.title.cds.optimize.startup=正在最佳化啟動性能…
progress.text.collecting.classes=正在收集類列表
progress.text.generate.classes.archive=正在生成類歸檔
progress.text.collecting.classes=正在收集類別列表
progress.text.generate.classes.archive=正在生成類別歸檔
only.at.line.start=僅在行首(\\\\&O)
dialog.message.internal.error=內部錯誤
link.label.wizard.step.plugin.customize=自訂…
Expand Down Expand Up @@ -5291,7 +5291,7 @@ untrusted.project.general.dialog.title=信任專案?
to.create.new.file.tooltip=要創建新檔案,請按 <b>{0}</b>。或者右擊任何資料夾並選擇“新建 | \\\\&lt;file type\\\\&gt;</b>
wrong.number.of.arguments.usage.ide.executable.exit=實參數量錯誤。用法: <ide executable> exit [--restart]
action.text.remove.all.shortcuts=移除所有快捷鍵
general.module.type.description=一個允許使用單獨的檔案並編譯 Java 和 Kotlin 類的基本專案
general.module.type.description=一個允許使用單獨的檔案並編譯 Java 和 Kotlin 類別的基本專案
updates.settings.recommend.toolbox=我們推薦 <a href=''{0}''>{1}</a>
updates.plugin.ready.tooltip={0}{1,choice,1#延伸模組|2#延伸模組}{1,choice,1#更新|2#更新}可用
plugins.configurable.bundled.updates=捆綁的延伸模組更新
Expand Down
8 changes: 6 additions & 2 deletions test/__snapshots__/segment.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ exports[`segment 服務器 - 以下文件被禁止,因为其中一个文件很

exports[`segment 查找 - 查找下一个/移至下一个匹配项(_N)… 1`] = `"尋找下一個/移至下一個符合項(_N)…"`;

exports[`segment 案源 - search.scope.project.non.source.files=项目非源文件 1`] = `"search.scope.project.non.source.files=專案非原始檔"`;

exports[`segment 案源 - search.scope.project.source.files=项目源文件 1`] = `"search.scope.project.source.files=專案原始檔"`;

exports[`segment 構建 - 构建专案 1`] = `"建置專案"`;

exports[`segment 標簽頁 - 關閉組內未固定標簽頁 1`] = `"關閉組內未固定頁籤"`;
Expand Down Expand Up @@ -196,9 +200,9 @@ exports[`should include 更高 - 或更高级别时 1`] = `"或更高級別時"`

exports[`should include 構建 - about.box.build.number=内部版本号 #{0} 1`] = `"about.box.build.number=構建版本 #{0}"`;

exports[`should include 標頭檔 - ,创建新的 Objective-C 类和头文件 1`] = `",創建新的 Objective-C 類和標頭檔"`;
exports[`should include 標頭檔 - ,创建新的 Objective-C 类和头文件 1`] = `",創建新的 Objective-C 類別和標頭檔"`;

exports[`should include 標頭檔 - ,创建新的 Objective-C 类和头档案 1`] = `",創建新的 Objective-C 類和標頭檔"`;
exports[`should include 標頭檔 - ,创建新的 Objective-C 类和头档案 1`] = `",創建新的 Objective-C 類別和標頭檔"`;

exports[`should include 模組 - title.module.sub.group=模块子组 1`] = `"title.module.sub.group=模組子組"`;

Expand Down
1 change: 1 addition & 0 deletions test/segment-file.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const words = array_unique_overwrite([
`標籤頁`,
`文件夾`,
`插件`,
'別別',
].reduce((ls, s) =>
{

Expand Down
3 changes: 3 additions & 0 deletions test/segment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ describe(`segment`, () => {

[`階`, `或更高级别时`],

[`案源`, `search.scope.project.source.files=项目源文件`],
[`案源`, `search.scope.project.non.source.files=项目非源文件`],

]).sort((a, b) => {
return _comp(a[0], b[0])
}).forEach(text => {
Expand Down

0 comments on commit 203d4cc

Please sign in to comment.