wger icon indicating copy to clipboard operation
wger copied to clipboard

Automatic language recognition and language menu positioning

Open milotype opened this issue 2 years ago • 5 comments

Use case

Currently the website https://wger.de/en/software/features uses english by default. The user has to change the language menu manually in the footer of the page.

Proposal

  • Enable automatic language selection by recognizing the user's browser langauge, or OS language settings to show the website in the appropriate language.
  • Place the language menu into the top navigation bar as a separate item instead of placing it at the bottom of the page.

milotype avatar Jul 05 '23 16:07 milotype

Actually it already does. If you just open wger.de, /software/features (or any other url for that matter), it'll redirect the user to the detected language from the browser

rolandgeider avatar Jul 05 '23 17:07 rolandgeider

@rolandgeider You're right. The localization for the website wger.de works!

I'll leave it up to you, whether to change my second proposal about placing the language menu into the top navigation bar as a separate item instead of placing it at the bottom of the page.

It is not really essential. It's just how I like to see localized websites.

milotype avatar Jul 06 '23 12:07 milotype

I thing nav bar is a much better place for the language drop-down menu.

iglesiasroberto14 avatar Jan 29 '24 08:01 iglesiasroberto14

@rolandgeider For some reason the website https://wger.de again doesn't automatically detect the user's browser or system language! Opening https://wger.de/ in my Firefox browser (with Croatian as primary language) as well as in my iPhone Safari browser display the english version!?

Please check and correct it. Thank you

milotype avatar Feb 01 '24 14:02 milotype

@rolandgeider The website still does not show all localized versions! Most localizations don´t work or work only partially! This is sad, because many languages have a high percentage of translations (see https://hosted.weblate.org/widgets/wger/#horizontal).

Please correct this issue as soon as possible, or ask contributors to help you to solve the issue. Unfortunaltely I can´t help, as I´m not a programmer. :-(

milotype avatar May 05 '24 17:05 milotype