Skip to content

Commit

Permalink
Update localization for Chinese (Traditional) language
Browse files Browse the repository at this point in the history
The commit updates the localization for the Chinese (Traditional) language in the plugin.py file.
  • Loading branch information
yintzuyuan committed May 8, 2024
1 parent fcf2651 commit 3fc90af
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions SelectionPalette.glyphsPalette/Contents/Resources/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,38 @@
#

translations = {
"undo_selection": Glyphs.localize({ 'en': "Undo Selection" }),
"shrink_selection": Glyphs.localize({ 'en': "Shrink Selection" }),
"select_between": Glyphs.localize({ 'en': "Select Between" }),
"grow_selection": Glyphs.localize({ 'en': "Grow Selection" }),
"continue_selection": Glyphs.localize({ 'en': "Continue Selection", "de": "Auswahl fortsetzen" }),
"select_linked_hints": Glyphs.localize({ 'en': "Select Linked Caps/Corners" }),
"select_extremes": Glyphs.localize({ 'en': "Select Extremes" }),
"boolean_add": lambda label: Glyphs.localize({'en': "Add %s to selection" % label,}),
"boolean_remove": lambda label: Glyphs.localize({'en': "Remove %s from selection" % label,}),
"boolean_intersect": lambda label: Glyphs.localize({'en': "Select only %s" % label,}),
"smooth_nodes": Glyphs.localize({ 'en': "Smooth Curves" }),
"sharp_nodes": Glyphs.localize({ 'en': "Sharp Curves" }),
"line_nodes": Glyphs.localize({ 'en': "Lines" }),
"handle_nodes": Glyphs.localize({ 'en': "Handles" }),
"components": Glyphs.localize({ 'en': "Components" }),
"path_components": Glyphs.localize({ 'en': "Path Components" }),
"anchors": Glyphs.localize({ 'en': "Anchors" }),
"guides": Glyphs.localize({ 'en': "Guides" }),
"all": Glyphs.localize({ 'en': "All" }),
"extremes": Glyphs.localize({ 'en': "Extremes" }),
"non_extremes": Glyphs.localize({ 'en': "Non-extremes" }),
"unlocked": Glyphs.localize({ 'en': "Unlocked" }),
"locked": Glyphs.localize({ 'en': "Locked" }),
"corners": Glyphs.localize({ 'en': "Corners" }),
"caps": Glyphs.localize({ 'en': "Caps" }),
"segments": Glyphs.localize({ 'en': "Segments" }),
"anchors": Glyphs.localize({ 'en': "Anchors" }),
"underscored_anchors": Glyphs.localize({ 'en': "Underscored Anchors" }),
"undo_selection": Glyphs.localize({ 'en': "Undo Selection", "zh-Hant": "取消選擇最後選取的節點" }),
"shrink_selection": Glyphs.localize({ 'en': "Shrink Selection", "zh-Hant": "向內縮減選取的節點範圍" }),
"select_between": Glyphs.localize({ 'en': "Select Between", "zh-Hant": "選取兩個節點間的所有節點" }),
"grow_selection": Glyphs.localize({ 'en': "Grow Selection", "zh-Hant": "往外擴展選取的節點範圍" }),
"continue_selection": Glyphs.localize({ 'en': "Continue Selection", "de": "Auswahl fortsetzen", "zh-Hant": "繼續選取下一個節點" }),
"select_linked_hints": Glyphs.localize({ 'en': "Select Linked Caps/Corners", "zh-Hant": "選擇連結到該節點的筆帽/角落組件" }),
"select_extremes": Glyphs.localize({ 'en': "Select Extremes", "zh-Hant": "選擇極點" }),
"boolean_add": lambda label: Glyphs.localize({'en': "Add %s to selection" % label, "zh-Hant": "新增%s到選取範圍" % label,}),
"boolean_remove": lambda label: Glyphs.localize({'en': "Remove %s from selection" % label, "zh-Hant": "取消選擇選取範圍中的%s" % label,}),
"boolean_intersect": lambda label: Glyphs.localize({'en': "Select only %s" % label, "zh-Hant": "只選擇選取範圍中的%s" % label,}),
"smooth_nodes": Glyphs.localize({ 'en': "Smooth Curves", "zh-Hant": "平滑節點" }),
"sharp_nodes": Glyphs.localize({ 'en': "Sharp Curves", "zh-Hant": "角落節點" }),
"line_nodes": Glyphs.localize({ 'en': "Lines", "zh-Hant": "直線段" }),
"handle_nodes": Glyphs.localize({ 'en': "Handles", "zh-Hant": "控制桿" }),
"components": Glyphs.localize({ 'en': "Components", "zh-Hant": "組件" }),
"path_components": Glyphs.localize({ 'en': "Path Components", "zh-Hant": "路徑組件" }),
"anchors": Glyphs.localize({ 'en': "Anchors", "zh-Hant": "錨點" }),
"guides": Glyphs.localize({ 'en': "Guides", "zh-Hant": "參考線" }),
"all": Glyphs.localize({ 'en': "All", "zh-Hant": "全部" }),
"extremes": Glyphs.localize({ 'en': "Extremes", "zh-Hant": "極點" }),
"non_extremes": Glyphs.localize({ 'en': "Non-extremes", "zh-Hant": "非極點" }),
"unlocked": Glyphs.localize({ 'en': "Unlocked", "zh-Hant": "未鎖定" }),
"locked": Glyphs.localize({ 'en': "Locked", "zh-Hant": "已鎖定" }),
"corners": Glyphs.localize({ 'en': "Corners", "zh-Hant": "角落組件" }),
"caps": Glyphs.localize({ 'en': "Caps", "zh-Hant": "筆帽組件" }),
"segments": Glyphs.localize({ 'en': "Segments", "zh-Hant": "線段組件" }),
"anchors": Glyphs.localize({ 'en': "Anchors", "zh-Hant": "錨點" }),
"underscored_anchors": Glyphs.localize({ 'en': "Underscored Anchors", "zh-Hant": "_錨點" }),
"entry": Glyphs.localize({ 'en': "Entry" }),
"exit": Glyphs.localize({ 'en': "Exit" }),
"global": Glyphs.localize({ 'en': "Global" }),
"local": Glyphs.localize({ 'en': "Local" }),
"global": Glyphs.localize({ 'en': "Global", "zh-Hant": "全域參考線" }),
"local": Glyphs.localize({ 'en': "Local", "zh-Hant": "區域參考線" }),
}

class Operation(Enum):
Expand Down

0 comments on commit 3fc90af

Please sign in to comment.