mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
read i18n files from POTFILES and update the pot before each build
This commit is contained in:
parent
97b6db89d1
commit
2de753a946
4 changed files with 20 additions and 65 deletions
15
debian/rules
vendored
15
debian/rules
vendored
|
@ -5,6 +5,7 @@
|
|||
# export DH_VERBOSE=1
|
||||
|
||||
PACKAGE=screen-profiles
|
||||
TEXTDOMAIN=screen-profiles
|
||||
VER=`head -n 1 debian/changelog | sed 's/^.*(//' | sed 's/).*//' | sed 's/-.*//'`
|
||||
|
||||
get-orig-source:
|
||||
|
@ -12,10 +13,14 @@ get-orig-source:
|
|||
-[ -d ../${PACKAGE} ] && mv ../${PACKAGE} ../${PACKAGE}-${VER}
|
||||
tar -C ../ --exclude .bzr --exclude debian -zcvf ../${PACKAGE}_${VER}.orig.tar.gz ${PACKAGE}-${VER}
|
||||
|
||||
get-po:
|
||||
xgettext -o po/screen-profiles.pot -L Python -d screen-profiles screen-profiles
|
||||
xgettext -j -o po/screen-profiles.pot -L Shell -d screen-profiles select-screen-profile screen-profiles-export bin/menu
|
||||
|
||||
update-pot:
|
||||
rm -f po/${TEXTDOMAIN}.pot
|
||||
grep -v "#" po/POTFILES.sh | while read po ; do \
|
||||
xgettext -o po/${TEXTDOMAIN}.pot -L Shell $${po} ; \
|
||||
done
|
||||
grep -v "#" po/POTFILES.python | while read po ; do \
|
||||
xgettext -o po/${TEXTDOMAIN}.pot -L Python $${po} ; \
|
||||
done
|
||||
|
||||
prebuild:
|
||||
|
||||
|
@ -27,7 +32,7 @@ clean:
|
|||
dh_clean
|
||||
./profiles/generate --clean
|
||||
|
||||
install: build
|
||||
install: build update-pot
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
|
|
3
po/POTFILES.python
Normal file
3
po/POTFILES.python
Normal file
|
@ -0,0 +1,3 @@
|
|||
# List of source files containing translatable Python strings.
|
||||
# Please keep this file sorted alphabetically.
|
||||
screen-profiles
|
5
po/POTFILES.sh
Normal file
5
po/POTFILES.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
# List of source files containing translatable sh strings.
|
||||
# Please keep this file sorted alphabetically.
|
||||
bin/menu
|
||||
select-screen-profile
|
||||
screen-profiles-export
|
|
@ -3,12 +3,13 @@
|
|||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#: screen-profiles:296
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-03-31 06:04-0500\n"
|
||||
"POT-Creation-Date: 2009-03-31 18:58+0300\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"
|
||||
|
@ -149,62 +150,3 @@ msgstr ""
|
|||
#: screen-profiles:463
|
||||
msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:48
|
||||
msgid "Error:"
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:48
|
||||
msgid " file exists, but is not a symlink"
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:81
|
||||
msgid "Select a screen profile: "
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:100 screen-profiles-export:56
|
||||
#: screen-profiles-export:180
|
||||
msgid "ERROR: Invalid selection"
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:107 select-screen-profile:109
|
||||
#: screen-profiles-export:61 screen-profiles-export:63
|
||||
msgid "Choose"
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:135
|
||||
msgid ""
|
||||
"If you are using the default set of keybindings, press\\n<F5><enter> to "
|
||||
"activate these changes.\\n\\nOtherwise, exit this screen session and start a "
|
||||
"new one."
|
||||
msgstr ""
|
||||
|
||||
#: select-screen-profile:137
|
||||
msgid "Run \"screen\" to activate"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles-export:194
|
||||
msgid "Select a distro: "
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles-export:198
|
||||
msgid "Select a color: "
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles-export:231
|
||||
msgid "Profile"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles-export:232
|
||||
msgid "Archive"
|
||||
msgstr ""
|
||||
|
||||
#: screen-profiles-export:233
|
||||
msgid ""
|
||||
"Extract this archive in your home directory on the target system, and run "
|
||||
"'screen'."
|
||||
msgstr ""
|
||||
|
||||
#: bin/menu:24
|
||||
msgid "Menu:<F9>"
|
||||
msgstr ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue