Merge from Adi Roiban

270. By Adi Roiban 3 hours ago
    generate .mo files
269. By Adi Roiban 4 hours ago
    read i18n files from POTFILES and update the pot before each build

debian/install, debian/rules, po/POTFILES.python, po/POTFILES.sh,
po/es.po, po/fr.po, po/screen-profiles.pot: LP: #347521, i18n support
in the screen-profiles build and install
This commit is contained in:
Dustin Kirkland 2009-03-31 15:48:09 -05:00
commit c5ef8b5a63
8 changed files with 329 additions and 89 deletions

9
debian/changelog vendored
View file

@ -1,5 +1,6 @@
screen-profiles (1.42) unreleased; urgency=low
[ Dustin Kirkland ]
* added logo for Arch linux
* bin/cpu-freq: fix cpu freq for powerpc hardware, LP: #352286;
use 2 decimals for GHz (bring this down to 1 decimal when cpus hit 10GHz)
@ -7,7 +8,13 @@ screen-profiles (1.42) unreleased; urgency=low
that should be cleaned up before Jaunty GA, LP: #352291
* po/*: screen-profiles-export translation template
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 31 Mar 2009 06:05:06 -0500
[ Adi Roiban ]
* debian/install, debian/rules, po/POTFILES.python, po/POTFILES.sh,
po/es.po, po/fr.po, po/screen-profiles.pot: LP: #347521, i18n support
in the screen-profiles build and install
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 31 Mar 2009 15:44:17 -0500
screen-profiles (1.41-0ubuntu1) jaunty; urgency=low

1
debian/install vendored
View file

@ -1,4 +1,5 @@
bin/* var/lib/screen-profiles
po/locale/* usr/share/locale
profiles/common usr/share/screen-profiles/profiles
profiles/plain usr/share/screen-profiles/profiles
profiles/ubuntu-black usr/share/screen-profiles/profiles

26
debian/rules vendored
View file

@ -12,10 +12,24 @@ 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
install-po: update-pot
for po in po/*.po ; do \
lang=$${po#po/}; lang=$${lang%.po}; \
mkdir -p po/locale/$${lang}/LC_MESSAGES/; \
msgfmt $${po} -o po/locale/$${lang}/LC_MESSAGES/${PACKAGE}.mo ; \
done
update-pot:
rm -f po/${PACKAGE}.pot
grep -v "^#" po/POTFILES.sh | while read po ; do \
xgettext -o po/${PACKAGE}.pot -L Shell $${po} ; \
done
grep -v "^#" po/POTFILES.python | while read po ; do \
xgettext -o po/${PACKAGE}.pot -L Python $${po} ; \
done
for po in po/*.po ; do \
msgmerge $${po} po/${PACKAGE}.pot -o $${po} ; \
done
prebuild:
@ -26,8 +40,12 @@ build:
clean:
dh_clean
./profiles/generate --clean
for po in po/*.po ; do \
lang=$${po#po/}; lang=$${lang%.po}; \
rm -f po/locale/$${lang}/LC_MESSAGES/${PACKAGE}.mo ; \
done
install: build
install: build install-po
dh_testdir
dh_testroot
dh_clean -k

3
po/POTFILES.python Normal file
View 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
View 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

157
po/es.po
View file

@ -3,12 +3,13 @@
# This file is distributed under the same license as the GNU Screen Profiles package.
# Nicolas Valcarcel <nvalcarcel@ubuntu.com>, 2008.
#
#: screen-profiles:296
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-12-17 23:42+0100\n"
"POT-Creation-Date: 2009-03-31 15:39-0500\n"
"PO-Revision-Date: 2008-12-22 01:01-0500\n"
"Last-Translator: Nicolas Valcarcel <nvalcarcel@ubuntu.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -16,18 +17,148 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: select-screen-profile:9 select-screen-profile:16
msgid "Error:"
msgstr "Error:"
#: screen-profiles:71
msgid "Remove screen by default at login"
msgstr ""
#: select-screen-profile:9 select-screen-profile:16
msgid "exists, but is not a symlink"
msgstr "existe, pero no es un symlink"
#: screen-profiles:73
msgid "Install screen by default at login"
msgstr ""
#: select-screen-profile:30
msgid "recommended"
msgstr "recomendado"
#: screen-profiles:77
msgid "Help"
msgstr ""
#: select-screen-profile:41 select-screen-profile:43
msgid "Choose"
msgstr "Eleccion"
#: screen-profiles:78
msgid "Change screen profile"
msgstr ""
#: screen-profiles:79
msgid "Toggle status notifications"
msgstr ""
#: screen-profiles:80
msgid "Change keybinding set"
msgstr ""
#: screen-profiles:81
msgid "Change escape sequence"
msgstr ""
#: screen-profiles:82
msgid "Create new window(s)"
msgstr ""
#: screen-profiles:83
msgid "Manage default windows"
msgstr ""
#: screen-profiles:85
msgid "Exit"
msgstr ""
#: screen-profiles:87 screen-profiles:462
msgid " Screen Profiles Configuration Menu"
msgstr ""
#: screen-profiles:98
msgid "Okay"
msgstr ""
#: screen-profiles:98 screen-profiles:134 screen-profiles:150
#: screen-profiles:185 screen-profiles:303 screen-profiles:345
#: screen-profiles:423
msgid "Cancel"
msgstr ""
#: screen-profiles:116 screen-profiles:143 screen-profiles:157
#: screen-profiles:316 screen-profiles:370 screen-profiles:378
#: screen-profiles:451
msgid "Menu"
msgstr ""
#: screen-profiles:117
msgid "Screen Profiles Help"
msgstr ""
#: screen-profiles:134 screen-profiles:150 screen-profiles:185
#: screen-profiles:303 screen-profiles:345 screen-profiles:423
msgid "Apply"
msgstr ""
#: screen-profiles:136
msgid "Which profile would you like to use?"
msgstr ""
#: screen-profiles:142 screen-profiles:156 screen-profiles:315
#: screen-profiles:377 screen-profiles:449
msgid "Message"
msgstr ""
#: screen-profiles:151
msgid "Which set of keybindings would you like to use?"
msgstr ""
#: screen-profiles:165
msgid "Title: "
msgstr ""
#: screen-profiles:167
msgid "Command: "
msgstr ""
#: screen-profiles:169
msgid "Presets: "
msgstr ""
#: screen-profiles:183
msgid "Add to default windows"
msgstr ""
#: screen-profiles:187
msgid "Create new window(s):"
msgstr ""
#: screen-profiles:304
msgid "Toggle status notifications:"
msgstr ""
#: screen-profiles:337
msgid "Windows:"
msgstr ""
#: screen-profiles:347
msgid "Select window(s) to create by default:"
msgstr ""
#: screen-profiles:367
msgid "Screen will be launched automatically next time you login."
msgstr ""
#: screen-profiles:375
msgid "Screen will not be used next time you login."
msgstr ""
#: screen-profiles:422
msgid "Escape key: ctrl-"
msgstr ""
#: screen-profiles:425
msgid "Change escape sequence:"
msgstr ""
#: screen-profiles:463
msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"
msgstr ""
#~ msgid "Error:"
#~ msgstr "Error:"
#~ msgid "exists, but is not a symlink"
#~ msgstr "existe, pero no es un symlink"
#~ msgid "recommended"
#~ msgstr "recomendado"
#~ msgid "Choose"
#~ msgstr "Eleccion"

157
po/fr.po
View file

@ -3,12 +3,13 @@
# This file is distributed under the same license as the GNU Screen Profiles package.
# Nicolas Barcet <nicolas.barcet@ubuntu.com>, 2008.
#
#: screen-profiles:296
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-12-17 23:42+0100\n"
"POT-Creation-Date: 2009-03-31 15:39-0500\n"
"PO-Revision-Date: 2008-12-17 23:42+0100\n"
"Last-Translator: Nicolas Barcet <nicolas.barcet@ubuntu.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -16,18 +17,148 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: select-screen-profile:9 select-screen-profile:16
msgid "Error:"
msgstr "Erreur :"
#: screen-profiles:71
msgid "Remove screen by default at login"
msgstr ""
#: select-screen-profile:9 select-screen-profile:16
msgid "exists, but is not a symlink"
msgstr "existe, mais n'est pas un lien symbolique"
#: screen-profiles:73
msgid "Install screen by default at login"
msgstr ""
#: select-screen-profile:30
msgid "recommended"
msgstr "recommandé"
#: screen-profiles:77
msgid "Help"
msgstr ""
#: select-screen-profile:41 select-screen-profile:43
msgid "Choose"
msgstr "Choisir"
#: screen-profiles:78
msgid "Change screen profile"
msgstr ""
#: screen-profiles:79
msgid "Toggle status notifications"
msgstr ""
#: screen-profiles:80
msgid "Change keybinding set"
msgstr ""
#: screen-profiles:81
msgid "Change escape sequence"
msgstr ""
#: screen-profiles:82
msgid "Create new window(s)"
msgstr ""
#: screen-profiles:83
msgid "Manage default windows"
msgstr ""
#: screen-profiles:85
msgid "Exit"
msgstr ""
#: screen-profiles:87 screen-profiles:462
msgid " Screen Profiles Configuration Menu"
msgstr ""
#: screen-profiles:98
msgid "Okay"
msgstr ""
#: screen-profiles:98 screen-profiles:134 screen-profiles:150
#: screen-profiles:185 screen-profiles:303 screen-profiles:345
#: screen-profiles:423
msgid "Cancel"
msgstr ""
#: screen-profiles:116 screen-profiles:143 screen-profiles:157
#: screen-profiles:316 screen-profiles:370 screen-profiles:378
#: screen-profiles:451
msgid "Menu"
msgstr ""
#: screen-profiles:117
msgid "Screen Profiles Help"
msgstr ""
#: screen-profiles:134 screen-profiles:150 screen-profiles:185
#: screen-profiles:303 screen-profiles:345 screen-profiles:423
msgid "Apply"
msgstr ""
#: screen-profiles:136
msgid "Which profile would you like to use?"
msgstr ""
#: screen-profiles:142 screen-profiles:156 screen-profiles:315
#: screen-profiles:377 screen-profiles:449
msgid "Message"
msgstr ""
#: screen-profiles:151
msgid "Which set of keybindings would you like to use?"
msgstr ""
#: screen-profiles:165
msgid "Title: "
msgstr ""
#: screen-profiles:167
msgid "Command: "
msgstr ""
#: screen-profiles:169
msgid "Presets: "
msgstr ""
#: screen-profiles:183
msgid "Add to default windows"
msgstr ""
#: screen-profiles:187
msgid "Create new window(s):"
msgstr ""
#: screen-profiles:304
msgid "Toggle status notifications:"
msgstr ""
#: screen-profiles:337
msgid "Windows:"
msgstr ""
#: screen-profiles:347
msgid "Select window(s) to create by default:"
msgstr ""
#: screen-profiles:367
msgid "Screen will be launched automatically next time you login."
msgstr ""
#: screen-profiles:375
msgid "Screen will not be used next time you login."
msgstr ""
#: screen-profiles:422
msgid "Escape key: ctrl-"
msgstr ""
#: screen-profiles:425
msgid "Change escape sequence:"
msgstr ""
#: screen-profiles:463
msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"
msgstr ""
#~ msgid "Error:"
#~ msgstr "Erreur :"
#~ msgid "exists, but is not a symlink"
#~ msgstr "existe, mais n'est pas un lien symbolique"
#~ msgid "recommended"
#~ msgstr "recommandé"
#~ msgid "Choose"
#~ msgstr "Choisir"

View file

@ -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:32-0500\n"
"POT-Creation-Date: 2009-03-31 15:39-0500\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,60 +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 the archive in your home directory on the target system."
msgstr ""
#: bin/menu:24
msgid "Menu:<F9>"
msgstr ""