-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default language #141
Comments
Yeah, it is possible. The easiest way is to add following line to the
For example for russian locale:
I have a shell script that automates it: #!/bin/bash
LOCALES=ru
for loc in $LOCALES
do
cp -f $1 ${loc}_$1
unzip -p $1 traccar.html | awk -v langtag=" <meta name=\"gwt:property\" content=\"locale=$loc\">" '{print} NR==4{print langtag}' > traccar.html
jar uf ${loc}_$1 traccar.html
rm traccar.html
done To use it I do the following:
As an output there will be a |
FYI I have somewhere in my TODO list to add locale and timezone selection to the user's preferences (and maybe to application's preferences too). This will help for example to send localized notifications with date/time in user's timezone. |
Great is ok. Thanks. PS. I have sent to you by email the new files for italian language. Desktop and mobile version. |
Yeah, above instructions are for desktop version only. For mobile you should update this line https://github.com/vitalidze/traccar-web/blob/dev/src/main/webapp/m/js/traccar-mobile.js#L9 and this line https://github.com/vitalidze/traccar-web/blob/dev/src/main/webapp/m/js/traccar-mobile.js#L100 (i.e. change 'en' to your locale). PS. Thanks for the translation. I will try to do my best to release it either today or tomorrow. |
Ok also the mobile version. Thanks |
FYI I have already finished language selection in 'Global' settings (in scope of 2 from #148). Thus, in newer version you won't need to change anything except that setting. Next version should come next week. |
Hi. With the last release (2.12) i'm no longer able to change default language for desktop versione as you have said to me previously with the meta tag. Mobile is ok. |
I have seen now the new option in global setting. Now is ok. |
Hi,
I would like to know if is possible change the default language.to another insteed english.
Thanks
The text was updated successfully, but these errors were encountered: