Update po-files via Makefile with gettext instead of using update.js .

Get rid of (mostly unmaintained) intltools.
Make gsettings schema translatable
master
Jens Lody 9 years ago
parent e121669e26
commit 5897019e19
  1. 2
      README.md
  2. 5
      configure.ac
  3. 9
      data/Makefile.am
  4. 32
      data/org.gnome.shell.extensions.panel-osd.gschema.xml
  5. 32
      data/org.gnome.shell.extensions.panel-osd.gschema.xml.in
  6. 6
      gnome-shell-extension-panel-osd.cbp
  7. 11
      gnome-shell-extension-panel-osd.spec
  8. 3
      po/LINGUAS
  9. 78
      po/Makevars
  10. 7
      po/POTFILES.in
  11. 58
      po/de.po
  12. 58
      po/gnome-shell-extension-panel-osd.pot
  13. 79
      po/pl.po
  14. 58
      po/pt_BR.po
  15. 54
      po/update.js
  16. 58
      po/zh_CN.po

@ -46,7 +46,7 @@ Make sure you have the following dependencies installed:
* *autoconf*, * *autoconf*,
* *automake*, * *automake*,
* *gnome-tweak-tool*, * *gnome-tweak-tool*,
* *intltool*. * *gettext-devel*
Run the following commands: Run the following commands:

@ -15,7 +15,10 @@ GETTEXT_PACKAGE=gnome-shell-extension-panel-osd
AC_SUBST(GETTEXT_PACKAGE) AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.]) [The prefix for our gettext translation domains.])
IT_PROG_INTLTOOL(0.26) # i18n
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.4])
PKG_PROG_PKG_CONFIG([0.22]) PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS GLIB_GSETTINGS

@ -21,11 +21,8 @@ metadata.json: metadata.json.in $(top_builddir)/config.status
CLEANFILES = metadata.json CLEANFILES = metadata.json
gschemas_in = org.gnome.shell.extensions.panel-osd.gschema.xml.in gsettings_SCHEMAS = org.gnome.shell.extensions.panel-osd.gschema.xml
@INTLTOOL_XML_NOMERGE_RULE@ @GSETTINGS_RULES@
gsettings_SCHEMAS = $(gschemas_in:.xml.in=.xml) @GSETTINGS_RULES@ EXTRA_DIST += $(gsettings_SCHEMAS)
EXTRA_DIST += $(gschemas_in)
CLEANFILES += $(gschemas_in:.xml.in=.valid) $(gsettings_SCHEMAS)

@ -0,0 +1,32 @@
<schemalist>
<schema gettext-domain="gnome-shell-extension-panel-osd" id="org.gnome.shell.extensions.panel-osd" path="/org/gnome/shell/extensions/panel-osd/">
<key name="x-pos" type="d">
<default>50.0</default>
<summary>Horizontal position of notification.</summary>
</key>
<key name="y-pos" type="d">
<default>100.0</default>
<summary>Vertical position of notification.</summary>
</key>
<key name="x-res" type="b">
<default>false</default>
<summary>Allow resetting horizontal position of notification.</summary>
</key>
<key name="y-res" type="b">
<default>false</default>
<summary>Allow resetting vertical position of notification.</summary>
</key>
<key name="force-expand" type="b">
<default>false</default>
<summary>Always expand notifications.</summary>
</key>
<key name="test-delay" type="d">
<default>1.0</default>
<summary>Delay before test notification is shown.</summary>
</key>
<key name="test-notification" type="b">
<default>false</default>
<summary>If the value is true a test-notification is send and then set back to false.</summary>
</key>
</schema>
</schemalist>

@ -1,32 +0,0 @@
<schemalist gettext-domain="gnome-shell-extension-panel-osd">
<schema id="org.gnome.shell.extensions.panel-osd" path="/org/gnome/shell/extensions/panel-osd/">
<key name="x-pos" type="d">
<default>50.0</default>
<_summary>Horizontal position of notification.</_summary>
</key>
<key name="y-pos" type="d">
<default>100.0</default>
<_summary>Vertical position of notification.</_summary>
</key>
<key name="x-res" type="b">
<default>false</default>
<_summary>Allow resetting horizontal position of notification.</_summary>
</key>
<key name="y-res" type="b">
<default>false</default>
<_summary>Allow resetting vertical position of notification.</_summary>
</key>
<key name="force-expand" type="b">
<default>false</default>
<_summary>Always expand notifications.</_summary>
</key>
<key name="test-delay" type="d">
<default>1.0</default>
<_summary>Delay before test notification is shown.</_summary>
</key>
<key name="test-notification" type="b">
<default>false</default>
<_summary>If the value is true a test-notification is send and then set back to false.</_summary>
</key>
</schema>
</schemalist>

