Skip to content

Commit

Permalink
Added Simplified Chinese Translation. (#500)
Browse files Browse the repository at this point in the history
* Add Chinese Translation
  • Loading branch information
lryanner authored Feb 12, 2022
1 parent 27c74e3 commit be85497
Show file tree
Hide file tree
Showing 12 changed files with 556 additions and 9 deletions.
17 changes: 17 additions & 0 deletions buildPy2exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def get_nsis_path():
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\Portuguese.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\Turkish.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\French.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
Unicode true
Expand Down Expand Up @@ -124,6 +125,11 @@ def get_nsis_path():
VIAddVersionKey /LANG=$${LANG_FRENCH} "FileVersion" "$version.0"
VIAddVersionKey /LANG=$${LANG_FRENCH} "LegalCopyright" "Syncplay"
VIAddVersionKey /LANG=$${LANG_FRENCH} "FileDescription" "Syncplay"
VIAddVersionKey /LANG=$${LANG_SIMPCHINESE} "ProductName" "Syncplay"
VIAddVersionKey /LANG=$${LANG_SIMPCHINESE} "FileVersion" "$version.0"
VIAddVersionKey /LANG=$${LANG_SIMPCHINESE} "LegalCopyright" "Syncplay"
VIAddVersionKey /LANG=$${LANG_SIMPCHINESE} "FileDescription" "Syncplay"
LangString ^SyncplayLanguage $${LANG_ENGLISH} "en"
LangString ^Associate $${LANG_ENGLISH} "Associate Syncplay with multimedia files."
Expand Down Expand Up @@ -213,6 +219,15 @@ def get_nsis_path():
LangString ^QuickLaunchBar $${LANG_FRENCH} "Barre de Lancement Rapide"
LangString ^AutomaticUpdates $${LANG_FRENCH} "Vérifier automatiquement les mises à jour"
LangString ^UninstConfig $${LANG_FRENCH} "Supprimer le fichier de configuration."
LangString ^SyncplayLanguage $${LANG_SIMPCHINESE} "zh_CN"
LangString ^Associate $${LANG_SIMPCHINESE} "将Syncplay与多媒体文件关联。"
LangString ^Shortcut $${LANG_SIMPCHINESE} "在以下位置创建快捷方式:"
LangString ^StartMenu $${LANG_SIMPCHINESE} "开始菜单"
LangString ^Desktop $${LANG_SIMPCHINESE} "桌面"
LangString ^QuickLaunchBar $${LANG_SIMPCHINESE} "快速启动栏"
LangString ^AutomaticUpdates $${LANG_SIMPCHINESE} "自动检查更新"
LangString ^UninstConfig $${LANG_SIMPCHINESE} "删除配置文件"
; Remove text to save space
LangString ^ClickInstall $${LANG_GERMAN} " "
Expand Down Expand Up @@ -334,6 +349,8 @@ def get_nsis_path():
Push 'Português de Portugal'
Push $${LANG_TURKISH}
Push 'Türkçe'
Push $${LANG_SIMPCHINESE}
Push '简体中文'
Push A ; A means auto count languages
LangDLL::LangDialog "Language Selection" "Please select the language of Syncplay and the installer"
Pop $$LANGUAGE
Expand Down
2 changes: 2 additions & 0 deletions syncplay/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from . import messages_pt_PT
from . import messages_tr
from . import messages_fr
from . import messages_zh_CN
import re

messages = {
Expand All @@ -22,6 +23,7 @@
"pt_BR": messages_pt_BR.pt_BR,
"tr": messages_tr.tr,
"ru": messages_ru.ru,
"zh_CN": messages_zh_CN.zh_CN,
"CURRENT": None
}

Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"file-argument": 'Abzuspielende Datei',
"args-argument": 'Player-Einstellungen; Wenn du Einstellungen, die mit - beginnen, nutzen willst, stelle ein einzelnes \'--\'-Argument davor',
"clear-gui-data-argument": 'Setzt die Pfad- und GUI-Fenster-Daten die in den QSettings gespeichert sind zurück',
"language-argument": 'Sprache für Syncplay-Nachrichten (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'Sprache für Syncplay-Nachrichten (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'gibt die aktuelle Version aus',
"version-message": "Du verwendest Syncplay v. {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"file-argument": 'file to play',
"args-argument": 'player options, if you need to pass options starting with - prepend them with single \'--\' argument',
"clear-gui-data-argument": 'resets path and window state GUI data stored as QSettings',
"language-argument": 'language for Syncplay messages (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'language for Syncplay messages (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'prints your version',
"version-message": "You're using Syncplay version {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"file-argument": 'archivo a reproducir',
"args-argument": 'opciones del reproductor, si necesitas pasar opciones que empiezan con -, pásalas utilizando \'--\'',
"clear-gui-data-argument": 'restablece ruta y los datos del estado de la ventana GUI almacenados como QSettings',
"language-argument": 'lenguaje para los mensajes de Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'lenguaje para los mensajes de Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'imprime tu versión',
"version-message": "Estás usando la versión de Syncplay {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"file-argument": "fichier à lire",
"args-argument": 'player options, if you need to pass options starting with - prepend them with single \'--\' argument',
"clear-gui-data-argument": "réinitialise les données GUI du chemin et de l'état de la fenêtre stockées en tant que QSettings",
"language-argument": "langue pour les messages Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)",
"language-argument": "langue pour les messages Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)",

"version-argument": "imprime votre version",
"version-message": "Vous utilisez Syncplay version {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"file-argument": 'file da riprodurre',
"args-argument": 'opzioni del player, se hai bisogno di utilizzare opzioni che iniziano con - anteponi un singolo \'--\'',
"clear-gui-data-argument": 'ripristina il percorso e i dati impostati tramite interfaccia grafica e salvati come QSettings',
"language-argument": 'lingua per i messaggi di Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'lingua per i messaggi di Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'mostra la tua versione',
"version-message": "Stai usando la versione di Syncplay {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_pt_BR.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"file-argument": 'arquivo a ser tocado',
"args-argument": 'opções do reprodutor; se você precisar passar opções começando com -, as preceda com um único argumento \'--\'',
"clear-gui-data-argument": 'redefine o caminho e o estado de dados da janela da GUI para as de QSettings',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'exibe sua versão',
"version-message": "Você está usando o Syncplay versão {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_pt_PT.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"file-argument": 'ficheiro a ser tocado',
"args-argument": 'opções do reprodutor; se você precisar passar opções começando com -, as preceda com um único argumento \'--\'',
"clear-gui-data-argument": 'redefine o caminho e o estado de dados da janela da GUI para as de QSettings',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'exibe sua versão',
"version-message": "Você está usando o Syncplay versão {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"file-argument": 'воспроизводимый файл',
"args-argument": 'параметры проигрывателя; если нужно передать параметры, начинающиеся с - , то сначала пишите \'--\'',
"clear-gui-data-argument": 'сбрасывает путь и данные о состоянии окна GUI, хранимые как QSettings',
"language-argument": 'язык сообщений Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'язык сообщений Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'выводит номер версии',
"version-message": "Вы используете Syncplay версии {} ({})",
Expand Down
2 changes: 1 addition & 1 deletion syncplay/messages_tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"file-argument": 'oynatmak için dosya',
"args-argument": 'oynatıcı seçenekleri, ile başlayan seçenekleri iletmeniz gerekiyorsa - bunların başına tek \'--\' argümanı ekleyin',
"clear-gui-data-argument": 'QSettings olarak depolanan yol ve pencere durumu GUI verilerini sıfırlar',
"language-argument": 'Syncplay mesajları için dil (de/en/ru/it/es/pt_BR/pt_PT/tr/fr)',
"language-argument": 'Syncplay mesajları için dil (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)',

"version-argument": 'versiyonunuzu yazdırır',
"version-message": "Syncplay sürümünü kullanıyorsunuz {} ({})",
Expand Down
Loading

0 comments on commit be85497

Please sign in to comment.