Merge lp:~adiroiban/byobu/update-pot into lp:byobu

Proposed by Adi Roiban
Status: Merged
Merge reported by: Dustin Kirkland 
Merged at revision: not available
Proposed branch: lp:~adiroiban/byobu/update-pot
Merge into: lp:byobu
Diff against target: None lines
To merge this branch: bzr merge lp:~adiroiban/byobu/update-pot
Reviewer Review Type Date Requested Status
Dustin Kirkland  Approve
Review via email: mp+5072@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Adi Roiban (adiroiban) wrote :

I have updated the rules file to update the pot at each build.

This should be ok for Ubuntu.

Because we don't have a proper build system I don't know where to copy the LC_MESSAGES files.
I can add a PREFIX variable in the build.

What do you think?

lp:~adiroiban/byobu/update-pot updated
270. By Adi Roiban

generate .mo files

Revision history for this message
Adi Roiban (adiroiban) wrote :

In rev 270 I'm also generating .mo files.

This patch is useful for upstream projects.

In Ubuntu the generated .mo files will be striped by the lang-pack script.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the branch.

I made a couple of very minor tweaks (added some indentation, and grep -v "^#", and added a bit to clean out .mo files in the clean target).

Since I don't know anything about translations, and this stuff appears to be broken already, I'm just committing this as is. Please test the next packages I build and see if this solves any problems...

:-Dustin

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/rules'
--- debian/rules 2009-03-28 17:14:44 +0000
+++ debian/rules 2009-03-31 16:04:08 +0000
@@ -5,6 +5,7 @@
5# export DH_VERBOSE=15# export DH_VERBOSE=1
66
7PACKAGE=screen-profiles7PACKAGE=screen-profiles
8TEXTDOMAIN=screen-profiles
8VER=`head -n 1 debian/changelog | sed 's/^.*(//' | sed 's/).*//' | sed 's/-.*//'`9VER=`head -n 1 debian/changelog | sed 's/^.*(//' | sed 's/).*//' | sed 's/-.*//'`
910
10get-orig-source:11get-orig-source:
@@ -12,10 +13,14 @@
12 -[ -d ../${PACKAGE} ] && mv ../${PACKAGE} ../${PACKAGE}-${VER}13 -[ -d ../${PACKAGE} ] && mv ../${PACKAGE} ../${PACKAGE}-${VER}
13 tar -C ../ --exclude .bzr --exclude debian -zcvf ../${PACKAGE}_${VER}.orig.tar.gz ${PACKAGE}-${VER}14 tar -C ../ --exclude .bzr --exclude debian -zcvf ../${PACKAGE}_${VER}.orig.tar.gz ${PACKAGE}-${VER}
1415
15get-po:16update-pot:
16 xgettext -o po/screen-profiles.pot -L Python -d screen-profiles screen-profiles17 rm -f po/${TEXTDOMAIN}.pot
17 xgettext -j -o po/screen-profiles.pot -L Shell -d screen-profiles select-screen-profile screen-profiles-export bin/menu18 grep -v "#" po/POTFILES.sh | while read po ; do \
1819 xgettext -o po/${TEXTDOMAIN}.pot -L Shell $${po} ; \
20 done
21 grep -v "#" po/POTFILES.python | while read po ; do \
22 xgettext -o po/${TEXTDOMAIN}.pot -L Python $${po} ; \
23 done
1924
20prebuild:25prebuild:
2126
@@ -27,7 +32,7 @@
27 dh_clean32 dh_clean
28 ./profiles/generate --clean33 ./profiles/generate --clean
2934
30install: build35install: build update-pot
31 dh_testdir36 dh_testdir
32 dh_testroot37 dh_testroot
33 dh_clean -k38 dh_clean -k
3439
=== added file 'po/POTFILES.python'
--- po/POTFILES.python 1970-01-01 00:00:00 +0000
+++ po/POTFILES.python 2009-03-31 16:04:08 +0000
@@ -0,0 +1,3 @@
1# List of source files containing translatable Python strings.
2# Please keep this file sorted alphabetically.
3screen-profiles
04
=== added file 'po/POTFILES.sh'
--- po/POTFILES.sh 1970-01-01 00:00:00 +0000
+++ po/POTFILES.sh 2009-03-31 16:04:08 +0000
@@ -0,0 +1,5 @@
1# List of source files containing translatable sh strings.
2# Please keep this file sorted alphabetically.
3bin/menu
4select-screen-profile
5screen-profiles-export
06
=== modified file 'po/screen-profiles.pot'
--- po/screen-profiles.pot 2009-03-31 11:04:58 +0000
+++ po/screen-profiles.pot 2009-03-31 16:04:08 +0000
@@ -3,12 +3,13 @@
3# This file is distributed under the same license as the PACKAGE package.3# This file is distributed under the same license as the PACKAGE package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5#5#
6#: screen-profiles:296
6#, fuzzy7#, fuzzy
7msgid ""8msgid ""
8msgstr ""9msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n"10"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: \n"11"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2009-03-31 06:04-0500\n"12"POT-Creation-Date: 2009-03-31 18:58+0300\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"14"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"15"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -149,62 +150,3 @@
149#: screen-profiles:463150#: screen-profiles:463
150msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"151msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"
151msgstr ""152msgstr ""
152
153#: select-screen-profile:48
154msgid "Error:"
155msgstr ""
156
157#: select-screen-profile:48
158msgid " file exists, but is not a symlink"
159msgstr ""
160
161#: select-screen-profile:81
162msgid "Select a screen profile: "
163msgstr ""
164
165#: select-screen-profile:100 screen-profiles-export:56
166#: screen-profiles-export:180
167msgid "ERROR: Invalid selection"
168msgstr ""
169
170#: select-screen-profile:107 select-screen-profile:109
171#: screen-profiles-export:61 screen-profiles-export:63
172msgid "Choose"
173msgstr ""
174
175#: select-screen-profile:135
176msgid ""
177"If you are using the default set of keybindings, press\\n<F5><enter> to "
178"activate these changes.\\n\\nOtherwise, exit this screen session and start a "
179"new one."
180msgstr ""
181
182#: select-screen-profile:137
183msgid "Run \"screen\" to activate"
184msgstr ""
185
186#: screen-profiles-export:194
187msgid "Select a distro: "
188msgstr ""
189
190#: screen-profiles-export:198
191msgid "Select a color: "
192msgstr ""
193
194#: screen-profiles-export:231
195msgid "Profile"
196msgstr ""
197
198#: screen-profiles-export:232
199msgid "Archive"
200msgstr ""
201
202#: screen-profiles-export:233
203msgid ""
204"Extract this archive in your home directory on the target system, and run "
205"'screen'."
206msgstr ""
207
208#: bin/menu:24
209msgid "Menu:<F9>"
210msgstr ""

Subscribers

People subscribed via source and target branches