Skip to content

Commit a43d758

Browse files
authored
Merge pull request #218 from ifurther/master
Added Traditional Chinese translation
2 parents 94a49f8 + 456250c commit a43d758

File tree

15 files changed

+186
-4
lines changed

15 files changed

+186
-4
lines changed

src/electron/app.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const langTranslations = {
3131
'pl-PL': require('../translation/pl-PL'),
3232
'tr-TR': require('../translation/tr-TR'),
3333
'ja-JP': require('../translation/ja-JP'),
34+
'zh-TW': require('../translation/zh-TW'),
3435

3536
}
3637

@@ -139,5 +140,3 @@ if (global.p3x.onenote.allowMultiple === false) {
139140
// app and ipc main events and configuration
140141
require('./main/ipc-main')
141142
require('./main/app-events')
142-
143-

src/electron/window/onenote/load.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const langTranslations = {
1616
'pl-PL': require('../../../translation/pl-PL'),
1717
'tr-TR': require('../../../translation/tr-TR'),
1818
'ja-JP': require('../../../translation/ja-JP'),
19+
'zh-TW': require('../../../translation/zh-TW'),
1920
}
2021
if (!translationKey) {
2122
translationKey = 'en-US'
@@ -113,4 +114,3 @@ window.p3xOneNoteOnLoad = function () {
113114

114115
ipcRenderer.send('did-finish-load');
115116
}
116-

src/translation/de-DE.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
},
138139
},

src/translation/en-US.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/es-ES.js

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const translation = {
134134
'pl-PL': 'Polski / Polish',
135135
'tr-TR': 'Türkçe / Turkish',
136136
'ja-JP': '日本語 / Japanese',
137+
'zh-TW': '繁體中文 / Traditional Chinese',
137138

138139
}
139140
},

src/translation/fr-FR.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/it-IT.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/ja-JP.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/nl-NL.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/pl-PL.js

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
137+
136138
}
137139
},
138140
},

src/translation/pt-BR.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/ru-RU.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const translation = {
134134
'pl-PL': 'Polski / Polish',
135135
'tr-TR': 'Türkçe / Turkish',
136136
'ja-JP': '日本語 / Japanese',
137+
'zh-TW': '繁體中文 / Traditional Chinese',
137138

138139
}
139140
},
@@ -157,7 +158,7 @@ const translation = {
157158
add: 'Добавить закладку',
158159
edit: 'Изменить закладки',
159160
form: {
160-
title: 'Название',
161+
title: 'Название',
161162
url: 'ссылка'
162163
}
163164
},

src/translation/tr-TR.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/zh-CN.js

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const translation = {
133133
'pl-PL': 'Polski / Polish',
134134
'tr-TR': 'Türkçe / Turkish',
135135
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese',
136137

137138
}
138139
},

