dudel
dudel copied to clipboard
German due date input placeholder is misleading
The german due date placeholder says
z.B. "in 2 Wochen um 12:00"
This very input is not being interpreted when entered.
That's a fun one. I wondered when anyone would notice :wink:
Some more notes on this: That placeholder appears German even if the entire remainder of the site is in English - and even if I am logged in as a user with an explicit "en" setting. It seems the headers sent by the browser take absolute precedence. If it would be possible to just ignore that header, that would already make things much less confusing.
I had my browser set up with German as first language, and English as second language.
(EDIT: Removed an oops...)
That is some weird behaviour which should obviously not occur. I didn't know flask-babel reads language from browser settings. Gotta investigate ;)
I didn't know flask-babel reads language from browser settings.
Well, it's not exactly flask-babel that reads the browser settings, see https://github.com/opatut/dudel/blob/master/dudel/views.py#L31. However, that placeholder should be translated just like all other strings. At least it works like this on https://dudel.mafiasi.de.
The problem with the different languages was due to me forgetting to compile the translations (see my pull request for adding that to the setup docs ;-).
The language setting seems to be complete ignored. I will report this as an issue.