@ -31,17 +31,17 @@
<Unit filename="data/PanelOSD.png" /> <Unit filename="data/PanelOSD.png" />
<Unit filename="data/Screenshot.jpg" /> <Unit filename="data/Screenshot.jpg" />
<Unit filename="data/metadata.json.in" /> <Unit filename="data/metadata.json.in" />
<Unit filename="data/org.gnome.shell.extensions.panel-osd.gschema.xml.in" /> <Unit filename="data/org.gnome.shell.extensions.panel-osd.gschema.xml" />
<Unit filename="data/panel-osd-settings.png" />
<Unit filename="data/panel-osd-settings.ui" /> <Unit filename="data/panel-osd-settings.ui" />
<Unit filename="gnome-shell-extension-panel-osd.spec" /> <Unit filename="gnome-shell-extension-panel-osd.spec" />
<Unit filename="po/LINGUAS" /> <Unit filename="po/LINGUAS" />
<Unit filename="po/Makefile.in" /> <Unit filename="po/Makevars" />
<Unit filename="po/POTFILES.in" /> <Unit filename="po/POTFILES.in" />
<Unit filename="po/de.po" /> <Unit filename="po/de.po" />
<Unit filename="po/gnome-shell-extension-panel-osd.pot" /> <Unit filename="po/gnome-shell-extension-panel-osd.pot" />
<Unit filename="po/pl.po" /> <Unit filename="po/pl.po" />
<Unit filename="po/pt_BR.po" /> <Unit filename="po/pt_BR.po" />
<Unit filename="po/update.js" />
<Unit filename="po/zh_CN.po" /> <Unit filename="po/zh_CN.po" />
<Unit filename="src/Makefile.am" /> <Unit filename="src/Makefile.am" />
<Unit filename="src/convenience.js" /> <Unit filename="src/convenience.js" />

@ -1,12 +1,12 @@
%global git e052ded %global git 6ad19f0
%global uuid panel-osd@berend.de.schouwer.gmail.com %global uuid panel-osd@berend.de.schouwer.gmail.com
%global github jenslody-gnome-shell-extension-panel-osd %global github jenslody-gnome-shell-extension-panel-osd
%global checkout git%{git} %global checkout git%{git}
%global checkout_date 20160325 %global checkout_date 20160721
Name: gnome-shell-extension-panel-osd Name: gnome-shell-extension-panel-osd
Version: 1 Version: 1
Release: 0.13.%{checkout_date}%{checkout}%{?dist} Release: 0.14.%{checkout_date}%{checkout}%{?dist}
Summary: Configure the place where notifications are shown Summary: Configure the place where notifications are shown
Group: User Interface/Desktops Group: User Interface/Desktops
@ -18,7 +18,7 @@ Source0: https://github.com/jenslody/gnome-shell-extension-panel-osd/tarb
BuildArch: noarch BuildArch: noarch
# The version of gnome-common in CentOS7 is only 3.7.4 # The version of gnome-common in CentOS7 is only 3.7.4
BuildRequires: autoconf, automake, glib2-devel, gnome-common >= 3.7.4, intltool BuildRequires: autoconf, automake, glib2-devel, gnome-common >= 3.7.4, gettext-devel
Requires: gnome-shell >= 3.10.0 Requires: gnome-shell >= 3.10.0
@ -66,6 +66,9 @@ fi
%{_datadir}/gnome-shell/extensions/%{uuid} %{_datadir}/gnome-shell/extensions/%{uuid}
%changelog %changelog
* Thu Jul 21 2016 Jens Lody <fedora@jenslody.de> - 1-0.14.20160721git6ad19f0
- Fixes layout on multimonitor-systems or when using bottom-panel extensions.
* Fri Mar 25 2016 Jens Lody <fedora@jenslody.de> - 1-0.13.20160325gite052ded * Fri Mar 25 2016 Jens Lody <fedora@jenslody.de> - 1-0.13.20160325gite052ded
- Fix build error, due to incorrect git-commit number. - Fix build error, due to incorrect git-commit number.

@ -1,5 +1,4 @@
zh_CN zh_CN
pt_BR pt_BR
pl pl
de de
de_DE

