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

Added missing Chines(Simplified) and Chinese(Traditional) localization #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions Apple Juice.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
00A7E06827D1BA5400E908B5 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "zh-Hans"; path = "zh-Hans.lproj/MainMenu.xib"; sourceTree = "<group>"; };
00A7E06927D1BA5400E908B5 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
00A7E06A27D1C07B00E908B5 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "zh-Hant"; path = "zh-Hant.lproj/MainMenu.xib"; sourceTree = "<group>"; };
00A7E06B27D1C07B00E908B5 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = "<group>"; };
5EF9F80621FB7A3300748374 /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = "<group>"; };
8E0D33AF1D3118CD002D3463 /* Apple Juice Today.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Apple Juice Today.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
8E0D33B41D3118CD002D3463 /* TodayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -413,6 +417,8 @@
it,
es,
"pt-BR",
"zh-Hans",
"zh-Hant",
);
mainGroup = 8EBEB4391C466091001DBE91;
packageReferences = (
Expand Down Expand Up @@ -577,6 +583,8 @@
C58CD0B92221D9A800D286C0 /* it */,
C58CD0BA2221DBB500D286C0 /* es */,
C58CD0BB2221E6B900D286C0 /* pt-BR */,
00A7E06827D1BA5400E908B5 /* zh-Hans */,
00A7E06A27D1C07B00E908B5 /* zh-Hant */,
);
name = MainMenu.xib;
sourceTree = "<group>";
Expand All @@ -591,6 +599,8 @@
8E954FA81C4EE528006D0F34 /* it */,
8E5BC0241C50D13D0077228F /* es */,
5EF9F80621FB7A3300748374 /* pt-BR */,
00A7E06927D1BA5400E908B5 /* zh-Hans */,
00A7E06B27D1C07B00E908B5 /* zh-Hant */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand Down
38 changes: 38 additions & 0 deletions AppleJuice/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Localizable.strings
// Apple Juice
//
// Chinese, Simplified


// Menu Items

"Charged" = "充电完成";
"Unknown" = "未知";
"Battery" = "电池";
"Power Adapter" = "电源适配器";
"Calculating" = "计算中…";


// Notifications

"Charged Notification Title" = "充电完成";
"Charged Notification Message" = "您的电池现已完成充电。";
"Low Battery Notification Title" = "%@ 剩余";
"Low Battery Notification Message" = "如果不插上电源适配器,您的 Mac 即将进入休眠。";


// Properties

"Time Remaining" = "剩余时间:";
"Percentage" = "百分比:";
"Power Usage" = "电量:";
"Charge" = "充电:";
"Cycle Count" = "循环计数:";
"Temperature" = "温度:";
"Power Source" = "电源:";
"Health" = "状态:";


// Units

"Watts" = "瓦特";
137 changes: 137 additions & 0 deletions AppleJuice/zh-Hans.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
<connections>
<outlet property="delegate" destination="Voe-Tx-rLC" id="GzC-gU-4Uq"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Apple_Juice" customModuleProvider="target"/>
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
<customObject id="FRD-GK-LcV" customClass="ApplicationController" customModule="Apple_Juice" customModuleProvider="target">
<connections>
<outlet property="applicationMenu" destination="tlM-TC-O58" id="Cfu-rX-6U8"/>
</connections>
</customObject>
<customObject id="hOe-ib-loY" customClass="ApplicationMenuDelegate" customModule="Apple_Juice" customModuleProvider="target"/>
<customObject id="Avc-Ie-Abt" customClass="SUUpdater"/>
<userDefaultsController representsSharedInstance="YES" id="OgL-rZ-xAG"/>
<menu id="tlM-TC-O58">
<items>
<menuItem title="未知..." enabled="NO" id="Jwd-Td-BfA">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="OYt-Th-ZmC"/>
<menuItem title="消息通知" id="uGl-yK-qDZ">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="消息通知" id="s9C-tt-TOv">
<items>
<menuItem title="5 %" id="BqN-sm-Uru">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.FivePercentNotificationPref" id="dFS-9B-FLf"/>
</connections>
</menuItem>
<menuItem title="10 %" id="yXd-MQ-b9b">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.TenPercentNotificationPref" id="pk3-fW-qx5"/>
</connections>
</menuItem>
<menuItem title="15 %" id="IiQ-lQ-6Kw">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.FifeteenPercentNotificationPref" id="qgh-4q-kHe"/>
</connections>
</menuItem>
<menuItem title="20 %" id="Pag-Zv-yRx">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.TwentyPercentNotificationPref" id="GGC-Ot-acB"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="fZI-EN-bOn"/>
<menuItem title="100 %" id="bgK-RS-y5X">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.HundredPercentNotificationPref" id="Vuz-F7-ftw"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="偏好配置" id="tiY-Hf-wFt">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="偏好配置" id="kuh-P6-ZjK">
<items>
<menuItem title="显示剩余时间" id="Kin-Z7-Y0F">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.ShowTimePref" id="5Mm-fA-cBY"/>
</connections>
</menuItem>
<menuItem title="隐藏菜单栏信息" id="Wmn-z6-g7g">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="enabled" keyPath="values.HideBatteryIconPref" id="8HY-3f-0ET">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
</binding>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.HideMenubarInfoPref" id="HHe-we-D6E"/>
</connections>
</menuItem>
<menuItem title="隐藏菜单栏图标" id="sbN-Mr-efU">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="OgL-rZ-xAG" name="value" keyPath="values.HideBatteryIconPref" id="6p3-vG-TYg"/>
<binding destination="OgL-rZ-xAG" name="enabled" keyPath="values.HideMenubarInfoPref" id="avg-d2-Fsg">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
</binding>
</connections>
</menuItem>
<menuItem title="开机启动" id="gXB-33-x5J">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<binding destination="FRD-GK-LcV" name="value" keyPath="launchAtLogin.isEnabled" id="Zx9-Yu-AB5"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem isSeparatorItem="YES" id="HoG-Jh-UIk"/>
<menuItem title="检查更新…" id="OFJ-1T-Wc5">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="checkForUpdates:" target="Avc-Ie-Abt" id="Aqj-nm-y4m"/>
</connections>
</menuItem>
<menuItem title="关于…" id="PUB-MR-Ddo">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="-1" id="vXr-y6-aUC"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="bcW-nq-A9L"/>
<menuItem title="退出" id="fXh-MN-Omu">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="terminate:" target="-1" id="f0e-26-aRM"/>
</connections>
</menuItem>
</items>
<connections>
<outlet property="delegate" destination="hOe-ib-loY" id="FJU-36-bfo"/>
</connections>
<point key="canvasLocation" x="-148" y="142"/>
</menu>
</objects>
</document>
38 changes: 38 additions & 0 deletions AppleJuice/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Localizable.strings
// Apple Juice
//
// Chinese, Traditional


// Menu Items

"Charged" = "充電完成";
"Unknown" = "未知";
"Battery" = "電池";
"Power Adapter" = "電源適配器";
"Calculating" = "計算中…";


// Notifications

"Charged Notification Title" = "充電完成";
"Charged Notification Message" = "您的電池現已完成充電。";
"Low Battery Notification Title" = "%@ 剩余";
"Low Battery Notification Message" = "如果不插上電源適配器,您的 Mac 即將進入休眠。";


// Properties

"Time Remaining" = "剩余時間:";
"Percentage" = "百分比:";
"Power Usage" = "電量:";
"Charge" = "充電:";
"Cycle Count" = "循環計數:";
"Temperature" = "溫度:";
"Power Source" = "電源:";
"Health" = "狀態:";


// Units

"Watts" = "瓦特";
Loading