dudel icon indicating copy to clipboard operation
dudel copied to clipboard

German due date input placeholder is misleading

Open FlaShG opened this issue 9 years ago • 5 comments

The german due date placeholder says z.B. "in 2 Wochen um 12:00"

This very input is not being interpreted when entered.

FlaShG avatar Mar 04 '15 15:03 FlaShG

That's a fun one. I wondered when anyone would notice :wink:

opatut avatar Mar 04 '15 15:03 opatut

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...)

RalfJung avatar Mar 21 '15 16:03 RalfJung

That is some weird behaviour which should obviously not occur. I didn't know flask-babel reads language from browser settings. Gotta investigate ;)

opatut avatar Mar 21 '15 17:03 opatut

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.

femtobit avatar Mar 21 '15 17:03 femtobit

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.

RalfJung avatar Mar 21 '15 18:03 RalfJung