Generated projects do not support translations

Bug #423529 reported by John C Barstow
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Medium
Didier Roche-Tolomelli

Bug Description

Unlike quickly itself, new projects created by quickly don't use gettext and cannot be translated.

Note that fixing this would probably involve tweaking the setup.py to generate mo files and placing them in the correct location on the system, in addition to setting up the correct launchpad integration.

I'd suggest a 'quickly translate' command be added to generate PO files for a new language.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks for your report.
Hum, I think we can embed the translation handling in both package/share/release code instead of adding a new command.

I think this can be easy handled for 0.4 release (as we currently target 0.2.1).

Changed in quickly:
status: New → Won't Fix
status: Won't Fix → Triaged
importance: Undecided → Wishlist
Revision history for this message
John C Barstow (jbowtie) wrote :

I was suggesting a new command to generate the po file for an additional language - normally you would do a bunch of intltool commands to generate a .pot file, rename it, do some translation, tweak autoconf rules, update the headers, and finally commit it. You could make this friendlier.

So to, say, add a Dutch translation, "quickly translate nl" would generate or update an nl.po file in the correct location, add it to source control, and open it in gtranslator (or poedit).

I was sort of assuming that packaging and releasing would "do the right thing" once the po file exists.

Does that make the use case clearer?

Revision history for this message
Rick Spencer (rick-rickspencer3) wrote :

We should also add the:

import gettext
_ = gettext.lgettext

in some reasonable place. Promoting this convention is a worthy goal.

Didrocks, thoughts about where to add this code for the project? Do we need to add it to each and every generated file?

Changed in quickly:
assignee: nobody → Didier Roche (didrocks)
importance: Wishlist → Medium
Changed in quickly:
milestone: none → 0.4
Changed in quickly:
status: Triaged → Fix Committed
Changed in quickly:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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