Skip to content

Commit

Permalink
update locales
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <[email protected]>
  • Loading branch information
Kwpolska committed Jun 29, 2015
1 parent 75a8c3d commit a446084
Show file tree
Hide file tree
Showing 13 changed files with 250 additions and 999 deletions.
2 changes: 1 addition & 1 deletion .pypt/config
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GITREPO="$PROJECTLC"
# gettext Use GNU gettext (gettext module).
# pyqt4 Use the Qt locale tools (stock Qt + PyQt4).
# pyside Use the Qt locale tools (stock Qt + PySide).
LOCALETYPE="gettext"
LOCALETYPE="gettext-tx"

# Python versions supported.
PYTHON2=0
Expand Down
19 changes: 16 additions & 3 deletions .pypt/localegen
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
. .pypt/config

case "$LOCALETYPE" in
'gettext')
'gettext' | 'gettext-tx')
version=$(cat setup.py | grep 'version=' | sed -e 's/.*version=.//g' -e 's/.,$//g')
date=$(date '+%Y-%m-%d')
datel=$(date '+%Y-%m-%d %H:%M%z')
Expand Down Expand Up @@ -69,6 +69,11 @@ case "$LOCALETYPE" in
sed "s/#version/$version/g" messages.pot -i
sed "s/#datel/$datel/g" messages.pot -i

if [[ "$LOCALETYPE" == "gettext-tx" ]]; then
tx push -s
tx pull
fi

for i in ./locale/*; do
language=$(basename $i)

Expand All @@ -89,8 +94,12 @@ case "$LOCALETYPE" in
msgfmt -o $podir/$PROJECTLC.mo $popath
done
;;
'pyqt4')
'pyqt4' | 'pyqt4-tx')
pylupdate4 -verbose $PROJECTLC.pro
if [[ "$LOCALETYPE" == "pyqt4-tx" ]]; then
tx push -s
tx pull
fi
for i in ./locale/*.ts; do
# pylupdate4 is dumb and mangles encodings
sed -i -e 's|filename="|filename="../|g' -e \
Expand All @@ -103,8 +112,12 @@ case "$LOCALETYPE" in
pyrcc4 -py2 $PROJECTLC.qrc -o $PROJECTLC/ui/resources2.py
pyrcc4 -py3 $PROJECTLC.qrc -o $PROJECTLC/ui/resources3.py
;;
'pyside')
'pyside' | 'pyside-tx')
pyside-lupdate -verbose $PROJECTLC.pro
if [[ "$LOCALETYPE" == "pyside-tx" ]]; then
tx push -s
tx pull
fi
for i in ./locale/*.ts; do
# pyside may be dumb, too
sed -i -e 's|filename="|filename="../|g' -e \
Expand Down
14 changes: 6 additions & 8 deletions locale/ar/LC_MESSAGES/pkgbuilder.po
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# PKGBUILDer pot file.
# Copyright © 2015, Chris Warrick.
# This file is distributed under the same license as the PKGBUILDer package.
#
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: 3.5.1\n"
"Project-Id-Version: PKGBUILDer\n"
"Report-Msgid-Bugs-To: Chris Warrick <[email protected]>\n"
"POT-Creation-Date: 2015-06-29 10:25+0200\n"
"PO-Revision-Date: 2014-12-26 19:51+0000\n"
"PO-Revision-Date: 2015-06-29 08:25+0000\n"
"Last-Translator: Chris Warrick <[email protected]>\n"
"Language-Team: Arabic (http://www.transifex.com/projects/p/pkgbuilder/"
"language/ar/)\n"
"Language: ar\n"
"Language-Team: Arabic (http://www.transifex.com/projects/p/pkgbuilder/language/ar/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. TRANSLATORS: translate the whole sentence.
#. Alternatively, use translation instead of locale.
Expand Down
36 changes: 8 additions & 28 deletions locale/de/LC_MESSAGES/pkgbuilder.po
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# PKGBUILDer pot file.
# Copyright © 2015, Chris Warrick.
# This file is distributed under the same license as the PKGBUILDer package.
#
#
# Translators:
# Max Mustermann <[email protected]>, 2013
msgid ""
msgstr ""
"Project-Id-Version: 3.5.1\n"
"Project-Id-Version: PKGBUILDer\n"
"Report-Msgid-Bugs-To: Chris Warrick <[email protected]>\n"
"POT-Creation-Date: 2015-06-29 10:25+0200\n"
"PO-Revision-Date: 2014-12-26 19:51+0000\n"
"PO-Revision-Date: 2015-06-29 08:25+0000\n"
"Last-Translator: Chris Warrick <[email protected]>\n"
"Language-Team: German (http://www.transifex.com/projects/p/pkgbuilder/"
"language/de/)\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/pkgbuilder/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. TRANSLATORS: translate the whole sentence.
Expand Down Expand Up @@ -82,9 +81,8 @@ msgid "options"
msgstr "Optionen"

#: pkgbuilder/__main__.py:74
#, fuzzy
msgid "clean up work files before and after build"
msgstr "Nach der Erstellung aufräumen"
msgstr ""

#: pkgbuilder/__main__.py:78
msgid "don't use colors in output"
Expand Down Expand Up @@ -239,9 +237,9 @@ msgid ":: Retrieving packages from aur..."
msgstr "::Erhalte Pakete aus den AUR..."

#: pkgbuilder/build.py:422
#, fuzzy, python-brace-format
#, python-brace-format
msgid "cloning {0}"
msgstr "Bilde{0}..."
msgstr ""

#: pkgbuilder/build.py:425
msgid "Successfully fetched: "
Expand Down Expand Up @@ -547,21 +545,3 @@ msgstr "Optionale Befehle"
#: localeprovider.py:5
msgid "show this help message and exit"
msgstr ""

#~ msgid "Extracting AUR packages..."
#~ msgstr "Extrahiere AUR Pakete..."

#~ msgid "Downloading the tarball..."
#~ msgstr "Lade tarball..."

#~ msgid "0 bytes downloaded"
#~ msgstr "0 bytes Runtergeladen "

#~ msgid "Performing a dependency check..."
#~ msgstr "Überprüfe auf abhängigkeiten..."

#~ msgid "Hit Enter/Return to continue. "
#~ msgstr "Drücke Enter um fortzufahren."

#~ msgid "Installing missing AUR dependencies..."
#~ msgstr "Installiere fehlende AUR abhängigkeiten..."
Loading

0 comments on commit a446084

Please sign in to comment.