diff --git a/extension/locale.txt b/extension/locale.txt new file mode 100644 index 0000000..c0a05d5 --- /dev/null +++ b/extension/locale.txt @@ -0,0 +1,43 @@ +[en] +# Installed = Installed +# Available = Available +# Update available = Update available +# Toggle View = Toggle View +# Toggle PCB View between Top and Bottom = Toggle PCB View between Top and Bottom +# Flip on Layer = Flip on Layer +# Visit GitHub Page = Visit GitHub Page +# Flip view automatically for these Layers = Flip view automatically for these Layers +# Allows you to switch the PCB View between Top and Bottom View = Allows you to switch the PCB View between Top and Bottom View + +[de] +Installed = Installiert +Available = Verfügbar +Update available = Update verfügbar +Toggle View = Ansicht umschalten +Toggle PCB View between Top and Bottom = PCB Ansicht von Oben/Unten umschalten +Flip on Layer = Lagen spiegeln +Visit GitHub Page = GitHub Seite öffnen +Flip view automatically for these Layers = Ansicht für diese Ebenen automatisch spiegeln +Allows you to switch the PCB View between Top and Bottom View = Ermöglicht das Umschalten der Ansicht von Oben oder Unten + +[es] +# Installed = Installed +# Available = Available +# Update available = Update available +# Toggle View = Toggle View +# Toggle PCB View between Top and Bottom = Toggle PCB View between Top and Bottom +# Flip on Layer = Flip on Layer +Visit GitHub Page = Visita la página de GitHub +# Flip view automatically for these Layers = Flip view automatically for these Layers +# Allows you to switch the PCB View between Top and Bottom View = Allows you to switch the PCB View between Top and Bottom View + +[zh-hans] +Installed = 已安装 +Available = 可用 +Update available = 可用更新 +# Toggle View = Toggle View +# Toggle PCB View between Top and Bottom = Toggle PCB View between Top and Bottom +# Flip on Layer = Flip on Layer +Visit GitHub Page = 访问 Github 主页 +# Flip view automatically for these Layers = Flip view automatically for these Layers +# Allows you to switch the PCB View between Top and Bottom View = Allows you to switch the PCB View between Top and Bottom View diff --git a/extension/main.js b/extension/main.js index 3a95626..52838d7 100644 --- a/extension/main.js +++ b/extension/main.js @@ -7,11 +7,11 @@ const DOMIdPrefix = extensionId + '-' + Math.random().toString(36).substr(2); api('createToolbarButton', { icon: api('getRes', { file: 'icon.svg' }), - title: 'Toggle PCB view', + title: 'Toggle View', fordoctype: 'pcb,pcblib', menu:[ { - text: "Toggle View", + text: 'Toggle View', cmd: Helper.createCommand(()=>{toggle();}), title: 'Toggle PCB View between Top and Bottom', icon: api('getRes', { file: 'icon.svg' }) @@ -21,25 +21,25 @@ api('createToolbarButton', { title: 'Flip view automatically for these Layers', submenu: [ { - text: 'Bottom Copper', + text: 'BottomLayer', group: 'checkbox:autoToggleLayer', id: `${DOMIdPrefix}-layer-2`, cmd: Helper.createCommand(()=>{saveConfig()}) }, { - text: 'Bottom Silk', + text: 'BottomSilkLayer', group: 'checkbox:autoToggleLayer', id: `${DOMIdPrefix}-layer-4`, cmd: Helper.createCommand(()=>{saveConfig()}) }, { - text: 'Bottom Paste', + text: 'BottomPasteMaskLayer', group: 'checkbox:autoToggleLayer', id: `${DOMIdPrefix}-layer-6`, cmd: Helper.createCommand(()=>{saveConfig()}) }, { - text: 'Bottom Mask', + text: 'BottomSolderMaskLayer', group: 'checkbox:autoToggleLayer', id: `${DOMIdPrefix}-layer-8`, cmd: Helper.createCommand(()=>{saveConfig()}) diff --git a/extension/manifest.json b/extension/manifest.json index 6a297dc..d00fbca 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,11 +1,12 @@ { "name": "ToggleView", - "description": "Allows you to switch the PCB View between Top and Bottom View.", + "description": "Allows you to switch the PCB View between Top and Bottom View", "version": "1.2", "homepage": "https://github.com/xsrf/easyeda-toggleview", "icons": { "default": "icon.svg" }, + "locale": "locale.txt", "scripts": [ "easyeda-helper.js", "main.js" ], "updatebaseurl" : "https://raw.githubusercontent.com/xsrf/easyeda-toggleview/autoupdate/extension/" }