@ -0,0 +1,78 @@
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = gnome-shell-extension-panel-osd
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=translatable
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
# package. (Note that the msgstr strings, extracted from the package's
# sources, belong to the copyright holder of the package.) Translators are
# expected to transfer the copyright for their translations to this person
# or entity, or to disclaim their copyright. The empty string stands for
# the public domain; in this case the translators are expected to disclaim
# their copyright.
COPYRIGHT_HOLDER = Jens Lody
# This tells whether or not to prepend "GNU " prefix to the package
# name that gets inserted into the header of the $(DOMAIN).pot file.
# Possible values are "yes", "no", or empty. If it is empty, try to
# detect it automatically by scanning the files in $(top_srcdir) for
# "GNU packagename" string.
PACKAGE_GNU = no
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings:
# - Strings which are not entire sentences, see the maintainer guidelines
# in the GNU gettext documentation, section 'Preparing Strings'.
# - Strings which use unclear terms or require additional context to be
# understood.
# - Strings which make invalid assumptions about notation of date, time or
# money.
# - Pluralisation problems.
# - Incorrect English spelling.
# - Incorrect formatting.
# It can be your email address, or a mailing list address where translators
# can write to without being subscribed, or the URL of a web page through
# which the translators can contact you.
MSGID_BUGS_ADDRESS = $(PACKAGE_BUGREPORT)
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =
# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
# context. Possible values are "yes" and "no". Set this to yes if the
# package uses functions taking also a message context, like pgettext(), or
# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
USE_MSGCTXT = no
# These options get passed to msgmerge.
# Useful options are in particular:
# --previous to keep previous msgids of translated messages,
# --quiet to reduce the verbosity.
MSGMERGE_OPTIONS = --previous
# These options get passed to msginit.
# If you want to disable line wrapping when writing PO files, add
# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
# MSGINIT_OPTIONS.
MSGINIT_OPTIONS =
# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
# has changed. Possible values are "yes" and "no". Set this to no if
# the POT file is checked in the repository and the version control
# program ignores timestamps.
PO_DEPENDS_ON_POT = no
# This tells whether or not to forcibly update $(DOMAIN).pot and
# regenerate PO files on "make dist". Possible values are "yes" and
# "no". Set this to no if the POT file and PO files are maintained
# externally.
DIST_DEPENDS_ON_UPDATE_PO = yes

@ -1,3 +1,4 @@
../src/extension.js src/extension.js
../src/prefs.js src/prefs.js
../data/panel-osd-settings.ui data/org.gnome.shell.extensions.panel-osd.gschema.xml
data/panel-osd-settings.ui

