diff --git a/docs/functions/sel.html b/docs/functions/sel.html index c70c1fa..1f51d2b 100644 --- a/docs/functions/sel.html +++ b/docs/functions/sel.html @@ -223,9 +223,9 @@
sel.meta
sel.lnk
-

Return a path from the shortcut

+

Return the target file/dir path from the selected shortcut

Syntax

- sel.lnk(path) + sel.lnk
sel.lnk.type
diff --git a/src/bin/imports/file-manage.nss b/src/bin/imports/file-manage.nss index e04d453..99cd551 100644 --- a/src/bin/imports/file-manage.nss +++ b/src/bin/imports/file-manage.nss @@ -2,9 +2,9 @@ { menu(separator="after" title=title.copy_path image=icon.copy_path) { - item(where=sel.count > 1 title='Copy (@sel.count) items selected' cmd=command.copy(sel(false, "\n"))) + item(where=sel.count > 1 title=loc.copy_multiple_paths cmd=command.copy(sel(false, "\n"))) item(mode="single" title=@sel.path tip=sel.path cmd=command.copy(sel.path)) - item(mode="single" type='file' separator="before" find='.lnk' title='open file location') + item(mode="single" type='file' separator="before" where=length(sel.lnk)>0 title=sel.lnk cmd=command.copy(sel.lnk)) separator item(mode="single" where=@sel.parent.len>3 title=sel.parent cmd=@command.copy(sel.parent)) separator diff --git a/src/bin/imports/lang/en.nss b/src/bin/imports/lang/en.nss index 9c55a73..e584947 100644 --- a/src/bin/imports/lang/en.nss +++ b/src/bin/imports/lang/en.nss @@ -14,6 +14,7 @@ windows_notepad="Windows notepad" // file-manage.nss file_manage="File manage" +copy_multiple_paths='Copy (@sel.count) items selected' all="All" invert="Invert" none="None" @@ -73,6 +74,7 @@ apps="Apps" paint="Paint" edge="Edge" calculator="Calculator" +windows="windows" cascade_windows="Cascade windows" Show_windows_stacked="Show windows stacked" Show_windows_side_by_side="Show windows side by side" diff --git a/src/bin/imports/lang/zh-CN.nss b/src/bin/imports/lang/zh-CN.nss index 57e3cbf..8a59c39 100644 --- a/src/bin/imports/lang/zh-CN.nss +++ b/src/bin/imports/lang/zh-CN.nss @@ -1,8 +1,10 @@ /* Simplified Chinese by: github.com/JohnsonRan + github.com/XY0797 */ +xxx="欢迎用中文" // shell.nss pin_unpin="固定/取消固定" @@ -13,6 +15,7 @@ windows_notepad="Windows 记事本" // file-manage.nss file_manage="文件管理" +copy_multiple_paths='复制选中的 (@sel.count) 个项目' all="全选" invert="反选" none="全不选" @@ -35,7 +38,7 @@ accessed="访问时间" new_folder="新建文件夹" new_file="新建文件" datetime="当前时间" -guid="GUID" +guid="Guid" // goto.nss folder="文件夹" @@ -66,6 +69,7 @@ ethernet="以太网" wifi="WLAN" connections="网络连接" + // taskbar.nss apps="应用" paint="画图" diff --git a/src/bin/shell.nss b/src/bin/shell.nss index 961c68e..8ddaaca 100644 --- a/src/bin/shell.nss +++ b/src/bin/shell.nss @@ -10,9 +10,10 @@ // localization $loc_path='imports\lang\' -import lang if(path.exists(loc_path + sys.lang + ".nss"), - loc_path + sys.lang + ".nss", - loc_path + "\\en.nss") +import lang loc_path + "en.nss" +import lang if(path.exists(loc_path + sys.lang + ".nss"), + loc_path + sys.lang + ".nss", + loc_path + "en.nss") // or import lang 'imports/lang/en.nss' diff --git a/src/setup/wix/setup.wxs b/src/setup/wix/setup.wxs index d7402d3..1eeb6dd 100644 --- a/src/setup/wix/setup.wxs +++ b/src/setup/wix/setup.wxs @@ -78,6 +78,11 @@ + + + + +