Merge lp:~dobey/ubuntuone-client/fix-translations into lp:ubuntuone-client

Proposed by dobey
Status: Merged
Approved by: Natalia Bidart
Approved revision: 764
Merged at revision: 765
Proposed branch: lp:~dobey/ubuntuone-client/fix-translations
Merge into: lp:ubuntuone-client
Diff against target: 32 lines (+3/-4)
2 files modified
libsyncdaemon/syncdaemon-authentication.c (+1/-1)
ubuntuone/clientdefs.py.in (+2/-3)
To merge this branch: bzr merge lp:~dobey/ubuntuone-client/fix-translations
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Rick McBride (community) Approve
Review via email: mp+42990@code.launchpad.net

Commit message

Use the dgettext call for translating the SSO description

Description of the change

This can be tested by installing the language-pack-gnome-tr-base package, and then doing the following, inside the branch:

./autogen.sh --enable-debug --enable-gtk-doc && make ubuntuone/clientdefs.py
PYTHONPATH=. LANG=tr_TK.UTF-8 python -c "from ubuntuone.clientdefs import DESCRIPTION; print DESCRIPTION"

You can also use this same test against trunk or the installed packages, to see that it fails with them, by running the command without setting PYTHONPATH=. in another directory.

To post a comment you must log in.
Revision history for this message
Rick McBride (rmcbride) wrote :

This works. Thanks for the excellent test example.

review: Approve
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Works indeed, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libsyncdaemon/syncdaemon-authentication.c'
--- libsyncdaemon/syncdaemon-authentication.c 2010-10-05 13:52:09 +0000
+++ libsyncdaemon/syncdaemon-authentication.c 2010-12-07 19:09:04 +0000
@@ -258,7 +258,7 @@
258 dbus_g_proxy_call_no_reply (auth->priv->proxy, "login_or_register_to_get_credentials",258 dbus_g_proxy_call_no_reply (auth->priv->proxy, "login_or_register_to_get_credentials",
259 G_TYPE_STRING, SSO_APP_NAME,259 G_TYPE_STRING, SSO_APP_NAME,
260 G_TYPE_STRING, SSO_TC_URL,260 G_TYPE_STRING, SSO_TC_URL,
261 G_TYPE_STRING, _("Ubuntu One requires an Ubuntu Single Sign On (SSO) account. This process will allow you to create a new account, if you do not yet have one."),261 G_TYPE_STRING, Q_("Ubuntu One requires an Ubuntu Single Sign On (SSO) account. This process will allow you to create a new account, if you do not yet have one."),
262 G_TYPE_INT64, 0, /* FIXME */262 G_TYPE_INT64, 0, /* FIXME */
263 G_TYPE_INVALID,263 G_TYPE_INVALID,
264 G_TYPE_INVALID);264 G_TYPE_INVALID);
265265
=== modified file 'ubuntuone/clientdefs.py.in'
--- ubuntuone/clientdefs.py.in 2010-10-07 16:04:50 +0000
+++ ubuntuone/clientdefs.py.in 2010-12-07 19:09:04 +0000
@@ -24,8 +24,7 @@
24import gettext24import gettext
2525
2626
27_ = gettext.gettext27Q_ = lambda string: gettext.dgettext(GETTEXT_PACKAGE, string)
28
2928
30# pylint: disable-msg=C030129# pylint: disable-msg=C0301
31VERSION = "@VERSION@"30VERSION = "@VERSION@"
@@ -36,4 +35,4 @@
36APP_NAME = "@SSO_APP_NAME@"35APP_NAME = "@SSO_APP_NAME@"
37TC_URL = "@SSO_TC_URL@"36TC_URL = "@SSO_TC_URL@"
38PING_URL = "@SSO_PING_URL@"37PING_URL = "@SSO_PING_URL@"
39DESCRIPTION = _("Ubuntu One requires an Ubuntu Single Sign On (SSO) account. This process will allow you to create a new account, if you do not yet have one.")38DESCRIPTION = Q_("Ubuntu One requires an Ubuntu Single Sign On (SSO) account. This process will allow you to create a new account, if you do not yet have one.")

Subscribers

People subscribed via source and target branches