@ -6,9 +6,10 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extension-panel-osd\n" "Project-Id-Version: gnome-shell-extension-panel-osd\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: https://github.com/jenslody/gnome-shell-extension-"
"POT-Creation-Date: 2016-07-21 23:09+0200\n" "panel-osd/issues\n"
"PO-Revision-Date: 2016-07-21 23:08+0200\n" "POT-Creation-Date: 2016-07-22 02:19+0200\n"
"PO-Revision-Date: 2016-07-22 00:42+0200\n"
"Last-Translator: Jens Lody <fedora@jenslody.de>\n" "Last-Translator: Jens Lody <fedora@jenslody.de>\n"
"Language-Team: Deutsch <fedora@jenslody.de>\n" "Language-Team: Deutsch <fedora@jenslody.de>\n"
"Language: de\n" "Language: de\n"
@ -18,7 +19,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 2.91.7\n" "X-Generator: Gtranslator 2.91.7\n"
#: ../src/extension.js:119 #: src/extension.js:119
msgid "" msgid ""
"This is just a multiline test-message to show where the notification will be " "This is just a multiline test-message to show where the notification will be "
"placed and to test expansion (showing details)." "placed and to test expansion (showing details)."
@ -26,38 +27,69 @@ msgstr ""
"Dies ist nur eine einfache mehrzeilige Meldung um zu Zeigen, wo die Meldung " "Dies ist nur eine einfache mehrzeilige Meldung um zu Zeigen, wo die Meldung "
"angezeigt wird, und um das Erweitern (Details) zu zeigen. " "angezeigt wird, und um das Erweitern (Details) zu zeigen. "
#: ../data/panel-osd-settings.ui:39 #: data/org.gnome.shell.extensions.panel-osd.gschema.xml:5
msgid "Horizontal position of notification."
msgstr "Horizontale Position der Meldung."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:9
msgid "Vertical position of notification."
msgstr "Vertikale Position der Meldung."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:13
msgid "Allow resetting horizontal position of notification."
msgstr "Zurücksetzen der horizontalen Position auf Standardwert ermöglichen."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:17
msgid "Allow resetting vertical position of notification."
msgstr "Zurücksetzen der vertikalen Position auf Standardwert ermöglichen."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:21
msgid "Always expand notifications."
msgstr "Meldung immer erweitert anzeigen."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:25
msgid "Delay before test notification is shown."
msgstr "Verzögerung bevor die Test-Meldung gezeigt wird."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:29
msgid ""
"If the value is true a test-notification is send and then set back to false."
msgstr ""
"Wird dieser Wert wahr, wird eine Testmeldung gezeigt und der Wert wieder auf "
"unwahr gesetzt."
#: data/panel-osd-settings.ui:39
msgid "Horizontal position [%] from 0% (left) to 100% (right)" msgid "Horizontal position [%] from 0% (left) to 100% (right)"
msgstr "Horizontale Position [%] von links (0%) bis rechts (100%)" msgstr "Horizontale Position [%] von links (0%) bis rechts (100%)"
#: ../data/panel-osd-settings.ui:86 #: data/panel-osd-settings.ui:86
msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)"
msgstr "Vertikale Position [%] von unten (0%) bis oben (100%)" msgstr "Vertikale Position [%] von unten (0%) bis oben (100%)"
#: ../data/panel-osd-settings.ui:170 #: data/panel-osd-settings.ui:170
msgid "Reset horizontal position to defaults" msgid "Reset horizontal position to defaults"
msgstr "Horizontale Position auf Standardwert zurücksetzen" msgstr "Horizontale Position auf Standardwert zurücksetzen"
#: ../data/panel-osd-settings.ui:183 #: data/panel-osd-settings.ui:183
msgid "Reset vertical position to defaults" msgid "Reset vertical position to defaults"
msgstr "Vertikale Position auf Standardwert zurücksetzen" msgstr "Vertikale Position auf Standardwert zurücksetzen"
#: ../data/panel-osd-settings.ui:199 #: data/panel-osd-settings.ui:199
msgid "Reset" msgid "Reset"
msgstr "Zurücksetzen" msgstr "Zurücksetzen"
#: ../data/panel-osd-settings.ui:257 #: data/panel-osd-settings.ui:257
msgid "Force showing details for all notifications" msgid "Force showing details for all notifications"
msgstr "Zeige alle Meldungen erweitert" msgstr "Zeige alle Meldungen erweitert"
#: ../data/panel-osd-settings.ui:299 #: data/panel-osd-settings.ui:299
msgid "" msgid ""
"Delay [s] before test-notification is shown. If it is too short, the " "Delay [s] before test-notification is shown. If it is too short, the "
"notification might close immediately after it is shown." "notification might close immediately after it is shown."
msgstr "" msgstr ""
"Verzögerung [s] before die Test-Meldung gezeigt wird. Ist die Zeit zu kurz " "Verzögerung [s] bevor die Test-Meldung gezeigt wird. Ist die Zeit zu kurz "
"wird die Meldung sofort wieder geschlossen." "wird die Meldung sofort wieder geschlossen."
#: ../data/panel-osd-settings.ui:328 #: data/panel-osd-settings.ui:328
msgid "Show test notification" msgid "Show test notification"
msgstr "Zeige Test-Meldung" msgstr "Zeige Test-Meldung"

