Last modified: 2011-10-30 19:27:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32478, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30478 - datepicker fails in hebrew localization
datepicker fails in hebrew localization
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticFormsInputs (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: s7eph4n
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-20 19:36 UTC by s7eph4n
Modified: 2011-10-30 19:27 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description s7eph4n 2011-08-20 19:36:08 UTC
I want to have a datepicker field. I've installed this extension latest version (0.4.1) I've added it to an existing working form on MW 1.16.5+SMW 1.5.6 + SF 2.2. But it's not working, I'm getting an empty field instead of a nice datepicker box. I'm noticing a javascript error
Error: missing ] after element list
Line: 92, Column: 25
Source Code:
  monthNamesShort: ['ינו'','פבר'','מרץ','אפר'','מאי','יוני','יולי','אוג'','ספט'','אוק'','נוב'','דצמ''], 
(month names are in hebrew)

Obviously ] is not missing. Is this a known error? Thank you[[Special:Contributions/85.250.162.123|85.250.162.123]] 16:21, 19 August 2011 (UTC)

----
The problem seems to be with the hebrew localization. For some reason the month names contain apostrophes and apparently I did not escape them before including them in the JavaScript code. This leads to garbage strings which the browser can not interpret.
Comment 1 Niklas Laxström 2011-08-21 09:03:58 UTC
I don't see Hebrew names provided in the included jQuery-ui files. (Why does SemanticForms need third copy of it, in addition to SMW and MW core?)
Comment 2 s7eph4n 2011-08-21 14:12:44 UTC
Semantic Forms Inputs uses the localized month names provided by MediaWiki. Semantic Forms has its own copy of jquery-ui for backward compatibility.
Comment 3 Niklas Laxström 2011-08-21 14:22:46 UTC
Okay, I didn't find where it is produced by grepping.
Comment 4 s7eph4n 2011-10-30 19:27:29 UTC
Fixed in r101307.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links