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
1=== modified file 'debian/rules'
2--- debian/rules 2009-03-28 17:14:44 +0000
3+++ debian/rules 2009-03-31 16:04:08 +0000
4@@ -5,6 +5,7 @@
5 # export DH_VERBOSE=1
6
7 PACKAGE=screen-profiles
8+TEXTDOMAIN=screen-profiles
9 VER=`head -n 1 debian/changelog | sed 's/^.*(//' | sed 's/).*//' | sed 's/-.*//'`
10
11 get-orig-source:
12@@ -12,10 +13,14 @@
13 -[ -d ../${PACKAGE} ] && mv ../${PACKAGE} ../${PACKAGE}-${VER}
14 tar -C ../ --exclude .bzr --exclude debian -zcvf ../${PACKAGE}_${VER}.orig.tar.gz ${PACKAGE}-${VER}
15
16-get-po:
17- xgettext -o po/screen-profiles.pot -L Python -d screen-profiles screen-profiles
18- xgettext -j -o po/screen-profiles.pot -L Shell -d screen-profiles select-screen-profile screen-profiles-export bin/menu
19-
20+update-pot:
21+ rm -f po/${TEXTDOMAIN}.pot
22+ grep -v "#" po/POTFILES.sh | while read po ; do \
23+ xgettext -o po/${TEXTDOMAIN}.pot -L Shell $${po} ; \
24+ done
25+ grep -v "#" po/POTFILES.python | while read po ; do \
26+ xgettext -o po/${TEXTDOMAIN}.pot -L Python $${po} ; \
27+ done
28
29 prebuild:
30
31@@ -27,7 +32,7 @@
32 dh_clean
33 ./profiles/generate --clean
34
35-install: build
36+install: build update-pot
37 dh_testdir
38 dh_testroot
39 dh_clean -k
40
41=== added file 'po/POTFILES.python'
42--- po/POTFILES.python 1970-01-01 00:00:00 +0000
43+++ po/POTFILES.python 2009-03-31 16:04:08 +0000
44@@ -0,0 +1,3 @@
45+# List of source files containing translatable Python strings.
46+# Please keep this file sorted alphabetically.
47+screen-profiles
48
49=== added file 'po/POTFILES.sh'
50--- po/POTFILES.sh 1970-01-01 00:00:00 +0000
51+++ po/POTFILES.sh 2009-03-31 16:04:08 +0000
52@@ -0,0 +1,5 @@
53+# List of source files containing translatable sh strings.
54+# Please keep this file sorted alphabetically.
55+bin/menu
56+select-screen-profile
57+screen-profiles-export
58
59=== modified file 'po/screen-profiles.pot'
60--- po/screen-profiles.pot 2009-03-31 11:04:58 +0000
61+++ po/screen-profiles.pot 2009-03-31 16:04:08 +0000
62@@ -3,12 +3,13 @@
63 # This file is distributed under the same license as the PACKAGE package.
64 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
65 #
66+#: screen-profiles:296
67 #, fuzzy
68 msgid ""
69 msgstr ""
70 "Project-Id-Version: PACKAGE VERSION\n"
71 "Report-Msgid-Bugs-To: \n"
72-"POT-Creation-Date: 2009-03-31 06:04-0500\n"
73+"POT-Creation-Date: 2009-03-31 18:58+0300\n"
74 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
75 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
76 "Language-Team: LANGUAGE <LL@li.org>\n"
77@@ -149,62 +150,3 @@
78 #: screen-profiles:463
79 msgid "<Tab>/<Alt-Tab> between elements | <Return> Validates"
80 msgstr ""
81-
82-#: select-screen-profile:48
83-msgid "Error:"
84-msgstr ""
85-
86-#: select-screen-profile:48
87-msgid " file exists, but is not a symlink"
88-msgstr ""
89-
90-#: select-screen-profile:81
91-msgid "Select a screen profile: "
92-msgstr ""
93-
94-#: select-screen-profile:100 screen-profiles-export:56
95-#: screen-profiles-export:180
96-msgid "ERROR: Invalid selection"
97-msgstr ""
98-
99-#: select-screen-profile:107 select-screen-profile:109
100-#: screen-profiles-export:61 screen-profiles-export:63
101-msgid "Choose"
102-msgstr ""
103-
104-#: select-screen-profile:135
105-msgid ""
106-"If you are using the default set of keybindings, press\\n<F5><enter> to "
107-"activate these changes.\\n\\nOtherwise, exit this screen session and start a "
108-"new one."
109-msgstr ""
110-
111-#: select-screen-profile:137
112-msgid "Run \"screen\" to activate"
113-msgstr ""
114-
115-#: screen-profiles-export:194
116-msgid "Select a distro: "
117-msgstr ""
118-
119-#: screen-profiles-export:198
120-msgid "Select a color: "
121-msgstr ""
122-
123-#: screen-profiles-export:231
124-msgid "Profile"
125-msgstr ""
126-
127-#: screen-profiles-export:232
128-msgid "Archive"
129-msgstr ""
130-
131-#: screen-profiles-export:233
132-msgid ""
133-"Extract this archive in your home directory on the target system, and run "
134-"'screen'."
135-msgstr ""
136-
137-#: bin/menu:24
138-msgid "Menu:<F9>"
139-msgstr ""

Subscribers

People subscribed via source and target branches