Skip to content

Commit 94adc1d

Browse files
authored
Merge pull request #611 from XY0797/master
Fix copy shortcut target path&Update install pkg config&Improving i18n
2 parents 8ae902c + 79c7a20 commit 94adc1d

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

docs/functions/sel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ <h5>sel.meta</h5>
223223
</section>
224224
<section id="sel.lnk" class="my-5">
225225
<h5>sel.lnk</h5>
226-
<p>Return a path from the shortcut</p>
226+
<p>Return the target file/dir path from the selected shortcut</p>
227227
<p>Syntax</p>
228-
<code>sel.lnk(path)</code>
228+
<code>sel.lnk</code>
229229
</section>
230230
<section id="sel.lnk.type" class="my-5">
231231
<h5>sel.lnk.type</h5>

src/bin/imports/file-manage.nss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{
33
menu(separator="after" title=title.copy_path image=icon.copy_path)
44
{
5-
item(where=sel.count > 1 title='Copy (@sel.count) items selected' cmd=command.copy(sel(false, "\n")))
5+
item(where=sel.count > 1 title=loc.copy_multiple_paths cmd=command.copy(sel(false, "\n")))
66
item(mode="single" title=@sel.path tip=sel.path cmd=command.copy(sel.path))
7-
item(mode="single" type='file' separator="before" find='.lnk' title='open file location')
7+
item(mode="single" type='file' separator="before" where=length(sel.lnk)>0 title=sel.lnk cmd=command.copy(sel.lnk))
88
separator
99
item(mode="single" where=@sel.parent.len>3 title=sel.parent cmd=@command.copy(sel.parent))
1010
separator

src/bin/imports/lang/en.nss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ windows_notepad="Windows notepad"
1414

1515
// file-manage.nss
1616
file_manage="File manage"
17+
copy_multiple_paths='Copy (@sel.count) items selected'
1718
all="All"
1819
invert="Invert"
1920
none="None"
@@ -73,6 +74,7 @@ apps="Apps"
7374
paint="Paint"
7475
edge="Edge"
7576
calculator="Calculator"
77+
windows="windows"
7678
cascade_windows="Cascade windows"
7779
Show_windows_stacked="Show windows stacked"
7880
Show_windows_side_by_side="Show windows side by side"

src/bin/imports/lang/zh-CN.nss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/*
22
Simplified Chinese
33
by: github.com/JohnsonRan
4+
github.com/XY0797
45
*/
56

7+
xxx="欢迎用中文"
68
// shell.nss
79
pin_unpin="固定/取消固定"
810

@@ -13,6 +15,7 @@ windows_notepad="Windows 记事本"
1315

1416
// file-manage.nss
1517
file_manage="文件管理"
18+
copy_multiple_paths='复制选中的 (@sel.count) 个项目'
1619
all="全选"
1720
invert="反选"
1821
none="全不选"
@@ -35,7 +38,7 @@ accessed="访问时间"
3538
new_folder="新建文件夹"
3639
new_file="新建文件"
3740
datetime="当前时间"
38-
guid="GUID"
41+
guid="Guid"
3942

4043
// goto.nss
4144
folder="文件夹"
@@ -66,6 +69,7 @@ ethernet="以太网"
6669
wifi="WLAN"
6770
connections="网络连接"
6871

72+
6973
// taskbar.nss
7074
apps="应用"
7175
paint="画图"

src/bin/shell.nss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
// localization
1212
$loc_path='imports\lang\'
13-
import lang if(path.exists(loc_path + sys.lang + ".nss"),
14-
loc_path + sys.lang + ".nss",
15-
loc_path + "\\en.nss")
13+
import lang loc_path + "en.nss"
14+
import lang if(path.exists(loc_path + sys.lang + ".nss"),
15+
loc_path + sys.lang + ".nss",
16+
loc_path + "en.nss")
1617
1718
// or import lang 'imports/lang/en.nss'
1819

src/setup/wix/setup.wxs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
<Component Id='LANG' Guid='{FF987BEA-6195-4C05-8523-00936A1BD092}' NeverOverwrite='yes'>
7979
<File Id='en.nss' Source='$(var.bin)\imports\lang\en.nss' />
8080
<File Id='ar.nss' Source='$(var.bin)\imports\lang\ar.nss' />
81+
<File Id='de_DE.nss' Source='$(var.bin)\imports\lang\de-DE.nss' />
82+
<File Id='ko.nss' Source='$(var.bin)\imports\lang\ko.nss' />
83+
<File Id='no.nss' Source='$(var.bin)\imports\lang\no.nss' />
84+
<File Id='pt_BR.nss' Source='$(var.bin)\imports\lang\pt-BR.nss' />
85+
<File Id='zh_CN.nss' Source='$(var.bin)\imports\lang\zh-CN.nss' />
8186
</Component>
8287
</Directory>
8388
</Directory>

0 commit comments

Comments
 (0)