Skip to content
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

Language flipping back to English #2798

Closed
HJvD123 opened this issue Jan 14, 2017 · 22 comments
Closed

Language flipping back to English #2798

HJvD123 opened this issue Jan 14, 2017 · 22 comments

Comments

@HJvD123
Copy link

HJvD123 commented Jan 14, 2017

Hi,

I use my Traccar (3.9 on RaPi 3 with Debian Jesse light) in Dutch. Every time I log in I have to select the Dutch language, Traccar is not remembering this for me. Then when I'm not logging out and look again next day the server has flipped back to English. So what I'm wondering is why there is no default language setting (set and forget) in the account area? Most users never gonna change their using language I think.

@tananaev
Copy link
Member

Traccar uses default browser language. If it's English, it means you have set English in your browser.

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

Traccar is always suggesting I use the English language on my Dutch Firefox browser 50.1. After your comment I tried the Edge browser: suggesting English in a Dutch browser.

@tananaev
Copy link
Member

What do you mean by "suggesting"? Which one is it using?

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

Well, when I open my browser and filling in the url from Traccar. The login popup is showing the English language by default. You said it should choose Dutch by default because the browser is Dutch.

@tananaev
Copy link
Member

Which language is the login page in?

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

English as well.

@tananaev
Copy link
Member

Try to check window.navigator.language variable value in the browser developer tools.

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

Poa. Not very familiar with the developer tools. Tried looking tough in the debugger window but didn't found the variable you want me to look after.

@tananaev
Copy link
Member

Just type it in the console and click "enter".

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

OK. Tried this. But no result in the debugger window by typing this variable. Tried "navigator.language" as well, but no result either.

@tananaev
Copy link
Member

What do you mean by debugger window? Console? It should return you the value.

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

Well: the build in developper in Firefox tab debugger. No result for my search there.

@tananaev
Copy link
Member

Not sure why you are on debugger tab when I asked you to use console:

screen shot 2017-01-14 at 10 37 19 pm

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

OK. I'm still learning. The result is Array [ "nl", "en-US", "en" ] Do not know why there is "en-Us" and "en", I have a English spell checker installed but I can't see why this is interfering with Traccar.

@tananaev
Copy link
Member

What if you type following expression:

window.navigator.userLanguage || window.navigator.language

@HJvD123
Copy link
Author

HJvD123 commented Jan 14, 2017

Response: "nl" that is correct in my humble opinion.

@tananaev
Copy link
Member

It is correct. It should load "nl.json" instead of "en.json". Please check network tab to confirm.

@HJvD123
Copy link
Author

HJvD123 commented Jan 21, 2017

Checked network tab, found there: locale-en.js and en.json. No good, I guess?

@tananaev
Copy link
Member

The only option I see is to access your computer remotely and see what's happening, if that's possible.

@HJvD123
Copy link
Author

HJvD123 commented Jan 21, 2017

Well, is my issue a incident or are there more problems with the language selection. Do you want to understand what is going wrong so you can improve your program? I'm familiar with using Teamviewer for remote access.

@tananaev
Copy link
Member

It's the first such problem that I hear of. Yes, I want to check to improve the program.

@SebastEnn
Copy link

I guess you have solved this privately. Issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants