From 4d6d927005f432c9c9a857411c5b2c3d8dc3a58e Mon Sep 17 00:00:00 2001 From: JohnsonRan <89735151+JohnsonRan@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:38:02 +0800 Subject: [PATCH] fix: added missing translations --- src/bin/imports/file-manage.nss | 6 +++--- src/bin/imports/goto.nss | 2 +- src/bin/imports/lang/en.nss | 9 +++++++++ src/bin/imports/lang/{zh-CN.nss => zh.nss} | 10 ++++++++++ src/bin/imports/taskbar.nss | 20 ++++++++++---------- src/bin/shell.nss | 1 + 6 files changed, 34 insertions(+), 14 deletions(-) rename src/bin/imports/lang/{zh-CN.nss => zh.nss} (77%) diff --git a/src/bin/imports/file-manage.nss b/src/bin/imports/file-manage.nss index 56abe14..e04d453 100644 --- a/src/bin/imports/file-manage.nss +++ b/src/bin/imports/file-manage.nss @@ -18,9 +18,9 @@ menu(separator="after" image=\uE290 title=title.select) { - item(title="All" image=icon.select_all cmd=command.select_all) - item(title="Invert" image=icon.invert_selection cmd=command.invert_selection) - item(title="None" image=icon.select_none cmd=command.select_none) + item(title=loc.all image=icon.select_all cmd=command.select_all) + item(title=loc.invert image=icon.invert_selection cmd=command.invert_selection) + item(title=loc.none image=icon.select_none cmd=command.select_none) } item(type='file|dir|back.dir|drive' title=loc.take_ownership image=[\uE194,#f00] admin diff --git a/src/bin/imports/goto.nss b/src/bin/imports/goto.nss index 8bc49b8..3c93592 100644 --- a/src/bin/imports/goto.nss +++ b/src/bin/imports/goto.nss @@ -1,6 +1,6 @@ menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.go_to sep=sep.both image=\uE14A) { - menu(title='Folder' image=\uE1F4) + menu(title=loc.folder image=\uE1F4) { item(title='Windows' image=inherit cmd=sys.dir) item(title='System' image=inherit cmd=sys.bin) diff --git a/src/bin/imports/lang/en.nss b/src/bin/imports/lang/en.nss index 2e40400..4892b3f 100644 --- a/src/bin/imports/lang/en.nss +++ b/src/bin/imports/lang/en.nss @@ -14,6 +14,9 @@ windows_notepad="Windows notepad" // file-manage.nss file_manage="File manage" +all="All" +invert="Invert" +none="None" change_extension="Change extension" take_ownership="Take ownership" show_hide="Show/Hide" @@ -36,6 +39,7 @@ datetime="DateTime" guid="Guid" // goto.nss +folder="Folder" all_control_panel_items="All Control Panel Items" // taskbar.nss @@ -43,5 +47,10 @@ apps="Apps" paint="Paint" edge="Edge" calculator="Calculator" +cascade_windows="Cascade windows" +Show_windows_stacked="Show windows stacked" +Show_windows_side_by_side="Show windows side by side" +minimize_all_windows="Minimize all windows" +restore_all_windows="Restore all windows" task_manager="Task Manager" taskbar_Settings="Taskbar Settings" diff --git a/src/bin/imports/lang/zh-CN.nss b/src/bin/imports/lang/zh.nss similarity index 77% rename from src/bin/imports/lang/zh-CN.nss rename to src/bin/imports/lang/zh.nss index 997b42f..8c8d5ab 100644 --- a/src/bin/imports/lang/zh-CN.nss +++ b/src/bin/imports/lang/zh.nss @@ -13,6 +13,9 @@ windows_notepad="Windows 记事本" // file-manage.nss file_manage="文件管理" +all="全选" +invert="反选" +none="无" change_extension="更改扩展名" take_ownership="更改所有权" show_hide="显示/隐藏" @@ -35,6 +38,7 @@ datetime="当前时间" guid="GUID" // goto.nss +folder="文件夹" all_control_panel_items="所有控制面板项" // taskbar.nss @@ -42,5 +46,11 @@ apps="应用" paint="画图" edge="Edge" calculator="计算器" +windows="窗口" +cascade_windows="层叠窗口" +Show_windows_stacked="堆叠窗口" +Show_windows_side_by_side="并排窗口" +minimize_all_windows="最小化所有窗口" +restore_all_windows="还原所有窗口" task_manager="任务管理器" taskbar_Settings="任务栏设置" diff --git a/src/bin/imports/taskbar.nss b/src/bin/imports/taskbar.nss index 0c1cfe7..4bcd67f 100644 --- a/src/bin/imports/taskbar.nss +++ b/src/bin/imports/taskbar.nss @@ -9,24 +9,24 @@ } menu(where=@(this.count == 0) type="taskbar" image=icon.settings expanded=true) { - menu(title="Apps" image=\uE254) + menu(title=loc.apps image=\uE254) { - item(title='Paint' image=\uE116 cmd='mspaint') - item(title='Edge' image cmd='@sys.prog32\Microsoft\Edge\Application\msedge.exe') - item(title='Calculator' image=\ue1e7 cmd='calc.exe') + item(title=loc.paint image=\uE116 cmd='mspaint') + item(title=loc.edge image cmd='@sys.prog32\Microsoft\Edge\Application\msedge.exe') + item(title=loc.calculator image=\ue1e7 cmd='calc.exe') item(title=str.res('regedit.exe,-16') image cmd='regedit.exe') sep item(title='WinSCP' image cmd='D:\config\Programs\network\WinSCP\WinSCP.exe') item(title="GitHubDesktop" image cmd='D:\config\Programs\dev\github\GitHubDesktop.exe') } - menu(title=title.windows image=\uE1FB) + menu(title=loc.windows image=\uE1FB) { - item(title=title.cascade_windows cmd=command.cascade_windows) - item(title=title.Show_windows_stacked cmd=command.Show_windows_stacked) - item(title=title.Show_windows_side_by_side cmd=command.Show_windows_side_by_side) + item(title=loc.cascade_windows cmd=command.cascade_windows) + item(title=loc.Show_windows_stacked cmd=command.Show_windows_stacked) + item(title=loc.Show_windows_side_by_side cmd=command.Show_windows_side_by_side) sep - item(title=title.minimize_all_windows cmd=command.minimize_all_windows) - item(title=title.restore_all_windows cmd=command.restore_all_windows) + item(title=loc.minimize_all_windows cmd=command.minimize_all_windows) + item(title=loc.restore_all_windows cmd=command.restore_all_windows) } item(title=title.desktop image=icon.desktop cmd=command.toggle_desktop) item(title=title.settings image=icon.settings(auto, image.color1) cmd='ms-settings:') diff --git a/src/bin/shell.nss b/src/bin/shell.nss index 151415b..977f8eb 100644 --- a/src/bin/shell.nss +++ b/src/bin/shell.nss @@ -10,6 +10,7 @@ // localization import lang 'imports/lang/en.nss' +import lang 'imports/lang/zh.nss' import 'imports/theme.nss' import 'imports/images.nss'