@ -1,14 +1,15 @@
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR Jens Lody
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the gnome-shell-extension-panel-osd package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# #
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: gnome-shell-extension-panel-osd 1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: https://github.com/jenslody/gnome-shell-extension-"
"POT-Creation-Date: 2016-07-21 23:09+0200\n" "panel-osd/issues\n"
"POT-Creation-Date: 2016-07-22 02:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,42 +18,71 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: ../src/extension.js:119 #: src/extension.js:119
msgid "" msgid ""
"This is just a multiline test-message to show where the notification will be " "This is just a multiline test-message to show where the notification will be "
"placed and to test expansion (showing details)." "placed and to test expansion (showing details)."
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:39 #: data/org.gnome.shell.extensions.panel-osd.gschema.xml:5
msgid "Horizontal position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:9
msgid "Vertical position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:13
msgid "Allow resetting horizontal position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:17
msgid "Allow resetting vertical position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:21
msgid "Always expand notifications."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:25
msgid "Delay before test notification is shown."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:29
msgid ""
"If the value is true a test-notification is send and then set back to false."
msgstr ""
#: data/panel-osd-settings.ui:39
msgid "Horizontal position [%] from 0% (left) to 100% (right)" msgid "Horizontal position [%] from 0% (left) to 100% (right)"
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:86 #: data/panel-osd-settings.ui:86
msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)"
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:170 #: data/panel-osd-settings.ui:170
msgid "Reset horizontal position to defaults" msgid "Reset horizontal position to defaults"
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:183 #: data/panel-osd-settings.ui:183
msgid "Reset vertical position to defaults" msgid "Reset vertical position to defaults"
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:199 #: data/panel-osd-settings.ui:199
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:257 #: data/panel-osd-settings.ui:257
msgid "Force showing details for all notifications" msgid "Force showing details for all notifications"
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:299 #: data/panel-osd-settings.ui:299
msgid "" msgid ""
"Delay [s] before test-notification is shown. If it is too short, the " "Delay [s] before test-notification is shown. If it is too short, the "
"notification might close immediately after it is shown." "notification might close immediately after it is shown."
msgstr "" msgstr ""
#: ../data/panel-osd-settings.ui:328 #: data/panel-osd-settings.ui:328
msgid "Show test notification" msgid "Show test notification"
msgstr "" msgstr ""

@ -7,8 +7,9 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extension-panel-osd\n" "Project-Id-Version: gnome-shell-extension-panel-osd\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: https://github.com/jenslody/gnome-shell-extension-"
"POT-Creation-Date: 2016-07-21 22:58+0200\n" "panel-osd/issues\n"
"POT-Creation-Date: 2016-07-22 02:19+0200\n"
"PO-Revision-Date: 2016-07-21 16:20+0200\n" "PO-Revision-Date: 2016-07-21 16:20+0200\n"
"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n" "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
"Language-Team: Polish <gnomepl@aviary.pl>\n" "Language-Team: Polish <gnomepl@aviary.pl>\n"
@ -19,7 +20,7 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2);\n" "|| n%100>=20) ? 1 : 2);\n"
#: ../src/extension.js:119 #: src/extension.js:119
msgid "" msgid ""
"This is just a multiline test-message to show where the notification will be " "This is just a multiline test-message to show where the notification will be "
"placed and to test expansion (showing details)." "placed and to test expansion (showing details)."
@ -27,31 +28,62 @@ msgstr ""
"To wielowierszowy komunikat testowy pokazujący, gdzie powiadomienie będzie " "To wielowierszowy komunikat testowy pokazujący, gdzie powiadomienie będzie "
"umieszczane i testujący rozszerzanie (wyświetlanie szczegółów)." "umieszczane i testujący rozszerzanie (wyświetlanie szczegółów)."
#: ../data/panel-osd-settings.ui:39 #: data/org.gnome.shell.extensions.panel-osd.gschema.xml:5
msgid "Horizontal position of notification."
msgstr "Poziome położenie powiadomienia."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:9
msgid "Vertical position of notification."
msgstr "Pionowe położenie powiadomienia."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:13
msgid "Allow resetting horizontal position of notification."
msgstr "Umożliwia przywrócenie poziomego położenia powiadomienia."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:17
msgid "Allow resetting vertical position of notification."
msgstr "Umożliwia przywrócenie pionowego położenia powiadomienia."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:21
msgid "Always expand notifications."
msgstr "Rozszerzanie wszystkich powiadomień."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:25
msgid "Delay before test notification is shown."
msgstr "Opóźnienie przed wyświetleniem powiadomienia testowego."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:29
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”."
#: data/panel-osd-settings.ui:39
msgid "Horizontal position [%] from 0% (left) to 100% (right)" msgid "Horizontal position [%] from 0% (left) to 100% (right)"
msgstr "Poziome położenie (w procentach) od 0% (lewo) do 100% (prawo)" msgstr "Poziome położenie (w procentach) od 0% (lewo) do 100% (prawo)"
#: ../data/panel-osd-settings.ui:86 #: data/panel-osd-settings.ui:86
msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)"
msgstr "Pionowe położenie (w procentach) od 0% (dół) do 100% (góra)" msgstr "Pionowe położenie (w procentach) od 0% (dół) do 100% (góra)"
#: ../data/panel-osd-settings.ui:170 #: data/panel-osd-settings.ui:170
msgid "Reset horizontal position to defaults" msgid "Reset horizontal position to defaults"
msgstr "Przywrócenie poziomego położenia do wartości domyślnych" msgstr "Przywrócenie poziomego położenia do wartości domyślnych"
#: ../data/panel-osd-settings.ui:183 #: data/panel-osd-settings.ui:183
msgid "Reset vertical position to defaults" msgid "Reset vertical position to defaults"
msgstr "Przywrócenie pionowego położenia do wartości domyślnych" msgstr "Przywrócenie pionowego położenia do wartości domyślnych"
#: ../data/panel-osd-settings.ui:199 #: data/panel-osd-settings.ui:199
msgid "Reset" msgid "Reset"
msgstr "Przywróć" msgstr "Przywróć"
#: ../data/panel-osd-settings.ui:257 #: data/panel-osd-settings.ui:257
msgid "Force showing details for all notifications" msgid "Force showing details for all notifications"
msgstr "Wymuszenie wyświetlania szczegółów wszystkich powiadomień" msgstr "Wymuszenie wyświetlania szczegółów wszystkich powiadomień"
#: ../data/panel-osd-settings.ui:299 #: data/panel-osd-settings.ui:299
msgid "" msgid ""
"Delay [s] before test-notification is shown. If it is too short, the " "Delay [s] before test-notification is shown. If it is too short, the "
"notification might close immediately after it is shown." "notification might close immediately after it is shown."
@ -60,34 +92,9 @@ msgstr ""
"jest za krótkie, to powiadomienie może zostać zamknięte natychmiast po " "jest za krótkie, to powiadomienie może zostać zamknięte natychmiast po "
"wyświetleniu." "wyświetleniu."
#: ../data/panel-osd-settings.ui:328 #: data/panel-osd-settings.ui:328
msgid "Show test notification" msgid "Show test notification"
msgstr "Wyświetl powiadomienie testowe" 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;" #~ msgid "border-radius: %dpx %dpx %dpx %dpx;"
#~ msgstr "border-radius: %dpx %dpx %dpx %dpx;" #~ msgstr "border-radius: %dpx %dpx %dpx %dpx;"

