How-to test the app with different language
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
Thanks! Nice catch! Never even thought about it.
eson ( 2017-01-17 08:31:51 +0200 )editmind using utf8 locale
coderus ( 2017-01-17 08:38:39 +0200 )editGreat! It makes that process much more simple.
Dylan Van Assche ( 2017-01-17 10:25:43 +0200 )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 +0200 )editdo
coderus ( 2017-01-17 19:02:01 +0200 )editLANG=de_DE ls
in some folder with unicode names and you will see ??????? instead of unicode letters