Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my Ubuntu Touch app I need to be able to change the language of the app without rebooting the app or the device. Is there a way to do it?

share|improve this question
up vote 0 down vote accepted

Unfortunately there is currently no way to do this using gettext (the internationalization technology the Ubuntu SDK uses).

You might be able to do it using the native Qt internationalization framework.

share|improve this answer
    
Thank you for the answer. In some desktop apps like goldenDict it is possible through the options. How do they do that ? The same way can't be done in Ubuntu Touch ? – londumas Aug 22 '13 at 0:35
    
In Ubuntu Touch the language is set globally in the Settings app, and it cannot be changed on-the-fly or on a single app basis. While we'll probably have to look into changing languages on-the-fly at some point, I don't think there will be support added for changing it on a single application basis (e.g. Android does not do that, either). Looking at goldenDict, they use the native Qt internationalization framework as mentioned on the final comment of the answer (github.com/goldendict/goldendict/tree/master/locale). It might be worth rethinking whether your app really needs the feature – David Planella Aug 22 '13 at 5:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.