@ -1,24 +1,25 @@
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# Fábio Nogueira <fnogueira@gnome.org>, 2015 - 2016. # Fábio Nogueira <fnogueira@gnome.org>, 2015 - 2016, 2016.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: https://github.com/jenslody/gnome-shell-extension-"
"POT-Creation-Date: 2016-07-21 22:58+0200\n" "panel-osd/issues\n"
"PO-Revision-Date: 2016-01-28 16:37-0300\n" "POT-Creation-Date: 2016-07-22 02:19+0200\n"
"PO-Revision-Date: 2016-07-22 02:16+0200\n"
"Last-Translator: Fábio Nogueira <fnogueira@gnome.org>\n" "Last-Translator: Fábio Nogueira <fnogueira@gnome.org>\n"
"Language-Team: Português do Brasil\n" "Language-Team: Português do Brasil\n"
"Language: pt_BR\n" "Language: pt_BR\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.6\n" "X-Generator: Gtranslator 2.91.7\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../src/extension.js:119 #: src/extension.js:119
msgid "" msgid ""
"This is just a multiline test-message to show where the notification will be " "This is just a multiline test-message to show where the notification will be "
"placed and to test expansion (showing details)." "placed and to test expansion (showing details)."
@ -26,31 +27,60 @@ msgstr ""
"Esta é apenas uma mensagem de teste de várias linhas para mostrar onde a " "Esta é apenas uma mensagem de teste de várias linhas para mostrar onde a "
"notificação será posicionada e testar sua expansão (mostrando detalhes)." "notificação será posicionada e testar sua expansão (mostrando detalhes)."
#: ../data/panel-osd-settings.ui:39 #: data/org.gnome.shell.extensions.panel-osd.gschema.xml:5
msgid "Horizontal position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:9
msgid "Vertical position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:13
msgid "Allow resetting horizontal position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:17
msgid "Allow resetting vertical position of notification."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:21
msgid "Always expand notifications."
msgstr ""
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:25
msgid "Delay before test notification is shown."
msgstr "Atraso antes da notificação teste ser mostrada."
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:29
msgid ""
"If the value is true a test-notification is send and then set back to false."
msgstr ""
#: data/panel-osd-settings.ui:39
msgid "Horizontal position [%] from 0% (left) to 100% (right)" msgid "Horizontal position [%] from 0% (left) to 100% (right)"
msgstr "Posição horizontal [%] a partir de 0% (esquerda) a 100% (à direita)" msgstr "Posição horizontal [%] a partir de 0% (esquerda) a 100% (à direita)"
#: ../data/panel-osd-settings.ui:86 #: data/panel-osd-settings.ui:86
msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)"
msgstr "Posição vertical [%] a partir de 0% (base) a 100% (topo)" msgstr "Posição vertical [%] a partir de 0% (base) a 100% (topo)"
#: ../data/panel-osd-settings.ui:170 #: data/panel-osd-settings.ui:170
msgid "Reset horizontal position to defaults" msgid "Reset horizontal position to defaults"
msgstr "Redefinir posição horizontal para os padrões" msgstr "Redefinir posição horizontal para os padrões"
#: ../data/panel-osd-settings.ui:183 #: data/panel-osd-settings.ui:183
msgid "Reset vertical position to defaults" msgid "Reset vertical position to defaults"
msgstr "Redefinir posição vertical para os padrões" msgstr "Redefinir posição vertical para os padrões"
#: ../data/panel-osd-settings.ui:199 #: data/panel-osd-settings.ui:199
msgid "Reset" msgid "Reset"
msgstr "Redefinir" msgstr "Redefinir"
#: ../data/panel-osd-settings.ui:257 #: data/panel-osd-settings.ui:257
msgid "Force showing details for all notifications" msgid "Force showing details for all notifications"
msgstr "Forçar exibição dos detalhes para todas as notificações" msgstr "Forçar exibição dos detalhes para todas as notificações"
#: ../data/panel-osd-settings.ui:299 #: data/panel-osd-settings.ui:299
msgid "" msgid ""
"Delay [s] before test-notification is shown. If it is too short, the " "Delay [s] before test-notification is shown. If it is too short, the "
"notification might close immediately after it is shown." "notification might close immediately after it is shown."
@ -58,6 +88,6 @@ msgstr ""
"Atraso [s] antes da notificação teste ser mostrada. Se muito curto, a " "Atraso [s] antes da notificação teste ser mostrada. Se muito curto, a "
"notificação pode fechar imediatamente depois de ser exibida." "notificação pode fechar imediatamente depois de ser exibida."
#: ../data/panel-osd-settings.ui:328 #: data/panel-osd-settings.ui:328
msgid "Show test notification" msgid "Show test notification"
msgstr "Mostrar notificação de teste" msgstr "Mostrar notificação de teste"

