Topic on Extension talk:Semantic Forms Inputs

datepicker with german user localisation doesn't work correctly

4
Lugant (talkcontribs)

Hi all! First, a big big thank to all who lets live this great software! And sorry for my english. As a rather unexperimented admin of a unfortunately non-public smw-wiki I don't now where to tune for this problem: The datepicker popup let me choose a date, but it fills in the form-field in a strange way: "TT.November.JJ" instead of "31/10/2012". The saved page contain also the defective string. When I edit a page witch contains already a correct date-string with the datepicker oder the datetimepicker-form, it appears also wrong. But this occurs only if the Language in "my preferences" is set to German. So, English and French works well. See the screenshot on . Contrary, the timpicker-form works well for all languages. This behaviour occurs only since the last upgrading of some extensions, but I don't now exactly of which one. Actually, this is our installation: . Thanks for help!

Lugant (talkcontribs)

Sorry for this typo: in the text above, "31/10/2012" should be "2012/10/31" since this is the only accepted format. The described problem still occurs.

F.trott (talkcontribs)

Hi Lugant,

I think you caught a version with an error in the German translations. Sorry about that. To fix it please find the file SemanticFormsInputs.i18n.php. There around line 240 you should find the German translations of the dateformat. Please fix them so they look like this:

'semanticformsinputs-dateformatlong' => 'd. MM yy',
'semanticformsinputs-dateformatshort' => 'dd.mm.yy',

Alternatively you can use the current development version (https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/SemanticFormsInputs.git;a=snapshot;h=refs/heads/master;sf=tgz) which should be stable.

Cheers,

Lugant (talkcontribs)

Hi F.trott,

Thank you for your reply. The problem is solved by following exactly yours suggestion. I've changed the two erroneous lines in SemanticFormsInputs.i18n.php and everything works well. Thank you again.

have a nice day!

Reply to "datepicker with german user localisation doesn't work correctly"