Ask / Submit
3

How to use other than selected language time, date, currency etc. settings?

asked 2019-01-13 14:02:28 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2019-01-15 13:57:12 +0200

jovirkku gravatar image

Hello!

A new sailor with new Xperia XA2 and Lemmenjoki 3.0.8 on it (works fine and happy to use it)-> Is there any way to use for example english GUI language but finnish time, date, currency and other measurent settings? It seems that within the GUI settings you cannot do this because all other settings follows actually the language settings.

And why I want this -> The tradional reason (like in every linux platforms) is that while the main OS is very nice with finnish :-) all apps are not... just want to see everything in english for that reason. Can this be accomplished by editing locale file, is there this file somewhere and if, how to edit it (as easy as possible)?

Thanks!

edit retag flag offensive close delete

Comments

searching with metric as search term gave me some hite (most of them linked to maps), probably this question could bring you further...

rgrnetalk ( 2019-01-13 15:45:21 +0200 )edit

Yes, thanks, I'll try that one!

2kanaa ( 2019-01-13 21:11:18 +0200 )edit

Perhaps I misunderstand the extent of your question, but from what I can see, you can set the keyboard to English UK, set time to Finland (disable automatic update). Finland uses the Euro, on the English UK keyboard, you will find the € key.........what else am I missing?, measurement?, not sure if Finland uses metric or imperial, best to let a Fin answer that one :)

Edz ( 2019-01-13 21:41:59 +0200 )edit

@Edz - metric, SI units FTW! ;)

raketti ( 2019-01-13 22:08:31 +0200 )edit

You seem to be happy to Finnish of the main OS so why not leave that as is and concentrate on poor apps. You can easily change the app language permanently to English (or poor English like in my apps:)) by renaming the translations file as follows:

  1. Change you as superuser
  2. Find the translation file /usr/share/harbour-yourapp/translations/harbour-yourapp-fi.qm
  3. Rename that file

You may also replace a Finnish translation file with a possibly available English or other language file. To change the icon text in app launcher you have to comment a Finnish name in a file /usr/share/applications/harbour-yourapp.desktop

Of course yo can make app translations better to report poor translations to the app developer

Rikujolla ( 2019-01-14 07:34:33 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2019-01-15 10:00:11 +0200

vatman gravatar image

edit /var/lib/environment/nemo/locale.conf

from below environment variables you should put in the following format:

LC_TIME=bg_BG.utf8

Where LC_TIME is the environment variable. You can choose such from below. locale.conf files support the following environment variables:

LANG
LANGUAGE
LC_ADDRESS
LC_COLLATE
LC_CTYPE
LC_IDENTIFICATION
LC_MEASUREMENT
LC_MESSAGES
LC_MONETARY
LC_NAME
LC_NUMERIC
LC_PAPER
LC_TELEPHONE
LC_TIME

And available language options

locale -a             
C
POSIX
bg_BG.utf8
bn_IN.utf8
cs_CZ.utf8
da_DK.utf8
de_DE.utf8
el_GR.utf8
en_GB.utf8
en_US.utf8
es_BO.utf8
es_ES.utf8
et_EE.utf8
fi_FI.utf8
fr_FR.utf8
gu_IN.utf8
hi_IN.utf8
hu_HU.utf8
it_IT.utf8
kn_IN.utf8
ml_IN.utf8
mr_IN.utf8
nb_NO.utf8
nl_NL.utf8
pa_IN.utf8
pl_PL.utf8
pt_BR.utf8
pt_PT.utf8
ru_RU.utf8
sl_SI.utf8
sv_SE.utf8
ta_IN.utf8
te_IN.utf8
tr_TR.utf8
tt_RU.utf8
zh_CN.utf8
zh_HK.utf8
zh_TW.utf8

After the edit I reboot the phone, don't know if there is other way to apply changes

edit flag offensive delete publish link more

Comments

Is there a list anywhere of which countries have which time and date format (and which day the week starts on)?

rfa ( 2019-01-15 22:54:10 +0200 )edit

I don't know for list, this could be googled and I suppose its standard anyway.

You can test from terminal as follows (this is the Bulgarian one)

[nemo@Sailfish ~]$ LC_TIME=bg_BG.utf8 cal
януари
2019
пн вт ср чт пт сб нд
1  2  3  4  5  6
7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

[nemo@Sailfish ~]$ LC_TIME=bg_BG.utf8 date
ср яну 16 06:41:22 EET 2019
vatman ( 2019-01-16 06:46:33 +0200 )edit

Jes, thanks for everybody for your kind help, I followed rgrnetalk's and vatman's answers and this case is solved now. Along the way I learned how to set developer mode, ssh connection and install nano editor to the phone :-)

2kanaa ( 2019-01-16 21:51:20 +0200 )edit

Well, after quick checking the changes made I thought it was solved but new ssh login to the device gives now:

NOTICE: Env value ignored ...

and there is list of all but the LANG value which is not ignored. I have now the Sailfish OS 3.0.1.11 (Sipoonkorpi) version and locale command gives now:

[nemo@Sailfish ~]$ locale

LANG=

LANGUAGE=

LC_CTYPE="POSIX"

etc.

My start screen show now:

11:28

Thursday

17 tammikuuta <- finnish "17th of January"

Do I miss something here? Should I generate those locales separately etc.?

2kanaa ( 2019-01-17 11:19:58 +0200 )edit

Well, I'll just stick to finnish GUI language at the moment.

2kanaa ( 2019-01-17 22:28:10 +0200 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2019-01-13 14:02:28 +0200

Seen: 241 times

Last updated: Jan 15