Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalizationEditor has localized itself into Simplified Chinese #59

Merged
merged 1 commit into from
Oct 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sources/LocalizationEditor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@

/* Begin PBXFileReference section */
172274D320D933970036EA4E /* LocalizationGroup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocalizationGroup.swift; sourceTree = "<group>"; };
9645AAD52361A3DC00968C00 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "../zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
A117B6AC21D0FFC0008F10E4 /* LocalizableStrings-en-with-complete-messages.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; path = "LocalizableStrings-en-with-complete-messages.strings"; sourceTree = "<group>"; };
A117B6AE21D10060008F10E4 /* LocalizableStrings-en-with-incomplete-messages.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; path = "LocalizableStrings-en-with-incomplete-messages.strings"; sourceTree = "<group>"; };
A15A5A4121D908C400D3C791 /* Parser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Parser.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -376,6 +377,7 @@
knownRegions = (
en,
Base,
"zh-Hans",
);
mainGroup = F3D9C93920BEC7460081830A;
productRefGroup = F3D9C94320BEC7460081830A /* Products */;
Expand Down Expand Up @@ -514,6 +516,7 @@
isa = PBXVariantGroup;
children = (
F3AD2CDD23619E5C00558765 /* en */,
9645AAD52361A3DC00968C00 /* zh-Hans */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand All @@ -533,6 +536,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
Expand Down Expand Up @@ -592,6 +596,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
Expand Down
6 changes: 3 additions & 3 deletions sources/LocalizationEditor/UI/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="roundTextured" title="Open folder first" bezelStyle="texturedRounded" alignment="left" lineBreakMode="truncatingTail" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="ZYs-7U-5gn" id="aOQ-vO-her">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu"/>
<font key="font" metaFont="system"/>
<menu key="menu" id="glw-fD-iej">
<items>
<menuItem title="Open folder first" state="on" id="ZYs-7U-5gn"/>
Expand Down Expand Up @@ -298,7 +298,7 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="roundTextured" title="All" bezelStyle="texturedRounded" alignment="left" lineBreakMode="truncatingTail" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" selectedItem="DQt-48-fwD" id="8th-lD-zUo">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu"/>
<font key="font" metaFont="system"/>
<menu key="menu" id="NFb-X0-5k3">
<items>
<menuItem title="All" state="on" id="DQt-48-fwD">
Expand Down Expand Up @@ -360,7 +360,7 @@
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" usesAutomaticRowHeights="YES" headerView="Bry-MY-OIY" id="ByO-mI-RPv">
<rect key="frame" x="0.0" y="0.0" width="738" height="479"/>
<autoresizingMask key="autoresizingMask"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
Expand Down
1 change: 1 addition & 0 deletions sources/LocalizationEditor/UI/Cells/ActionsCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final class ActionsCell: NSTableCellView {
super.awakeFromNib()

deleteButton.image = NSImage(named: NSImage.stopProgressTemplateName)
deleteButton.toolTip = "delete".localized
}

@IBAction private func removalClicked(_ sender: NSButton) {
Expand Down
1 change: 1 addition & 0 deletions sources/LocalizationEditor/UI/WindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ final class WindowController: NSWindowController {
private func setupUI() {
openButton.image = NSImage(named: NSImage.folderName)
openButton.toolTip = "open_folder".localized
searchField.toolTip = "search".localized
filterButton.toolTip = "filter".localized
selectButton.toolTip = "string_table".localized
newButton.toolTip = "new_translation".localized
Expand Down
1 change: 1 addition & 0 deletions sources/LocalizationEditor/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"all" = "All";
"missing" = "Missing";
"actions" = "Actions";
"delete" = "Delete";
"open_folder" = "Open folder";
"filter" = "Filter";
"string_table" = "String table";
Expand Down
41 changes: 41 additions & 0 deletions sources/LocalizationEditor/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
Localizable.strings
LocalizationEditor

Created by Igor Kulman on 24/10/2019.
Copyright © 2019 Igor Kulman. All rights reserved.
*/

"key" = "Key";
"comment" = "Comment";
"cancel" = "取消";
"add" = "添加";
"view" = "视图";
"file" = "文件";
"open_folder_with" = "打开带有本地化文件的文件夹...";
"edit" = "编辑";
"cut" = "剪切";
"copy" = "复制";
"paste" = "粘贴";
"select_all" = "选择全部";
"enter_full_screen" = "进入全屏幕";
"window" = "窗口";
"minimize" = "最小化";
"bring_all_to_front" = "前置全部窗口";
"zoom" = "缩放";
"all" = "全部";
"missing" = "缺失";
"actions" = "动作";
"delete" = "删除";
"open_folder" = "打开文件夹";
"filter" = "筛选";
"string_table" = "字符串表";
"new_translation" = "新的翻译";
"search" = "搜索";
"open_folder_first" = "请先打开文件夹";
"about" = "关于 LocalizationEditor";
"quit" = "退出 LocalizationEditor";
"show_all" = "显示全部";
"services" = "服务";
"hide_others" = "隐藏其他";
"hide_editor" = "隐藏 LocalizationEditor";