User Interface needs to be Translated

Bug #330746 reported by dobey
40
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
Medium
dobey
Ubuntu One Servers
Triaged
Medium
Ubuntu One
Ubuntu Translations
Fix Released
Medium
Unassigned

Bug Description

The user interface elements in the client need to be translated. This includes the nautilus extension and any additional interface we add on the client side.

Tags: i18n

Related branches

dobey (dobey)
Changed in ubunet:
importance: Undecided → Medium
milestone: none → alpha2
Elliot Murphy (statik)
Changed in ubunet:
milestone: alpha2 → beta1
dobey (dobey)
Changed in ubuntuone-client:
assignee: nobody → dobey
milestone: none → beta1
status: New → Triaged
Changed in ubunet:
assignee: nobody → dobey
status: New → Triaged
dobey (dobey)
Changed in ubuntuone-client:
importance: Undecided → Medium
status: Triaged → In Progress
dobey (dobey)
Changed in ubunet:
assignee: Rodney Dawes (dobey) → nobody
Revision history for this message
Elliot Murphy (statik) wrote :

not a beta1 blocker

Changed in ubuntuone-client:
milestone: beta1 → none
Revision history for this message
Elliot Murphy (statik) wrote :

not a beta1 blocker.

Changed in ubunet:
milestone: beta1 → later
Elliot Murphy (statik)
Changed in ubuntuone-client:
milestone: none → later
Rick McBride (rmcbride)
visibility: private → public
Revision history for this message
Rodrigo Moya (rodrigo-moya) wrote :

Initial support for translations has been added to the code, but translations don't show yet on the project's LP page, so not sure if something's missing

Revision history for this message
David Planella (dpm) wrote :

Just an update to say that thanks to Rodrigo's work the interface is now also translatable in Launchpad, and that the first translations should appear in the client as soon as they are comitted and released.

Related to this, there is also bug #369099.

Revision history for this message
István Nyitrai (sianis) wrote :

This patch enables using of translations.

Revision history for this message
dobey (dobey) wrote :

Hi Istvan,

We can't hardcode the path. We would need to generate a .py file which includes configuration information such as this, and import that module to get the path. We also use branches for development, and merge proposals on Launchpad, which makes reviewing and approving changes much easier. Also, for Ubuntu One, we require contributor agreement signatures. Thanks!

David Planella (dpm)
tags: added: i18n
Revision history for this message
David Planella (dpm) wrote :

I've created a branch with a proposed fix and I've linked it to the bug.

It basically binds the gettext translation domain when starting the ubuntuone-client, and it gets the required variables (domain, locale dir) from the configuration information. I had a look at how it's done for GNOME python apps and I basically adapted the code from the hamster-applet.

I've got a few questions, though:

* I've defined GETTEXT_PACKAGE="${PACKAGE}" in configure.ac, so that the domain name is the same as the package name and it is set at configure time. However, having had a look at a couple of GNOME python apps, I've seen that they always hardcode the domain name in plain text there (and again in the .py file when binding the domain). I'm not sure which one the preferred way is.

* I've added $(top_srcdir)/canonical/ubuntuone/defs/defs.py.in to EXTRA_DIST in Makefile.am, although $(pyfiles) seems to include _everything_ that's inside the 'canonical' directory in the source tree.

Rodney, what's the next step, does it have to be first reviewed and then proposed for a merge, or the other way round? Where can I find the contributor agreement to sign?

dobey (dobey)
Changed in ubuntuone-client:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
John O'Brien (jdobrien)
Changed in ubuntuone-servers:
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Medium
dobey (dobey)
Changed in ubuntu-translations:
status: Triaged → Fix Released
Roberto Alsina (ralsina)
Changed in ubuntuone-servers:
assignee: Ubuntu One Desktop+ team (ubuntuone-desktop+) → Ubuntu One (ubuntuone)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.