How-to test the app with different language

asked 2017-01-17 07:10:44 +0300

Rikujolla gravatar image

updated 2019-08-16 21:22:34 +0300

This is maybe very easy for an experienced linux hacker but I became so happy to find that I will share it. Previously I tested my apps in different languages by changing device language settings from Settings and rebooting the device. This is much easier. E.g test my app for dutch. Start terminal and type:

LANG=nl_NL harbour-shakkikello

Or jolla clock in German

LANG=de_DE jolla-clock

To find locales available type:

locale -a

EDIT! To test qml-only apps you have to add sailfish-qml as in example as follows:

LANG=fi sailfish-qml harbour-math-teacher
edit retag flag offensive close delete

Comments

1

Thanks! Nice catch! Never even thought about it.

eson ( 2017-01-17 08:31:51 +0300 )edit
2

mind using utf8 locale

coderus ( 2017-01-17 08:38:39 +0300 )edit
1

Great! It makes that process much more simple.

Dylan Van Assche ( 2017-01-17 10:25:43 +0300 )edit

@coderus, good point! It is safer to use e.g. LANG=de_DE.utf8 jolla-clock to ensure utf8 locale is selected. In my Jolla though there are only utf8 locales installed.

Rikujolla ( 2017-01-17 19:00:49 +0300 )edit
1

do LANG=de_DE ls in some folder with unicode names and you will see ??????? instead of unicode letters

coderus ( 2017-01-17 19:02:01 +0300 )edit