Merge lp:~dpm/lernid/enable-translations into lp:lernid

Proposed by David Planella
Status: Merged
Merged at revision: not available
Proposed branch: lp:~dpm/lernid/enable-translations
Merge into: lp:lernid
Diff against target: 68 lines (+11/-4)
3 files modified
bin/lernid (+3/-0)
lernid.desktop.in (+2/-2)
po/lernid.pot (+6/-2)
To merge this branch: bzr merge lp:~dpm/lernid/enable-translations
Reviewer Review Type Date Requested Status
Jono Bacon Approve
Review via email: mp+15285@code.launchpad.net
To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

Some changes to enable translations: initial gettext set up and marking of the .desktop.in file for translation

Revision history for this message
Jono Bacon (jonobacon) wrote :

Looks great. Thanks, David!

review: Approve
lp:~dpm/lernid/enable-translations updated
12. By Jono Bacon

Merged in lp:~dpm/lernid/enable-translations from David Planella.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/lernid'
2--- bin/lernid 2009-11-26 00:28:16 +0000
3+++ bin/lernid 2009-11-26 17:50:20 +0000
4@@ -23,6 +23,7 @@
5 import ConfigParser
6 import xdg.BaseDirectory
7 import pynotify
8+import gettext
9
10 # Check if we are working in the source tree or from the installed
11 # package and mangle the python path accordingly
12@@ -239,6 +240,8 @@
13 logging.basicConfig(level=logging.DEBUG)
14 logging.debug('logging enabled')
15
16+ gettext.install('lernid', unicode=True)
17+
18 #run the application
19 window = NewLernidWindow()
20 window.show()
21
22=== modified file 'lernid.desktop.in'
23--- lernid.desktop.in 2009-11-26 04:57:29 +0000
24+++ lernid.desktop.in 2009-11-26 17:50:20 +0000
25@@ -1,6 +1,6 @@
26 [Desktop Entry]
27-Name=Lernid
28-Comment=Lernid application
29+_Name=Lernid
30+_Comment=Lernid application
31 Categories=GNOME;Network;
32 Exec=lernid
33 Icon=/usr/share/lernid/media/icon.png
34
35=== modified file 'po/lernid.pot'
36--- po/lernid.pot 2009-11-26 04:57:29 +0000
37+++ po/lernid.pot 2009-11-26 17:50:20 +0000
38@@ -8,7 +8,7 @@
39 msgstr ""
40 "Project-Id-Version: PACKAGE VERSION\n"
41 "Report-Msgid-Bugs-To: \n"
42-"POT-Creation-Date: 2009-11-25 20:56-0800\n"
43+"POT-Creation-Date: 2009-11-26 12:10+0100\n"
44 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
45 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
46 "Language-Team: LANGUAGE <LL@li.org>\n"
47@@ -16,7 +16,7 @@
48 "Content-Type: text/plain; charset=CHARSET\n"
49 "Content-Transfer-Encoding: 8bit\n"
50
51-#: ../data/ui/LernidWindow.ui.h:1
52+#: ../data/ui/LernidWindow.ui.h:1 ../lernid.desktop.in.h:1
53 msgid "Lernid"
54 msgstr ""
55
56@@ -52,6 +52,10 @@
57 "with this program. If not, see <http://www.gnu.org/licenses/>."
58 msgstr ""
59
60+#: ../lernid.desktop.in.h:2
61+msgid "Lernid application"
62+msgstr ""
63+
64 #: ../data/ui/ConnectDialog.ui.h:1
65 msgid "Choose an event"
66 msgstr ""
67
68=== modified file 'setup.py' (properties changed: -x to +x)

Subscribers

People subscribed via source and target branches