src/translation/zh-TW.js

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
const translation = {
2+
title: 'P3X OneNote',
3+
restart: '請稍等,程式正在重新啟動',
4+
label: {
5+
darkThemeInvert: {
6+
title: '使用深色模式 (using invert)'
7+
},
8+
hideMenu: '隱藏主選單 (按ALT鍵顯示)',
9+
optionToHideMenuState: {
10+
yes: '重新啟動後,即隱藏主選單,須按ALT鍵顯示',
11+
},
12+
donate: '捐助',
13+
allowMultiple: {
14+
checkbox: 'Allow multiple instances (with some quirks)',
15+
message: {
16+
yes: 'Now you can use multiple instance with some quirks.',
17+
no: 'Now, it allows only one instance, no quirks'
18+
}
19+
},
20+
disableHide: {
21+
//yes: 'Set the close button behaviour that will minimize to the tray instead of quitting',
22+
//no: 'Set the close button behaviour as to really quit the app',
23+
checkbox: '最小化',
24+
message: {
25+
yes: '按關閉扭,即關閉程式',
26+
no: '按關閉扭,最小化',
27+
28+
}
29+
},
30+
optionToDisableInternalExternalPopup: 'Disable Internal / External Popup (all link internal)',
31+
settings: '設定',
32+
setProxy: '設定代理伺服器',
33+
openUrl: '開啟網址',
34+
promptRedirectUrlTitle: 'Redirect to url',
35+
edit: '編輯',
36+
view: '顯示',
37+
download: '下載',
38+
developer: 'Patrik Laszlo',
39+
personalHome: 'Personal home',
40+
corporateHome: 'Corporate home',
41+
clearCache: 'First sign off, then click this menu option to clear the cache',
42+
quit: '退出',
43+
show: '顯示',
44+
hide: '隱藏',
45+
copyLocation: '複製當前頁面路徑到剪貼簿',
46+
copyLocationCopied: '已複製當前頁面路徑到剪貼簿',
47+
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
48+
//unknownLink: 'Hang on, it might change while loading to the destination. If this is not a OneNote page, free to click on the P3X OneNote menu home',
49+
back: 'Back',
50+
forward: 'Forward',
51+
},
52+
dialog: {
53+
info: 'Info',
54+
openUrl: {
55+
info: '你可以開啟任意想要開啟的網址',
56+
placeholder: '一個有效網址',
57+
58+
},
59+
minimizationBehavior: {
60+
title: '最小化行為',
61+
},
62+
setProxy: {
63+
placeholder: '代理伺服器設定',
64+
info: '要清除代理伺服器設定,請留白',
65+
clear: '代理伺服器被關閉',
66+
set: (value) => {
67+
return `代理伺服器設定為 ${value}`
68+
}
69+
},
70+
redirect: {
71+
url: (opts) => {
72+
return `${opts.url}`
73+
},
74+
urlExternal: 'External',
75+
urlInternal: 'Internal',
76+
}
77+
},
78+
button: {
79+
yes: '是',
80+
no: '否',
81+
ok: '好',
82+
cancel: '取消',
83+
save: '儲存',
84+
clear: '清除',
85+
go: 'Go',
86+
delete: '刪除',
87+
},
88+
menu: {
89+
action: 'Action',
90+
role: {
91+
edit: {
92+
undo: '復原',
93+
redo: '取消復原',
94+
cut: '剪下',
95+
copy: '複製',
96+
paste: '貼上',
97+
pasteandmatchstyle: '貼上並保留格式',
98+
delete: '刪除',
99+
selectall: '全選',
100+
},
101+
view: {
102+
reload: '重新載入',
103+
forcereload: '強制重新載入',
104+
toggledevtools: '切換開發者模式',
105+
resetzoom: '重置縮放',
106+
zoomin: '放大',
107+
zoomout: '縮小',
108+
togglefullscreen: '使用全螢幕模式',
109+
}
110+
},
111+
help: {
112+
title: 'Help',
113+
checkUpdates: '檢查更新'
114+
},
115+
language: {
116+
label: '語言 / Language',
117+
alert: '語言修改成繁體中文.',
118+
dialog: {
119+
label: '要嘗試修改線上的OneNote語言嗎?',
120+
corporate: 'Corporate',
121+
personal: 'Personal',
122+
},
123+
translations: {
124+
'en-US': 'English',
125+
'de-DE': 'Deutsch / German',
126+
'pt-BR': 'Português / Portuguese',
127+
'es-ES': 'Español / Spanish',
128+
'fr-FR': 'Français / French',
129+
'nl-NL': 'Nederlands / Dutch',
130+
'it-IT': 'Italiano / Italian',
131+
'zh-CN': '简体中文 / Simplified Chinese',
132+
'ru-RU': 'Русский / Russian',
133+
'pl-PL': 'Polski / Polish',
134+
'tr-TR': 'Türkçe / Turkish',
135+
'ja-JP': '日本語 / Japanese',
136+
'zh-TW': '繁體中文 / Traditional Chinese'
137+
138+
}
139+
},
140+
},
141+
redirecting: '請稍等,正在導至新的筆記本需要再一些時間...',
142+
slow: '請稍等,讀取OneNote需要再一些時間...',
143+
updater: {
144+
'checking-for-update': '正在檢查更新 ...',
145+
'update-available': '下載最新板中 ...',
146+
'update-not-available': '沒有新版本',
147+
error: (opts) => {
148+
return `自動更新錯誤: ${opts.errorMessage}`
149+
},
150+
'download-progress': (opts) => {
151+
return '下載 ' + opts.progressObj.percent + '%'
152+
},
153+
'update-downloaded': '更信下載完畢,請重新啟動套用'
154+
},
155+
bookmarks: {
156+
title: '書籤',
157+
add: '新增書籤',
158+
edit: '修改書籤',
159+
form: {
160+
title: '標題',
161+
url: 'URL'
162+
}
163+
},
164+
validation: {
165+
required: 'Required',
166+
url: '無效網址',
167+
},
168+
};
169+
170+
module.exports = translation;

0 commit comments

Comments
 (0)