Detect browser locale and offer choice for datepicker
they are ignored, if browser supports input type = date, and displays browser built-in datepicker dropdown, then date locale (for datepicker language) is displayed in browser's language, instead of using translation.
My suggestion is to offer admins or maybe even to user choice if they want to use browser locale, or Redmine's locale.
In case that they want to use Redmine's locale, then input type=date should not be used, but input type=text
there is such feature to detect it on datepickerFallback...
However if it's supported, then input type must be text, or following problem occurs (calendar over calendar):
So there should be peace of code which detects browser locale, and offers that choice, like
langs = request.env['HTTP_ACCEPT_LANGUAGE'].to_s.split(",").map do |lang| l, q = lang.split(";q=") [l, (q || '1').to_f] end if(langs.first != current_language.to_s) #offer choice for Redmine setting..
and if user chooses to use redmine's locale then on date fields, if that setting is choosen, input type = text...
Maybe somebody can write patch for this.
#1 Updated by Aleksandar Pavic over 3 years ago
Built-in datepicker can be disabled on some browsers