Set default language

sounay8 years ago

Hi,

How do we set to our own default language instead of English in Traccar server?

Regards,
Sounay

Anton Tananaev8 years ago

You can just one URL with pre-selected language. Like this:

http://demo.traccar.org/?locale=ru

sounay8 years ago

Could you tell me what file or which database to modify or set as the pre-selected language?

Regard,
Sounay

Anton Tananaev8 years ago

I guess this is the file you are looking for:

https://github.com/tananaev/traccar/blob/master/web/locale.js

sounay8 years ago

HI Anton,

I changed it to

if (!(Locale.language in Locale.languages)) {
Locale.language = 'lo'; // default
}

and rebooted the server, but the default language was not effected.

Regards,
Souna

Anton Tananaev8 years ago

I guess that's because it uses your browser's language by default. Look carefully through the code.