@ -1,54 +0,0 @@
#!/usr/bin/env seed
/*
*
* PO Updater for GNOME Shell Extension Panel OSD
*
* Copyright (C) 2012
* Christian METZLER <neroth@xeked.com>
* 2014 Jens Lody <jens@jenslody.de>
*
*
* This file is part of gnome-shell-extension-panel-osd.
*
* gnome-shell-extension-panel-osd is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* gnome-shell-extension-panel-osd is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gnome-shell-extension-panel-osd. If not, see <http://www.gnu.org/licenses/>.
*
*/
Gio = imports.gi.Gio;
print("Generate gnome-shell-extension-panel-osd.pot");
var xgettext = Seed.spawn("xgettext -o gnome-shell-extension-panel-osd.pot --from-code=utf-8 --keyword=_ --keyword=translatable -f POTFILES.in");
if (xgettext.stderr)
print(xgettext.stderr);
else {
var file = Gio.file_new_for_path(".");
var enumerator = file.enumerate_children("standard::name,standard::size");
var linguas = "";
var n = "";
var i = 0;
while (child = enumerator.next_file())
if (child.get_name().search(/.po$/) != -1) {
print("Generate " + child.get_name());
linguas += n + (child.get_name().split(".po")[0]);
Seed.spawn("msgmerge -U " + child.get_name() + " gnome-shell-extension-panel-osd.pot");
n = "\n";
i++;
}
print("Write LINGUAS file");
Gio.simple_write("LINGUAS", linguas);
print("Successfully generated " + i + " entry");
}

