Skip to content

Commit

Permalink
更新使用自定义外部程序打开的翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed May 19, 2023
1 parent eb12615 commit 5cc0ce4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 2.trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,7 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
'>{{Search in note }}<',
'>{{ Note source}}<',
'>{{ Open note externally}}<',
'> {{Open note custom}}<',
'>{{Import files}}<',
'>{{Export note}}<',
'>{{Delete note}}<',
Expand Down Expand Up @@ -3474,7 +3475,10 @@ def replace_in_file(file_path, translation, base_path=BASE_PATH):
# apply patch
print(f'switch to dir: {BASE_PATH}')
os.chdir(BASE_PATH)
os.system('npm run webpack')
# os.system('npm install webpack --save-dev')
# os.system('npm run webpack')
os.system('which webpack')
os.system('webpack -c webpack.config.js')

# 把编译好的文件复制到客户端里
# copy compiled file to the client
Expand Down
1 change: 1 addition & 0 deletions translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1639,4 +1639,5 @@
'sort with respect to different character sorting and collation rules in different languages or regions.': '',
'Natural sort language': '',
'The language code for natural sort, e.g. "zh-CN" for Chinese.': '',
'Open note custom': '',
}
1 change: 1 addition & 0 deletions translations_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1631,5 +1631,6 @@
'sort with respect to different character sorting and collation rules in different languages or regions.': '根据不同语言或地区的字符排序和排序规则进行排序。',
'Natural sort language': '自然排序语言',
'The language code for natural sort, e.g. "zh-CN" for Chinese.': '自然排序的语言代码, 例如中文的"zh-CN"',
'Open note custom': '使用自定义程序打开笔记',
'': '',
}

0 comments on commit 5cc0ce4

Please sign in to comment.