Get rid of (mostly unmaintained) intltools. Make gsettings schema translatablemaster
parent
e121669e26
commit
5897019e19
@ -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> |
@ -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/prefs.js |
||||
../data/panel-osd-settings.ui |
||||
src/extension.js |
||||
src/prefs.js |
||||
data/org.gnome.shell.extensions.panel-osd.gschema.xml |
||||
data/panel-osd-settings.ui |
||||
|
@ -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"); |
||||
} |
Loading…
Reference in new issue