@ -7,8 +7,9 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gnome-shell-extension-panel-osd VERSION\n" "Project-Id-Version: gnome-shell-extension-panel-osd VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: https://github.com/jenslody/gnome-shell-extension-"
"POT-Creation-Date: 2016-07-21 22:58+0200\n" "panel-osd/issues\n"
"POT-Creation-Date: 2016-07-22 02:19+0200\n"
"PO-Revision-Date: 2015-09-20 18:29+0800\n" "PO-Revision-Date: 2015-09-20 18:29+0800\n"
"Last-Translator: 绿色圣光 <lishaohui.qd@163.com>\n" "Last-Translator: 绿色圣光 <lishaohui.qd@163.com>\n"
"Language-Team: Chinese (Simplified) <>\n" "Language-Team: Chinese (Simplified) <>\n"
@ -19,7 +20,7 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Gtranslator 2.91.7\n" "X-Generator: Gtranslator 2.91.7\n"
#: ../src/extension.js:119 #: src/extension.js:119
msgid "" msgid ""
"This is just a multiline test-message to show where the notification will be " "This is just a multiline test-message to show where the notification will be "
"placed and to test expansion (showing details)." "placed and to test expansion (showing details)."
@ -27,37 +28,72 @@ msgstr ""
"这仅仅是一个多行的测试消息,用来展示通知将被显示在什么地方,同时测试一下扩展" "这仅仅是一个多行的测试消息,用来展示通知将被显示在什么地方,同时测试一下扩展"
"功能(显示细节)。" "功能(显示细节)。"
#: ../data/panel-osd-settings.ui:39 #: data/org.gnome.shell.extensions.panel-osd.gschema.xml:5
#, fuzzy
msgid "Horizontal position of notification."
msgstr "重置水平位置到默认值"
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:9
#, fuzzy
msgid "Vertical position of notification."
msgstr "重置垂直位置到默认值"
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:13
#, fuzzy
msgid "Allow resetting horizontal position of notification."
msgstr "重置水平位置到默认值"
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:17
#, fuzzy
msgid "Allow resetting vertical position of notification."
msgstr "重置垂直位置到默认值"
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:21
#, fuzzy
msgid "Always expand notifications."
msgstr "显示测试通知"
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:25
#, fuzzy
msgid "Delay before test notification is shown."
msgstr "显示测试通知"
#: data/org.gnome.shell.extensions.panel-osd.gschema.xml:29
msgid ""
"If the value is true a test-notification is send and then set back to false."
msgstr ""
#: data/panel-osd-settings.ui:39
msgid "Horizontal position [%] from 0% (left) to 100% (right)" msgid "Horizontal position [%] from 0% (left) to 100% (right)"
msgstr "水平位置百分比,从 0% (左侧)到 100% (右侧)" msgstr "水平位置百分比,从 0% (左侧)到 100% (右侧)"
#: ../data/panel-osd-settings.ui:86 #: data/panel-osd-settings.ui:86
msgid "Vertical position [%] from 0% (bottom) to 100% (top)" msgid "Vertical position [%] from 0% (bottom) to 100% (top)"
msgstr "垂直位置百分比,从 0% (底端)到 100% (顶端)" msgstr "垂直位置百分比,从 0% (底端)到 100% (顶端)"
#: ../data/panel-osd-settings.ui:170 #: data/panel-osd-settings.ui:170
msgid "Reset horizontal position to defaults" msgid "Reset horizontal position to defaults"
msgstr "重置水平位置到默认值" msgstr "重置水平位置到默认值"
#: ../data/panel-osd-settings.ui:183 #: data/panel-osd-settings.ui:183
msgid "Reset vertical position to defaults" msgid "Reset vertical position to defaults"
msgstr "重置垂直位置到默认值" msgstr "重置垂直位置到默认值"
#: ../data/panel-osd-settings.ui:199 #: data/panel-osd-settings.ui:199
msgid "Reset" msgid "Reset"
msgstr "重置" msgstr "重置"
#: ../data/panel-osd-settings.ui:257 #: data/panel-osd-settings.ui:257
msgid "Force showing details for all notifications" msgid "Force showing details for all notifications"
msgstr "强制所有通知显示细节" msgstr "强制所有通知显示细节"
#: ../data/panel-osd-settings.ui:299 #: data/panel-osd-settings.ui:299
msgid "" msgid ""
"Delay [s] before test-notification is shown. If it is too short, the " "Delay [s] before test-notification is shown. If it is too short, the "
"notification might close immediately after it is shown." "notification might close immediately after it is shown."
msgstr "" msgstr ""
"测试通知显示前延迟的秒数。如果太短,通知可能会在显示出来后,被立即关掉。" "测试通知显示前延迟的秒数。如果太短,通知可能会在显示出来后,被立即关掉。"
#: ../data/panel-osd-settings.ui:328 #: data/panel-osd-settings.ui:328
msgid "Show test notification" msgid "Show test notification"
msgstr "显示测试通知" msgstr "显示测试通知"

Loading…
Cancel
Save