Ask / Submit
1

Change emulator language

asked 2019-02-24 17:14:52 +0300

ratijas gravatar image

How to change emulator language, so that translations/localizations can be tested?

My emulator is Sailfish OS 3.0 Build 3.0.1.11 (Sipoonkorpi), and it has no setting for language. Even the only two keyboards are English and emoji.

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted
2

answered 2019-02-25 14:05:31 +0300

ratijas gravatar image

Particularly, with the help of Andrey Kozhevnikov, I've found this command to be useful:

pkcon install all-translations-pack

It installes system-wide translation packages, so that things like DialogHeader can display localized "Accept"/"Cancel" buttons if being run with LC_ALL=... env.

However, this is no answer to the general question "How to change emulator language", i.e. where are those GUI system settings or how to get them.

edit flag offensive delete publish link more
1

answered 2019-02-24 18:49:58 +0300

lethe gravatar image

Personally, I found it most convenient to launch my app using ssh on my phone for language testing (my app doesn't run in the emulator anyway).

To test another language, simply change the LC_ALL variable before launching the app, like this for example:

$ LC_ALL=zh_CN.utf8 jolla-settings

Obviously you'll need to replace jolla-settings with your app's binary name. You can get a list of all supported languages by running:

$ locale -a

This approach should also work with the emulator using either SSH or a terminal...

edit flag offensive delete publish link more

Comments

LC_ALL is not the full picture. An app gets localized to the extent of custom translation files. System stuff like DialogHeader needs system localization files which are missing on the emulator.

ratijas ( 2019-02-24 18:59:40 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2019-02-24 17:14:52 +0300

Seen: 226 times

Last updated: Feb 25 '19