This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37e88be
commit 2cf0420
Showing
4 changed files
with
143 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ coverage.xml | |
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# This file is put in the public domain. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: icon-requests\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-01-30 23:31+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: IconRequests/application.py:21 data/icon-requests.desktop.in:3 | ||
msgid "Icon Requests" | ||
msgstr "" | ||
|
||
#: IconRequests/application.py:49 | ||
msgid "Night Mode" | ||
msgstr "" | ||
|
||
#: IconRequests/application.py:50 | ||
msgid "About" | ||
msgstr "" | ||
|
||
#: IconRequests/application.py:51 | ||
msgid "Quit" | ||
msgstr "" | ||
|
||
#: IconRequests/widgets/application_row.py:68 | ||
msgid "Report" | ||
msgstr "" | ||
|
||
#: IconRequests/widgets/application_row.py:81 | ||
msgid "Fix" | ||
msgstr "" | ||
|
||
#: IconRequests/widgets/application_row.py:125 | ||
msgid "Please check your connexion" | ||
msgstr "" | ||
|
||
#: IconRequests/widgets/application_row.py:147 | ||
msgid "Theme not supported" | ||
msgstr "" | ||
|
||
#: data/icon-requests.desktop.in:4 | ||
msgid "Missing Icon Requests" | ||
msgstr "" | ||
|
||
#: data/icon-requests.desktop.in:5 | ||
msgid "Report Missing icons to your current theme" | ||
msgstr "" | ||
|
||
#: data/icon-requests.desktop.in:10 | ||
msgid "Gnome;GTK;Verification;" | ||
msgstr "" | ||
|
||
#: data/icon-requests.desktop.in:11 | ||
msgid "icon-requests" | ||
msgstr "" | ||
|
||
#: data/icon-requests.desktop.in:20 | ||
msgid "About Icon Requests" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/sh | ||
# A modified code from the Terminix project<https://github.com/gnunn1/terminix/>. | ||
DOMAIN=icon-requests | ||
BASEDIR=$(dirname $0) | ||
OUTPUT_FILE=${BASEDIR}/po/${DOMAIN}.pot | ||
|
||
echo "Extracting translatable strings... " | ||
|
||
find ${BASEDIR}/ -name '*.py' | xgettext \ | ||
--output $OUTPUT_FILE \ | ||
--files-from=- \ | ||
--directory=$BASEDIR \ | ||
--language=Python \ | ||
--keyword=C_:1c,2 \ | ||
--from-code=utf-8 | ||
|
||
find ${BASEDIR}/ -name '*.ui' | xgettext \ | ||
--output $OUTPUT_FILE \ | ||
--join-existing \ | ||
--files-from=- \ | ||
--directory=$BASEDIR \ | ||
--language=ui \ | ||
--foreign-user \ | ||
--keyword=C_:1c,2 \ | ||
--from-code=utf-8 | ||
|
||
xgettext \ | ||
--join-existing \ | ||
--output $OUTPUT_FILE \ | ||
--default-domain=$DOMAIN \ | ||
--package-name=$DOMAIN \ | ||
--directory=$BASEDIR \ | ||
--foreign-user \ | ||
--language=Desktop \ | ||
${BASEDIR}/data/icon-requests.desktop.in | ||
|
||
|
||
xgettext \ | ||
--join-existing \ | ||
--output $OUTPUT_FILE \ | ||
--default-domain=$DOMAIN \ | ||
--package-name=$DOMAIN \ | ||
--directory=$BASEDIR \ | ||
--foreign-user \ | ||
--language=appdata \ | ||
${BASEDIR}/data/icon-requests.appdata.xml.in | ||
|
||
# Merge the messages with existing po files | ||
echo "Merging with existing translations... " | ||
for file in ${BASEDIR}/po/*.po | ||
do | ||
echo -n $file | ||
msgmerge --update $file $OUTPUT_FILE | ||
done |