Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
fix create symbol bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cute committed Jul 26, 2016
1 parent d8153f5 commit ed44daa
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
Binary file not shown.
38 changes: 36 additions & 2 deletions SketchI18N.sketchplugin/Contents/Resources/i18n/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
"Show Artboard Shadow": "显示画板阴影",
"Auto-Expand Groups in Layer List": "自动展开图层列表内分组",
"Oval Shape": "椭圆形",
"Symbols": "组件",
"No Symbols Defined": "没有定义组件",
"Create New Symbol": "创建新的组件",
"Send Symbol to “Symbols” Page": "发送组件到 “Symbols” 页面",
Expand Down Expand Up @@ -701,7 +702,7 @@
"Italic": "斜体",
"Registered to %@": "注册给 %@",
"Click-through when selecting": "穿透选择",
"Opening the document will preserve missing fonts as long as those text layers are not edited." : "打开该文件将保留缺少的字体,只要这些文本图层不被编辑。",
"Opening the document will preserve missing fonts as long as those text layers are not edited.": "打开该文件将保留缺少的字体,只要这些文本图层不被编辑。",
"The selected text layer(s) contains a missing font. Editing its contents will revert it to the default typeface.": "已选中的文本图层包含缺少的字体。编辑内容会使其恢复到默认字体。",
"Replace": "替换",
"Plugin “%@” Already Installed": "已经装过 “%@” 插件",
Expand All @@ -711,5 +712,38 @@
"Dismiss": "忽略",
"CUSTOM": "自定义",
"WEB": "网页",
"Library": "资源库"
"Library": "资源库",
"Hide Page List": "Hide Page List",
"Generic RGB": "Generic RGB",
"Strength": "Strength",
"Multiple Values": "Multiple Values",
"Pencils": "Pencils",
"Generic Gray": "Generic Gray",
"Color Palettes": "Color Palettes",
"Color Wheel": "Color Wheel",
"Not Applicable": "Not Applicable",
"Detach from Symbol": "Detach from Symbol",
"Distance": "Distance",
"Image Palettes": "Image Palettes",
"Show Page List": "Show Page List",
"Color Sliders": "Color Sliders",
"The selected layers will be replaced by a single layer. A new \nSymbol will be created in your document. Whenever this Symbol is edited, all its layers will update to reflect the changes.": "The selected layers will be replaced by a single layer. A new \nSymbol will be created in your document. Whenever this Symbol is edited, all its layers will update to reflect the changes.",
"Item 1": "Item 1",
"Toggle Craft": "切换Craft",
"pick color": "pick color",
"No Value": "没有值",
"Struck through": "Struck through",
"DUPLICATE CONTENT": "复制内容",
"Help Center": "帮助中心",
"JSON": "JSON",
"Toggle Panel": "切换面板",
"Dropbox Link": "Dropbox链接",
"Random Unsplash": "Random Unsplash",
"Sync Styles": "同步样式",
"Craft": "Craft",
"Folder": "文件夹",
"Data": "数据",
"Duplicate inside selection": "复制内部选择",
"Shadowed": "阴影",
"Preview Setup..." : "预览设置..."
}
2 changes: 1 addition & 1 deletion SketchI18N.sketchplugin/Contents/Sketch/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var onRun = function(context) {
var mocha = Mocha.sharedRuntime();
i18n = [NSString stringWithContentsOfFile:languagePath encoding:NSUTF8StringEncoding error:nil];

if (!NSClassFromString(@"SketchI18NPluginManager")) {
if (!NSClassFromString("SketchI18NPluginManager")) {
mocha.loadFrameworkWithName_inDirectory("SketchI18NPlugin", resourcesPath + "/Contents/Resources");
manager = SketchI18NPluginManager.manager();
manager.loadStrings(i18n);
Expand Down
4 changes: 2 additions & 2 deletions SketchI18N.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "Sketch I18N",
"author": "@liguangming",
"homepage": "http://liguangming.com",
"version": "1.0.3",
"version": "1.0.4",
"identifier": "com.liguangming.sketch-i18n",
"downloadURL": "https://github.com/cute/SketchI18N",
"compatibleVersion": 3.3,
"bundleVersion": "6",
"bundleVersion": "7",
"commands": [{
"name": "Sketch I18N",
"identifier": "i18n-command",
Expand Down

0 comments on commit ed44daa

Please sign in to comment.