Skip to content

Commit

Permalink
feat: support Simplified Chinese localization (#133)
Browse files Browse the repository at this point in the history
* feat: support Simplified Chinese localization

* adjust the translation
  • Loading branch information
makhocheung authored Mar 21, 2022
1 parent 28c080a commit adc8036
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CodeEdit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
345F667427DF6C180069BD69 /* FileTabRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileTabRow.swift; sourceTree = "<group>"; };
34EE19BD27E0469C00F152CE /* BlurView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlurView.swift; sourceTree = "<group>"; };
5E3C6A3427E72AE000A7CA0D /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
70F2E28327E848720002BA81 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
B658FB2C27DA9E0F00EA4DBD /* CodeEdit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CodeEdit.app; sourceTree = BUILT_PRODUCTS_DIR; };
B658FB3127DA9E0F00EA4DBD /* WorkspaceView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WorkspaceView.swift; sourceTree = "<group>"; };
B658FB3327DA9E1000EA4DBD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -408,6 +409,7 @@
af,
fr,
ja,
"zh-Hans",
);
mainGroup = B658FB2327DA9E0F00EA4DBD;
packageReferences = (
Expand Down Expand Up @@ -568,6 +570,7 @@
20F8067027E65A5200EB7827 /* af */,
5E3C6A3427E72AE000A7CA0D /* fr */,
12F71F7127E833A000095416 /* ja */,
70F2E28327E848720002BA81 /* zh-Hans */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand Down
44 changes: 44 additions & 0 deletions CodeEdit/Localization/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"Hello, world!"="你好,世界";

// Settings - General Tab
"General"="通用";

// Settings - File Icon Style
"File Icon Style"="文件图标风格";
"Color"="颜色";
"Monochrome"="单色";

// Settings - Appearance
"Appearance"="外观";
"System"="系统";
"Light"="浅色";
"Dark"="深色";

// Settings - Reopen Behavior
"Reopen Behavior"="重新打开行为";
"Welcome Screen"="欢迎界面";
"Open Panel"="打开面板";
"New Document"="新建文档";

// Settings - Editor Theme
"Editor Theme"="编辑器主题";

// Welcome Screen
"Welcome to CodeEdit"="欢迎使用 CodeEdit";
"Version %@ (%@)"="版本 %@ (%@)";
"No Recent Projects"="没有最近项目";

// Welcome Screen - New File
"Create a new file"="创建新文件";
"Clone an exisiting project"="克隆现有项目";

// Welcome Screen - SCM
"Start working on something from a Git repository"="从 Git 存储库开始工作";
"Open a project or file"="打开项目或文件";

// Welcome Screen - Workspaces
"Open an existing project or file on your Mac"="在 Mac 上打开现有项目或文件";
"Show this window when CodeEdit launches"="CodeEdit 启动时显示此窗口";

//Editor Screen
"CodeEdit cannot open this file because its file type is not supported." = "CodeEdit 当前不支持此文件类型,无法打开此文件。";

0 comments on commit adc8036

Please sign in to comment.