From cb50becefbc8b7e2020c44b96db5d6ba87c02dfa Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 7 Nov 2020 20:40:37 +0100 Subject: [PATCH] Update translations --- app/SysTray-X/preferences.ui | 19 +-- app/SysTray-X/systrayx.cpp | 8 +- webext/_locales/de/messages.json | 24 +++- webext/_locales/en_US/messages.json | 24 +++- webext/_locales/nl/messages.json | 20 +++ webext/_locales/pt_BR/messages.json | 20 +++ webext/_locales/ru_RU/messages.json | 20 +++ webext/css/options.css | 2 +- webext/options.html | 191 +++++++++++++++------------- 9 files changed, 215 insertions(+), 113 deletions(-) diff --git a/app/SysTray-X/preferences.ui b/app/SysTray-X/preferences.ui index b1d9c3c..5824576 100644 --- a/app/SysTray-X/preferences.ui +++ b/app/SysTray-X/preferences.ui @@ -6,7 +6,7 @@ 0 0 - 515 + 511 640 @@ -323,19 +323,6 @@ Close - - - - Qt::Vertical - - - - 20 - 40 - - - - @@ -559,10 +546,10 @@ - + - + diff --git a/app/SysTray-X/systrayx.cpp b/app/SysTray-X/systrayx.cpp index a0437ed..a008034 100644 --- a/app/SysTray-X/systrayx.cpp +++ b/app/SysTray-X/systrayx.cpp @@ -163,11 +163,11 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) */ getPreferences(); -/* - slotLoadLanguage( "nl" ); - //slotLoadLanguage( "en_US" ); + + //slotLoadLanguage( "nl" ); + slotLoadLanguage( "en_US" ); slotSelectIconObject( false ); -*/ + } diff --git a/webext/_locales/de/messages.json b/webext/_locales/de/messages.json index e3d9f26..6b1a8b3 100644 --- a/webext/_locales/de/messages.json +++ b/webext/_locales/de/messages.json @@ -9,6 +9,21 @@ "description": "Webextension descriptions" }, + "preferences": { + "message": "SysTray-X Optionen", + "description": "Title of preferences page" + }, + + "intro_line_1": { + "message": "Dieses Add-On benötigt eine Begleiter-App um zu funktionieren. Sie können es hier bekommen:", + "description": "Introduction line 1" + }, + + "intro_link": { + "message": "Laden Sie hier die SysTray-X Begleiter-App herunter", + "description": "Link description" + }, + "tab_windows": { "message": "Fenster", "description": "Tab for Window options" @@ -44,6 +59,11 @@ "description": "Minimize option 0" }, + "windows_min_to_tray": { + "message": "In Systemleiste verbergen", + "description": "Minimize option 1" + }, + "windows_min_to_tray_1": { "message": "In Systemleiste verbergen, Methode 1", "description": "Minimize option 1" @@ -64,12 +84,12 @@ "description": "Close option 0" }, - "windows_close_to_tray_1": { + "windows_close_1": { "message": "Hauptfenster minimieren, Kinderfenster schließen", "description": "Close option 1" }, - "windows_close_to_tray_2": { + "windows_close_2": { "message": "Alle Fenster minimieren", "description": "Close option 2" }, diff --git a/webext/_locales/en_US/messages.json b/webext/_locales/en_US/messages.json index 9efe955..3a6cc49 100644 --- a/webext/_locales/en_US/messages.json +++ b/webext/_locales/en_US/messages.json @@ -9,6 +9,21 @@ "description": "Webextension descriptions" }, + "preferences": { + "message": "SysTray-X Preferences", + "description": "Title of preferences page" + }, + + "intro_line_1": { + "message": "This addon needs an external application to work. You can get it here:", + "description": "Introduction line 1" + }, + + "intro_link": { + "message": "Download the SysTray-X Companion application here", + "description": "Link description" + }, + "tab_windows": { "message": "Windows", "description": "Tab for Window options" @@ -44,6 +59,11 @@ "description": "Minimize option 0" }, + "windows_min_to_tray": { + "message": "Minimize to tray", + "description": "Minimize to tray" + }, + "windows_min_to_tray_1": { "message": "Minimize to tray, method 1", "description": "Minimize option 1" @@ -64,12 +84,12 @@ "description": "Close option 0" }, - "windows_close_to_tray_1": { + "windows_close_1": { "message": "Minimize main, close children", "description": "Close option 1" }, - "windows_close_to_tray_2": { + "windows_close_2": { "message": "Minimize all windows", "description": "Close option 2" }, diff --git a/webext/_locales/nl/messages.json b/webext/_locales/nl/messages.json index cfe71c1..c2d9c51 100644 --- a/webext/_locales/nl/messages.json +++ b/webext/_locales/nl/messages.json @@ -9,6 +9,21 @@ "description": "Webextension descriptions" }, + "preferences": { + "message": "SysTray-X Opties", + "description": "Title of preferences page" + }, + + "intro_line_1": { + "message": "Deze uitbreiding heeft ook nog een extern programma nodig. Dit kunt U hier downloaden:", + "description": "Introduction line 1" + }, + + "intro_link": { + "message": "Download het bijbehorende SysTray-X programma hier", + "description": "Link description" + }, + "tab_windows": { "message": "Vensters", "description": "Tab for Window options" @@ -44,6 +59,11 @@ "description": "Minimize option 0" }, + "windows_min_to_tray": { + "message": "Minimaliseer naar systeemvak", + "description": "Minimize option" + }, + "windows_min_to_tray_1": { "message": "Minimaliseer naar systeemvak, methode 1", "description": "Minimize option 1" diff --git a/webext/_locales/pt_BR/messages.json b/webext/_locales/pt_BR/messages.json index ff3986f..5a56e64 100644 --- a/webext/_locales/pt_BR/messages.json +++ b/webext/_locales/pt_BR/messages.json @@ -9,6 +9,21 @@ "description": "Webextension descriptions" }, + "preferences": { + "message": "SysTray-X Preferences", + "description": "Title of preferences page" + }, + + "intro_line_1": { + "message": "Este addon precisa de um aplicativo externo para funcionar. Você pode obtê-lo aqui:", + "description": "Introduction line 1" + }, + + "intro_link": { + "message": "Baixe o aplicativo SysTray-X Companion aqui", + "description": "Link description" + }, + "tab_windows": { "message": "Janela", "description": "Tab for Window options" @@ -44,6 +59,11 @@ "description": "Minimize option 0" }, + "windows_min_to_tray": { + "message": "Minimizar para a tray", + "description": "Minimize" + }, + "windows_min_to_tray_1": { "message": "Minimizar para a tray, método 1", "description": "Minimize option 1" diff --git a/webext/_locales/ru_RU/messages.json b/webext/_locales/ru_RU/messages.json index 8966ef7..f6da3bc 100644 --- a/webext/_locales/ru_RU/messages.json +++ b/webext/_locales/ru_RU/messages.json @@ -14,6 +14,21 @@ "description": "Tab for Window options" }, + "preferences": { + "message": "SysTray-X предпочтения", + "description": "Title of preferences page" + }, + + "intro_line_1": { + "message": "Для работы этого дополнения требуется внешнее приложение. Вы можете получить его здесь:", + "description": "Introduction line 1" + }, + + "intro_link": { + "message": "Загрузите приложение SysTray-X Companion здесь", + "description": "Link description" + }, + "tab_icon": { "message": "Иконка", "description": "Tab for Icon options" @@ -44,6 +59,11 @@ "description": "Minimize option 0" }, + "windows_min_to_tray": { + "message": "Свернуть в трей", + "description": "Minimize" + }, + "windows_min_to_tray_1": { "message": "Свернуть в трей, вариант 1", "description": "Minimize option 1" diff --git a/webext/css/options.css b/webext/css/options.css index 6958a4e..207f524 100644 --- a/webext/css/options.css +++ b/webext/css/options.css @@ -83,7 +83,7 @@ body { } #closeselect { - width: 20em; + width: 25em; border-style: solid; border-width: 1px; margin: 10px 10px 10px 10px; diff --git a/webext/options.html b/webext/options.html index 64a1ba5..9dfbfb0 100644 --- a/webext/options.html +++ b/webext/options.html @@ -1,7 +1,7 @@ - SysTray-X Preferences + __MSG_preferences__ @@ -11,13 +11,13 @@

- This addon needs an external application to work. You can get it here: + __MSG_intro_line_1__

Download the SysTray-X Companion application here__MSG_intro_link__

@@ -30,7 +30,7 @@ -
+

__MSG_windows__

@@ -38,7 +38,7 @@ __MSG_windows_min_options__ - - -
+
+ >__MSG_windows_min_default__
+
+ >__MSG_windows_min_to_tray_1__
+
+ >__MSG_windows_min_to_tray_2__
@@ -74,37 +74,40 @@ - -
+ + - -
+ + - -
+ +
-  __MSG_windows_start_min__ -
+ +
@@ -118,7 +121,7 @@ __MSG_icons_default_options__ - + __MSG_icons_default_tb__ - + __MSG_icons_default_lookthrough__ - + __MSG_icons_default_custom__ @@ -167,7 +170,7 @@ @@ -175,12 +178,10 @@ type="file" id="selectedFileDefaultIconType" accept="image/*" - style="display: none;" + style="display: none" /> - -   - +   @@ -189,36 +190,52 @@  __MSG_icons_default_kde_integration__
+ /> +
- - - - + - @@ -265,23 +284,20 @@ - +
-  __MSG_icons_unread_options__ + __MSG_icons_unread_options__
- - +
- - +
- - + @@ -233,7 +250,7 @@ @@ -241,18 +258,20 @@ type="file" id="selectedFileIconType" accept="image/*" - style="display: none;" + style="display: none" /> -   -
- - +
-  __MSG_icons_number_display__ + +
-   -
- +
- +
- + @@ -361,9 +377,8 @@ name="debug" id="debugDisplay" value="Debug" - /> -