Translate application

Asked by Dorian

Hi,
I can translate the GUI generated by Glade, but how can i translate (in the same .pot file ?) the UI text modified by my application ?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Quickly Edit question
Assignee:
No assignee Edit question
Solved by:
Didier Roche-Tolomelli
Solved:
Last query:
Last reply:
Revision history for this message
Best Didier Roche-Tolomelli (didrocks) said :
#1

Hey Dorian,
Thanks for using Quickly.

Yeah, this is a bug opened on Quickly (bug #423529). This will be fixed in Quickly 0.4
You can in the meanwhile just add in the top of our project files:

import gettext
from gettext import gettext as _

and change on each print ("blablabla") by: print _("blablabla")

Revision history for this message
Dorian (ikolpm) said :
#2

Thanks Didier Roche, that solved my question.