From e121669e26faeace2c740380b2f2b2908e324837 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Thu, 21 Jul 2016 23:17:56 +0200 Subject: [PATCH] =?UTF-8?q?Added=20polish=20translation,=20thanks=20to=20P?= =?UTF-8?q?iotr=20Dr=C4=85g=20(piotrdrag).=20Updated=20translation-files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gnome-shell-extension-panel-osd.cbp | 1 + po/LINGUAS | 6 +- po/de.po | 44 +++++++++--- po/gnome-shell-extension-panel-osd.pot | 16 ++--- po/pl.po | 93 ++++++++++++++++++++++++++ po/pt_BR.po | 16 ++--- po/zh_CN.po | 16 ++--- src/extension.js | 3 +- 8 files changed, 157 insertions(+), 38 deletions(-) create mode 100644 po/pl.po diff --git a/gnome-shell-extension-panel-osd.cbp b/gnome-shell-extension-panel-osd.cbp index d055329..334328b 100644 --- a/gnome-shell-extension-panel-osd.cbp +++ b/gnome-shell-extension-panel-osd.cbp @@ -39,6 +39,7 @@ + diff --git a/po/LINGUAS b/po/LINGUAS index 3fe1bd4..7ccb9d2 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1,3 +1,5 @@ -de +zh_CN pt_BR -zh_CN \ No newline at end of file +pl +de +de_DE \ No newline at end of file diff --git a/po/de.po b/po/de.po index ed01f7a..06dec6d 100644 --- a/po/de.po +++ b/po/de.po @@ -1,9 +1,30 @@ -#: ../src/extension.js:85 +# German translation for gnome-shell-extension-panel-osd +# Copyright (C) 2011-2016 Jens Lody +# This file is distributed under the same license as the gnome-shell-extension-panel-osd package. +# Jens Lody , 2014-2016, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: gnome-shell-extension-panel-osd\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-21 23:09+0200\n" +"PO-Revision-Date: 2016-07-21 23:08+0200\n" +"Last-Translator: Jens Lody \n" +"Language-Team: Deutsch \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 2.91.7\n" + +#: ../src/extension.js:119 msgid "" "This is just a multiline test-message to show where the notification will be " "placed and to test expansion (showing details)." -msgstr "Dies ist nur eine einfache mehrzeilige Meldung um zu Zeigen, wo die" -"Meldung angezeigt wird, und um das Erweitern (Details) zu zeigen. " +msgstr "" +"Dies ist nur eine einfache mehrzeilige Meldung um zu Zeigen, wo die Meldung " +"angezeigt wird, und um das Erweitern (Details) zu zeigen. " #: ../data/panel-osd-settings.ui:39 msgid "Horizontal position [%] from 0% (left) to 100% (right)" @@ -13,29 +34,30 @@ msgstr "Horizontale Position [%] von links (0%) bis rechts (100%)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgstr "Vertikale Position [%] von unten (0%) bis oben (100%)" -#: ../data/panel-osd-settings.ui:174 +#: ../data/panel-osd-settings.ui:170 msgid "Reset horizontal position to defaults" msgstr "Horizontale Position auf Standardwert zurücksetzen" -#: ../data/panel-osd-settings.ui:189 +#: ../data/panel-osd-settings.ui:183 msgid "Reset vertical position to defaults" msgstr "Vertikale Position auf Standardwert zurücksetzen" -#: ../data/panel-osd-settings.ui:207 +#: ../data/panel-osd-settings.ui:199 msgid "Reset" msgstr "Zurücksetzen" -#: ../data/panel-osd-settings.ui:265 +#: ../data/panel-osd-settings.ui:257 msgid "Force showing details for all notifications" msgstr "Zeige alle Meldungen erweitert" -#: ../data/panel-osd-settings.ui:307 +#: ../data/panel-osd-settings.ui:299 msgid "" "Delay [s] before test-notification is shown. If it is too short, the " "notification might close immediately after it is shown." -msgstr "Verzögerung [s] before die Test-Meldung gezeigt wird. Ist die " -"Zeit zu kurz wird die Meldung sofort wieder geschlossen." +msgstr "" +"Verzögerung [s] before die Test-Meldung gezeigt wird. Ist die Zeit zu kurz " +"wird die Meldung sofort wieder geschlossen." -#: ../data/panel-osd-settings.ui:336 +#: ../data/panel-osd-settings.ui:328 msgid "Show test notification" msgstr "Zeige Test-Meldung" diff --git a/po/gnome-shell-extension-panel-osd.pot b/po/gnome-shell-extension-panel-osd.pot index 39be9a9..559a6ce 100644 --- a/po/gnome-shell-extension-panel-osd.pot +++ b/po/gnome-shell-extension-panel-osd.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-03-07 18:36+0100\n" +"POT-Creation-Date: 2016-07-21 23:09+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: ../src/extension.js:85 +#: ../src/extension.js:119 msgid "" "This is just a multiline test-message to show where the notification will be " "placed and to test expansion (showing details)." @@ -31,28 +31,28 @@ msgstr "" msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgstr "" -#: ../data/panel-osd-settings.ui:174 +#: ../data/panel-osd-settings.ui:170 msgid "Reset horizontal position to defaults" msgstr "" -#: ../data/panel-osd-settings.ui:189 +#: ../data/panel-osd-settings.ui:183 msgid "Reset vertical position to defaults" msgstr "" -#: ../data/panel-osd-settings.ui:207 +#: ../data/panel-osd-settings.ui:199 msgid "Reset" msgstr "" -#: ../data/panel-osd-settings.ui:265 +#: ../data/panel-osd-settings.ui:257 msgid "Force showing details for all notifications" msgstr "" -#: ../data/panel-osd-settings.ui:307 +#: ../data/panel-osd-settings.ui:299 msgid "" "Delay [s] before test-notification is shown. If it is too short, the " "notification might close immediately after it is shown." msgstr "" -#: ../data/panel-osd-settings.ui:336 +#: ../data/panel-osd-settings.ui:328 msgid "Show test notification" msgstr "" diff --git a/po/pl.po b/po/pl.po new file mode 100644 index 0000000..ac5047e --- /dev/null +++ b/po/pl.po @@ -0,0 +1,93 @@ +# Polish translation for gnome-shell-extension-panel-osd. +# Copyright (C) 2016 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the gnome-shell-extension-panel-osd package. +# Piotr Drąg , 2016. +# Aviary.pl , 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: gnome-shell-extension-panel-osd\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-21 22:58+0200\n" +"PO-Revision-Date: 2016-07-21 16:20+0200\n" +"Last-Translator: Piotr Drąg \n" +"Language-Team: Polish \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#: ../src/extension.js:119 +msgid "" +"This is just a multiline test-message to show where the notification will be " +"placed and to test expansion (showing details)." +msgstr "" +"To wielowierszowy komunikat testowy pokazujący, gdzie powiadomienie będzie " +"umieszczane i testujący rozszerzanie (wyświetlanie szczegółów)." + +#: ../data/panel-osd-settings.ui:39 +msgid "Horizontal position [%] from 0% (left) to 100% (right)" +msgstr "Poziome położenie (w procentach) od 0% (lewo) do 100% (prawo)" + +#: ../data/panel-osd-settings.ui:86 +msgid "Vertical position [%] from 0% (bottom) to 100% (top)" +msgstr "Pionowe położenie (w procentach) od 0% (dół) do 100% (góra)" + +#: ../data/panel-osd-settings.ui:170 +msgid "Reset horizontal position to defaults" +msgstr "Przywrócenie poziomego położenia do wartości domyślnych" + +#: ../data/panel-osd-settings.ui:183 +msgid "Reset vertical position to defaults" +msgstr "Przywrócenie pionowego położenia do wartości domyślnych" + +#: ../data/panel-osd-settings.ui:199 +msgid "Reset" +msgstr "Przywróć" + +#: ../data/panel-osd-settings.ui:257 +msgid "Force showing details for all notifications" +msgstr "Wymuszenie wyświetlania szczegółów wszystkich powiadomień" + +#: ../data/panel-osd-settings.ui:299 +msgid "" +"Delay [s] before test-notification is shown. If it is too short, the " +"notification might close immediately after it is shown." +msgstr "" +"Opóźnienie (w sekundach) przed wyświetleniem powiadomienia testowego. Jeśli " +"jest za krótkie, to powiadomienie może zostać zamknięte natychmiast po " +"wyświetleniu." + +#: ../data/panel-osd-settings.ui:328 +msgid "Show test notification" +msgstr "Wyświetl powiadomienie testowe" + +#~ msgid "Horizontal position of notification." +#~ msgstr "Poziome położenie powiadomienia." + +#~ msgid "Vertical position of notification." +#~ msgstr "Pionowe położenie powiadomienia." + +#~ msgid "Allow resetting horizontal position of notification." +#~ msgstr "Umożliwia przywrócenie poziomego położenia powiadomienia." + +#~ msgid "Allow resetting vertical position of notification." +#~ msgstr "Umożliwia przywrócenie pionowego położenia powiadomienia." + +#~ msgid "Always expand notifications." +#~ msgstr "Rozszerzanie wszystkich powiadomień." + +#~ msgid "Delay before test notification is shown." +#~ msgstr "Opóźnienie przed wyświetleniem powiadomienia testowego." + +#~ msgid "" +#~ "If the value is true a test-notification is send and then set back to " +#~ "false." +#~ msgstr "" +#~ "Jeśli wartość wynosi „true”, to wysłane zostanie powiadomienie testowe, a " +#~ "następnie przywrócona wartość „false”." + +#~ msgid "border-radius: %dpx %dpx %dpx %dpx;" +#~ msgstr "border-radius: %dpx %dpx %dpx %dpx;" diff --git a/po/pt_BR.po b/po/pt_BR.po index 1d2a047..d8ee632 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-01-28 16:37-0300\n" +"POT-Creation-Date: 2016-07-21 22:58+0200\n" "PO-Revision-Date: 2016-01-28 16:37-0300\n" "Last-Translator: Fábio Nogueira \n" "Language-Team: Português do Brasil\n" @@ -18,7 +18,7 @@ msgstr "" "X-Generator: Poedit 1.8.6\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../src/extension.js:85 +#: ../src/extension.js:119 msgid "" "This is just a multiline test-message to show where the notification will be " "placed and to test expansion (showing details)." @@ -34,23 +34,23 @@ msgstr "Posição horizontal [%] a partir de 0% (esquerda) a 100% (à direita)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgstr "Posição vertical [%] a partir de 0% (base) a 100% (topo)" -#: ../data/panel-osd-settings.ui:174 +#: ../data/panel-osd-settings.ui:170 msgid "Reset horizontal position to defaults" msgstr "Redefinir posição horizontal para os padrões" -#: ../data/panel-osd-settings.ui:189 +#: ../data/panel-osd-settings.ui:183 msgid "Reset vertical position to defaults" msgstr "Redefinir posição vertical para os padrões" -#: ../data/panel-osd-settings.ui:207 +#: ../data/panel-osd-settings.ui:199 msgid "Reset" msgstr "Redefinir" -#: ../data/panel-osd-settings.ui:265 +#: ../data/panel-osd-settings.ui:257 msgid "Force showing details for all notifications" msgstr "Forçar exibição dos detalhes para todas as notificações" -#: ../data/panel-osd-settings.ui:307 +#: ../data/panel-osd-settings.ui:299 msgid "" "Delay [s] before test-notification is shown. If it is too short, the " "notification might close immediately after it is shown." @@ -58,6 +58,6 @@ msgstr "" "Atraso [s] antes da notificação teste ser mostrada. Se muito curto, a " "notificação pode fechar imediatamente depois de ser exibida." -#: ../data/panel-osd-settings.ui:336 +#: ../data/panel-osd-settings.ui:328 msgid "Show test notification" msgstr "Mostrar notificação de teste" diff --git a/po/zh_CN.po b/po/zh_CN.po index cf877ae..3edfd1f 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: gnome-shell-extension-panel-osd VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-03-07 18:36+0100\n" +"POT-Creation-Date: 2016-07-21 22:58+0200\n" "PO-Revision-Date: 2015-09-20 18:29+0800\n" "Last-Translator: 绿色圣光 \n" "Language-Team: Chinese (Simplified) <>\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Gtranslator 2.91.7\n" -#: ../src/extension.js:85 +#: ../src/extension.js:119 msgid "" "This is just a multiline test-message to show where the notification will be " "placed and to test expansion (showing details)." @@ -35,29 +35,29 @@ msgstr "水平位置百分比,从 0% (左侧)到 100% (右侧)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgstr "垂直位置百分比,从 0% (底端)到 100% (顶端)" -#: ../data/panel-osd-settings.ui:174 +#: ../data/panel-osd-settings.ui:170 msgid "Reset horizontal position to defaults" msgstr "重置水平位置到默认值" -#: ../data/panel-osd-settings.ui:189 +#: ../data/panel-osd-settings.ui:183 msgid "Reset vertical position to defaults" msgstr "重置垂直位置到默认值" -#: ../data/panel-osd-settings.ui:207 +#: ../data/panel-osd-settings.ui:199 msgid "Reset" msgstr "重置" -#: ../data/panel-osd-settings.ui:265 +#: ../data/panel-osd-settings.ui:257 msgid "Force showing details for all notifications" msgstr "强制所有通知显示细节" -#: ../data/panel-osd-settings.ui:307 +#: ../data/panel-osd-settings.ui:299 msgid "" "Delay [s] before test-notification is shown. If it is too short, the " "notification might close immediately after it is shown." msgstr "" "测试通知显示前延迟的秒数。如果太短,通知可能会在显示出来后,被立即关掉。" -#: ../data/panel-osd-settings.ui:336 +#: ../data/panel-osd-settings.ui:328 msgid "Show test notification" msgstr "显示测试通知" diff --git a/src/extension.js b/src/extension.js index 233820b..4ac5288 100644 --- a/src/extension.js +++ b/src/extension.js @@ -431,7 +431,8 @@ let extensionUpdateShowingNotification = function() { tl = bl; tr = br; } - this._notification._table.set_style(_('border-radius: %dpx %dpx %dpx %dpx;').format(tl, tr, bl, br)); + // add N before underscore (_), to prevent translation + this._notification._table.set_style(N_('border-radius: %dpx %dpx %dpx %dpx;').format(tl, tr, bl, br)); } } // JRL changes end