Skip to content

Commit

Permalink
fix: added missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonRan committed Dec 30, 2024
1 parent 76779b6 commit 24c09ab
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 85 deletions.
6 changes: 3 additions & 3 deletions src/bin/imports/file-manage.nss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
53 changes: 27 additions & 26 deletions src/bin/imports/goto.nss
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -26,36 +26,37 @@ menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.
menu(where=sys.ver.major >= 10 title=title.settings sep=sep.before image=\uE0F3)
{
// https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app
item(title='system' image=inherit cmd='ms-settings:')
item(title='about' image=inherit cmd='ms-settings:about')
item(title='your-info' image=inherit cmd='ms-settings:yourinfo')
item(title='system-info' image=inherit cmd-line='/K systeminfo')
item(title='search' cmd='search-ms:' image=inherit)
item(title='usb' image=inherit cmd='ms-settings:usb')
item(title='windows-update' image=inherit cmd='ms-settings:windowsupdate')
item(title='windows-defender' image=inherit cmd='ms-settings:windowsdefender')
menu(title='apps' image=inherit)
item(title=loc.system image=inherit cmd='ms-settings:')
item(title=loc.about image=inherit cmd='ms-settings:about')
item(title=loc.your_info image=inherit cmd='ms-settings:yourinfo')
item(title=loc.system_info image=inherit cmd-line='/K systeminfo')
item(title=loc.search cmd='search-ms:' image=inherit)
item(title=loc.usb image=inherit cmd='ms-settings:usb')
item(title=loc.windows_update image=inherit cmd='ms-settings:windowsupdate')
item(title=loc.windows_defender image=inherit cmd='ms-settings:windowsdefender')
menu(title=loc.apps image=inherit)
{
item(title='apps-features' image=inherit cmd='ms-settings:appsfeatures')
item(title='default-apps' image=inherit cmd='ms-settings:defaultapps')
item(title='optional-features' image=inherit cmd='ms-settings:optionalfeatures')
item(title='startup' image=inherit cmd='ms-settings:startupapps')
item(title=loc.apps_features image=inherit cmd='ms-settings:appsfeatures')
item(title=loc.default_apps image=inherit cmd='ms-settings:defaultapps')
item(title=loc.optional_features image=inherit cmd='ms-settings:optionalfeatures')
item(title=loc.startup image=inherit cmd='ms-settings:startupapps')
}
menu(title='personalization' image=inherit)
menu(title=loc.personalization image=inherit)
{
item(title='personalization' image=inherit cmd='ms-settings:personalization')
item(title='lockscreen' image=inherit cmd='ms-settings:lockscreen')
item(title='background' image=inherit cmd='ms-settings:personalization-background')
item(title='colors' image=inherit cmd='ms-settings:colors')
item(title='themes' image=inherit cmd='ms-settings:themes')
item(title='start' image=inherit cmd='ms-settings:personalization-start')
item(title='taskbar' image=inherit cmd='ms-settings:taskbar')
item(title=loc.personalization image=inherit cmd='ms-settings:personalization')
item(title=loc.lockscreen image=inherit cmd='ms-settings:lockscreen')
item(title=loc.background image=inherit cmd='ms-settings:personalization-background')
item(title=loc.colors image=inherit cmd='ms-settings:colors')
item(title=loc.themes image=inherit cmd='ms-settings:themes')
item(title=loc.start image=inherit cmd='ms-settings:personalization-start')
item(title=loc.taskbar image=inherit cmd='ms-settings:taskbar')
}
menu(title='network' image=inherit)
menu(title=loc.network image=inherit)
{
item(title='status' image=inherit cmd='ms-settings:network-status')
item(title='ethernet' image=inherit cmd='ms-settings:network-ethernet')
item(title='connections' image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}')
item(title=loc.status image=inherit cmd='ms-settings:network-status')
item(title=loc.ethernet image=inherit cmd='ms-settings:network-ethernet')
item(title=loc.wifi image=inherit cmd='ms-settings:network-wifi')
item(title=loc.connections image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}')
}
}
}
37 changes: 37 additions & 0 deletions src/bin/imports/lang/en.nss
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -36,10 +39,44 @@ datetime="DateTime"
guid="Guid"

// goto.nss
folder="Folder"
all_control_panel_items="All Control Panel Items"
system="System"
about="About"
your_info="Your Info"
system_info="System Info"
search="Search"
usb="USB"
windows_update="Windows Update"
windows_defender="Windows Defender"
apps="Apps"
apps_features="Apps Features"
default_apps="Default Apps"
optional_features="Optional Features"
startup="Startup"
personalization="Personalization"
lockscreen="Lockscreen"
background="Background"
colors="Colors"
themes="Themes"
start="Start"
taskbar="Taskbar"
network="Network"
status="Status"
ethernet="Ethernet"
wifi="WLAN"
connections="Connections"


// taskbar.nss
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"
44 changes: 0 additions & 44 deletions src/bin/imports/lang/zh-CN.nss

This file was deleted.

81 changes: 81 additions & 0 deletions src/bin/imports/lang/zh.nss
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
Simplified Chinese
by: github.com/JohnsonRan
*/

// shell.nss
pin_unpin="固定/取消固定"

// develop.nss
develop="开发"
editors="编辑器"
windows_notepad="Windows 记事本"

// file-manage.nss
file_manage="文件管理"
all="全选"
invert="反选"
none=""
change_extension="更改扩展名"
take_ownership="更改所有权"
show_hide="显示/隐藏"
system_files="系统文件"
file_name_extensions="文件扩展名"
attributes="属性"
register_server="注册服务"
register="注册"
unregister="取消注册"
hidden="隐藏"
system="系统"
readonly="只读"
archive="存档"
created="创建时间"
modified="修改时间"
accessed="访问时间"
new_folder="新建文件夹"
new_file="新建文件"
datetime="当前时间"
guid="GUID"

// goto.nss
folder="文件夹"
all_control_panel_items="所有控制面板项"
system="系统"
about="系统信息"
your_info="账户信息"
system_info="系统信息(CMD)"
search="搜索"
usb="USB"
windows_update="Windows 更新"
windows_defender="Windows 安全中心"
apps="应用"
apps_features="安装的应用"
default_apps="默认应用"
optional_features="可选功能"
startup="启动"
personalization="个性化"
lockscreen="锁屏界面"
background="桌面背景"
colors="颜色"
themes="主题"
start="开始"
taskbar="任务栏"
network="网络"
status="网络和 Internet"
ethernet="以太网"
wifi="WLAN"
connections="网络连接"

// taskbar.nss
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="任务栏设置"
24 changes: 12 additions & 12 deletions src/bin/imports/taskbar.nss
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@
}
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:')
item(title=title.task_manager sep=both image=icon.task_manager cmd='taskmgr.exe')
item(title=title.taskbar_Settings sep=both image=inherit cmd='ms-settings:taskbar')
item(title=loc.task_manager sep=both image=icon.task_manager cmd='taskmgr.exe')
item(title=loc.taskbar_Settings sep=both image=inherit cmd='ms-settings:taskbar')
item(vis=key.shift() title=title.exit_explorer cmd=command.restart_explorer)
}
1 change: 1 addition & 0 deletions src/bin/shell.nss
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 24c09ab

Please sign in to comment.