Permalink
Browse files

Merge pull request #5 from pluwen/master

简体中文翻译
  • Loading branch information...
2 parents 9be2251 + 9f6d8d3 commit a1e32aa807d89113a2a00baef6c53f5421a20a08 @shahruz committed on GitHub Sep 8, 2016
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
0E5D4F26192B15560084F30C /* STPluginCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E5D4F25192B15560084F30C /* STPluginCellView.m */; };
+ 6F702A781D22271E00D62CB6 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6F702A7A1D22271E00D62CB6 /* Localizable.strings */; };
9FEE44C41BCEA38500F550FB /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FEE44C31BCEA38500F550FB /* WebKit.framework */; };
EA12D97F19354808000E5232 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = EA12D97E19354808000E5232 /* dsa_pub.pem */; };
EA5913BD192D627E00FF4CC0 /* Constants.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5913BC192D627E00FF4CC0 /* Constants.m */; };
@@ -46,7 +47,6 @@
EA75D492192AC4C4005CF0DF /* MagicalRecord+ShorthandSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = EA75D473192AC4C4005CF0DF /* MagicalRecord+ShorthandSupport.m */; };
EA75D493192AC4C4005CF0DF /* MagicalRecord.m in Sources */ = {isa = PBXBuildFile; fileRef = EA75D475192AC4C4005CF0DF /* MagicalRecord.m */; };
EA86F5CE192AB55F00B834ED /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EA86F5CD192AB55F00B834ED /* Cocoa.framework */; };
- EA86F5D8192AB55F00B834ED /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = EA86F5D6192AB55F00B834ED /* InfoPlist.strings */; };
EA86F5DA192AB55F00B834ED /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = EA86F5D9192AB55F00B834ED /* main.m */; };
EA86F5DE192AB55F00B834ED /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = EA86F5DC192AB55F00B834ED /* Credits.rtf */; };
EA86F5E1192AB55F00B834ED /* STAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = EA86F5E0192AB55F00B834ED /* STAppDelegate.m */; };
@@ -73,6 +73,11 @@
/* Begin PBXFileReference section */
0E5D4F24192B15560084F30C /* STPluginCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = STPluginCellView.h; sourceTree = "<group>"; };
0E5D4F25192B15560084F30C /* STPluginCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPluginCellView.m; sourceTree = "<group>"; };
+ 6F702A731D2223BE00D62CB6 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/MainMenu.strings"; sourceTree = "<group>"; };
+ 6F702A751D2223BE00D62CB6 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = "zh-Hans"; path = "zh-Hans.lproj/Credits.rtf"; sourceTree = "<group>"; };
+ 6F702A791D22271E00D62CB6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/Localizable.strings; sourceTree = "<group>"; };
+ 6F702A7B1D22272100D62CB6 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
+ 6F702A7C1D22272600D62CB6 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
9FEE44C31BCEA38500F550FB /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
EA12D97E19354808000E5232 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
EA5913BC192D627E00FF4CC0 /* Constants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Constants.m; sourceTree = "<group>"; };
@@ -155,7 +160,6 @@
EA86F5D1192AB55F00B834ED /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
EA86F5D2192AB55F00B834ED /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
EA86F5D5192AB55F00B834ED /* Sketch Toolbox-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Sketch Toolbox-Info.plist"; sourceTree = "<group>"; };
- EA86F5D7192AB55F00B834ED /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
EA86F5D9192AB55F00B834ED /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
EA86F5DB192AB55F00B834ED /* Sketch Toolbox-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Sketch Toolbox-Prefix.pch"; sourceTree = "<group>"; };
EA86F5DD192AB55F00B834ED /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
@@ -403,11 +407,11 @@
EA75D43C192AC4C4005CF0DF /* MagicalRecord */,
EA70F99D192ACD5300315D05 /* SSZipArchive */,
EA86F5D5192AB55F00B834ED /* Sketch Toolbox-Info.plist */,
- EA86F5D6192AB55F00B834ED /* InfoPlist.strings */,
EA86F5D9192AB55F00B834ED /* main.m */,
EA86F5DB192AB55F00B834ED /* Sketch Toolbox-Prefix.pch */,
EA86F5DC192AB55F00B834ED /* Credits.rtf */,
EA12D97E19354808000E5232 /* dsa_pub.pem */,
+ 6F702A7A1D22271E00D62CB6 /* Localizable.strings */,
);
name = "Supporting Files";
sourceTree = "<group>";
@@ -455,6 +459,7 @@
knownRegions = (
en,
Base,
+ "zh-Hans",
);
mainGroup = EA86F5C1192AB55F00B834ED;
productRefGroup = EA86F5CB192AB55F00B834ED /* Products */;
@@ -472,7 +477,7 @@
buildActionMask = 2147483647;
files = (
EA12D97F19354808000E5232 /* dsa_pub.pem in Resources */,
- EA86F5D8192AB55F00B834ED /* InfoPlist.strings in Resources */,
+ 6F702A781D22271E00D62CB6 /* Localizable.strings in Resources */,
EA86F5E9192AB55F00B834ED /* Images.xcassets in Resources */,
EA86F5DE192AB55F00B834ED /* Credits.rtf in Resources */,
EA86F5E4192AB55F00B834ED /* MainMenu.xib in Resources */,
@@ -530,18 +535,21 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
- EA86F5D6192AB55F00B834ED /* InfoPlist.strings */ = {
+ 6F702A7A1D22271E00D62CB6 /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
- EA86F5D7192AB55F00B834ED /* en */,
+ 6F702A791D22271E00D62CB6 /* Base */,
+ 6F702A7B1D22272100D62CB6 /* en */,
+ 6F702A7C1D22272600D62CB6 /* zh-Hans */,
);
- name = InfoPlist.strings;
+ name = Localizable.strings;
sourceTree = "<group>";
};
EA86F5DC192AB55F00B834ED /* Credits.rtf */ = {
isa = PBXVariantGroup;
children = (
EA86F5DD192AB55F00B834ED /* en */,
+ 6F702A751D2223BE00D62CB6 /* zh-Hans */,
);
name = Credits.rtf;
sourceTree = "<group>";
@@ -550,6 +558,7 @@
isa = PBXVariantGroup;
children = (
EA86F5E3192AB55F00B834ED /* Base */,
+ 6F702A731D2223BE00D62CB6 /* zh-Hans */,
);
name = MainMenu.xib;
sourceTree = "<group>";
@@ -0,0 +1,10 @@
+/*
+ Localizable.strings
+ Sketch Toolbox
+
+ Created by pluwen on 16/6/28.
+ Copyright © 2016年 Shahruz Shaukat. All rights reserved.
+ */
+"Downloading..." = "Downloading...";
+"Uninstall" = "Uninstall";
+"Install" = "Install";
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="8191" systemVersion="15A284" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="8191"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10117"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -25,7 +25,7 @@
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" texturedBackground="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="335" y="390" width="515" height="523"/>
- <rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
+ <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
<value key="minSize" type="size" width="450" height="300"/>
<view key="contentView" id="EiT-Mj-1SZ">
<rect key="frame" x="0.0" y="0.0" width="515" height="523"/>
@@ -38,9 +38,8 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="84" rowSizeStyle="automatic" viewBased="YES" id="tll-qL-Al8">
- <rect key="frame" x="0.0" y="0.0" width="515" height="523"/>
+ <rect key="frame" x="0.0" y="0.0" width="515" height="0.0"/>
<autoresizingMask key="autoresizingMask"/>
- <animations/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<tableViewGridLines key="gridStyleMask" horizontal="YES"/>
@@ -68,7 +67,6 @@
<constraints>
<constraint firstAttribute="height" constant="21" id="M5o-IV-SbS"/>
</constraints>
- <animations/>
<buttonCell key="cell" type="bevel" title="Name" bezelStyle="rounded" alignment="left" imageScaling="proportionallyDown" inset="2" id="CZf-eR-jVZ">
<behavior key="behavior" lightByContents="YES"/>
<font key="font" metaFont="systemSemibold" size="13"/>
@@ -79,7 +77,6 @@
</button>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MIW-Rl-YRt">
<rect key="frame" x="28" y="7" width="253" height="24"/>
- <animations/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Name" id="r2X-Kf-zhM">
<font key="font" metaFont="system"/>
<color key="textColor" red="0.35071331519999999" green="0.35071331519999999" blue="0.35071331519999999" alpha="1" colorSpace="calibratedRGB"/>
@@ -91,7 +88,6 @@
<constraints>
<constraint firstAttribute="height" constant="23" id="OQW-MR-izk"/>
</constraints>
- <animations/>
<textFieldCell key="cell" truncatesLastVisibleLine="YES" sendsActionOnEndEditing="YES" title="Description of the plugin" id="cid-nH-aGY">
<font key="font" metaFont="system"/>
<color key="textColor" red="0.37412958559782605" green="0.37412958559782605" blue="0.37412958559782605" alpha="1" colorSpace="calibratedRGB"/>
@@ -100,15 +96,13 @@
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="t0z-De-VpJ">
<rect key="frame" x="4" y="13" width="22" height="16"/>
- <animations/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="User" id="Hgi-e6-x0v"/>
</imageView>
<button verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="WhX-jB-rVM">
<rect key="frame" x="407" y="27" width="99" height="28"/>
<constraints>
<constraint firstAttribute="width" constant="89" id="Gd3-Tt-EML"/>
</constraints>
- <animations/>
<buttonCell key="cell" type="push" title="Install" bezelStyle="rounded" alignment="center" controlSize="small" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="JbC-ds-mUZ">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
@@ -125,7 +119,6 @@
<constraint firstAttribute="trailing" secondItem="eer-mL-zrp" secondAttribute="trailing" constant="115" id="UUY-ZM-WhX"/>
<constraint firstItem="E2A-WJ-dae" firstAttribute="leading" secondItem="C1z-dv-ClF" secondAttribute="leading" constant="7" id="xG8-hL-FoO"/>
</constraints>
- <animations/>
<connections>
<outlet property="actionButton" destination="WhX-jB-rVM" id="KQx-1Y-AYa"/>
<outlet property="descriptionField" destination="E2A-WJ-dae" id="tDG-dd-iMV"/>
@@ -138,19 +131,15 @@
</tableColumns>
</tableView>
</subviews>
- <animations/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
</clipView>
- <animations/>
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="qUY-QL-Z1q">
<rect key="frame" x="1" y="119" width="223" height="15"/>
<autoresizingMask key="autoresizingMask"/>
- <animations/>
</scroller>
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="oh5-nn-U9Q">
<rect key="frame" x="224" y="17" width="15" height="102"/>
<autoresizingMask key="autoresizingMask"/>
- <animations/>
</scroller>
</scrollView>
</subviews>
@@ -160,7 +149,6 @@
<constraint firstAttribute="bottom" secondItem="wZh-Yh-EYf" secondAttribute="bottom" constant="-1" id="Cwc-Xh-bjI"/>
<constraint firstAttribute="trailing" secondItem="wZh-Yh-EYf" secondAttribute="trailing" constant="-1" id="fO0-9Q-eot"/>
</constraints>
- <animations/>
</view>
<toolbar key="toolbar" implicitIdentifier="E474DE96-09A9-457A-988B-89FD48E2D4ED" autosavesConfiguration="NO" allowsUserCustomization="NO" displayMode="iconOnly" sizeMode="regular" id="EPq-E1-CBz">
<allowedToolbarItems>
@@ -176,7 +164,6 @@
<searchField key="view" wantsLayer="YES" verticalHuggingPriority="750" id="TzE-9i-tMo">
<rect key="frame" x="0.0" y="14" width="174" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <animations/>
<searchFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" borderStyle="bezel" placeholderString="Search packages" usesSingleLineMode="YES" bezelStyle="round" id="Khj-Si-xx1">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -194,7 +181,6 @@
<segmentedControl key="view" verticalHuggingPriority="750" allowsExpansionToolTips="YES" id="bUP-Sd-mMq">
<rect key="frame" x="0.0" y="14" width="165" height="25"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
- <animations/>
<segmentedCell key="cell" borderStyle="border" alignment="left" style="texturedSquare" trackingMode="selectOne" id="dj9-lL-Jae">
<font key="font" metaFont="system"/>
<segments>
@@ -14,7 +14,7 @@ @implementation STPluginCellView
-(IBAction)actionButtonPressed:(NSButton*)sender {
if (!self.plugin.isInstalled) {
self.actionButton.enabled = NO;
- [sender setTitle:@"Downloading..."];
+ [sender setTitle:NSLocalizedString(@"Downloading...",nil)];
[self.plugin download];
}
else [self.plugin delete];
@@ -35,13 +35,13 @@ -(void)populate {
self.starCount.stringValue = [NSString stringWithFormat:@"%i", self.plugin.stars];
if (self.plugin.state == PluginStateInstalled) {
self.actionButton.enabled = YES;
- [self.actionButton setTitle:@"Uninstall"];
+ [self.actionButton setTitle:NSLocalizedString(@"Uninstall",nil)];
} else if (self.plugin.state == PluginStateDownloading) {
self.actionButton.enabled = NO;
- [self.actionButton setTitle:@"Downloading..."];
+ [self.actionButton setTitle:NSLocalizedString(@"Downloading...",nil)];
} else {
self.actionButton.enabled = YES;
- [self.actionButton setTitle:@"Install"];
+ [self.actionButton setTitle:NSLocalizedString(@"Install",nil)];
}
}
@@ -1,2 +0,0 @@
-/* Localized versions of Info.plist keys */
-
Oops, something went wrong.

0 comments on commit a1e32aa

Please sign in to comment.