Last modified: 2014-05-06 12:16:11 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 T64824, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62824 - Make parse errors localizable
Make parse errors localizable
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=8 s=2014-04-23
: i18n
Depends on: 45277
Blocks: 52843 62822
  Show dependency treegraph
 
Reported: 2014-03-19 10:03 UTC by Daniel Kinzler
Modified: 2014-05-06 12:16 UTC (History)
5 users (show)

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


Attachments

Description Daniel Kinzler 2014-03-19 10:03:26 UTC
In order to provide better feedback to users while entering values, errors reported by value parsers should be localizable (and support message parameters). 

In particular, ParseException should take an error code string and an optional list of parameters in the constructor. 

We can then create a ParseErrorLocalizer class and use it in a way simmilar to ValidatorErrorLocalizer.
Comment 1 Gerrit Notification Bot 2014-03-21 14:47:00 UTC
Change 120007 had a related patch set uploaded by Daniel Kinzler:
(bug 62824) ParseValue api to return localized errors.

https://gerrit.wikimedia.org/r/120007
Comment 2 Gerrit Notification Bot 2014-03-21 15:02:08 UTC
Change 120007 had a related patch set uploaded by Siebrand:
ParseValue api to return localized errors.

https://gerrit.wikimedia.org/r/120007
Comment 3 Gerrit Notification Bot 2014-03-25 11:38:45 UTC
Change 120775 had a related patch set uploaded by Daniel Kinzler:
(bug 62824) generic localization for API errors.

https://gerrit.wikimedia.org/r/120775
Comment 4 Gerrit Notification Bot 2014-03-25 15:34:06 UTC
Change 120007 had a related patch set uploaded by Daniel Kinzler:
(bug 62824) ParseValue api to return localized errors.

https://gerrit.wikimedia.org/r/120007
Comment 5 Gerrit Notification Bot 2014-03-26 13:22:19 UTC
Change 120007 merged by jenkins-bot:
(bug 62824) ParseValue api to return localized errors

https://gerrit.wikimedia.org/r/120007
Comment 6 Gerrit Notification Bot 2014-03-31 14:30:30 UTC
Change 120775 had a related patch set uploaded by Siebrand:
Generic localization for API errors.

https://gerrit.wikimedia.org/r/120775
Comment 7 Gerrit Notification Bot 2014-03-31 18:04:13 UTC
Change 120775 merged by jenkins-bot:
Generic localization for API errors.

https://gerrit.wikimedia.org/r/120775
Comment 8 WikidataBugzilla 2014-04-09 10:21:32 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Interfaces

https://github.com/DataValues/Interfaces/commit/15fd8b396466d44e91a9185167a634c9fa2d66e9
Add rawValue and expectedFormat arguments to ValueParsers\ParseException

See bug 62824.
Comment 9 WikidataBugzilla 2014-04-09 12:08:46 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Number

https://github.com/DataValues/Number/commit/175b3743bb18be60547ddde3903abd2c5b32fffa
Pass rawValue and expectedFormat arguments to ParseExceptions

See bug 62824.
Comment 10 WikidataBugzilla 2014-04-09 12:10:24 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Common

https://github.com/DataValues/Common/commit/f0f6ca3ac134d5b0057544a56afd52c5c9057667
Pass rawValue and expectedFormat arguments to ParseExceptions

See bug 62824.
Comment 11 WikidataBugzilla 2014-04-09 12:34:10 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Time

https://github.com/DataValues/Time/commit/0460e777e9fadf39a86d033b4ac34ef695337595
Pass rawValue and expectedFormat arguments to ParseExceptions

See bug 62824.
Comment 12 Jeroen De Dauw 2014-04-09 13:55:01 UTC
First attempt that got -2'd is here: https://github.com/DataValues/Common/pull/4
Comment 13 WikidataBugzilla 2014-04-11 08:36:39 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Interfaces

https://github.com/DataValues/Interfaces/commit/0fa5b3ef12ee66596368a744879c57f56da3129e
Add rawValue and expectedFormat arguments to ValueParsers\ParseException

See bug 62824.
Comment 14 WikidataBugzilla 2014-04-11 08:37:38 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Interfaces

https://github.com/DataValues/Interfaces/commit/f957c28d646263fd836ca22dfa6be3df8f7dec0a
Add rawValue and expectedFormat arguments to ValueParsers\ParseException

See bug 62824.
Comment 15 WikidataBugzilla 2014-04-11 08:44:18 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Time

https://github.com/DataValues/Time/commit/00fce6742af88b9194f6d78e92afaccd0c0e5508
Pass rawValue and expectedFormat arguments to ParseExceptions

See bug 62824.
Comment 16 Gerrit Notification Bot 2014-04-11 09:04:40 UTC
Change 125380 had a related patch set uploaded by Adrian Lang:
Use expectedFormat for more specific ParseException localizing

https://gerrit.wikimedia.org/r/125380
Comment 17 WikidataBugzilla 2014-04-11 13:28:12 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Interfaces

https://github.com/DataValues/Interfaces/commit/241e5470bb0c01b9cdb26e66bef361b2a11ad4e7
Add rawValue and expectedFormat arguments to ValueParsers\ParseException

See bug 62824.
Comment 18 WikidataBugzilla 2014-04-16 07:28:24 UTC
Commit pushed to augmentParseException at https://github.com/DataValues/Time

https://github.com/DataValues/Time/commit/72213635b21887d17730f48b81c6b1b582a10943
Pass rawValue and expectedFormat arguments to ParseExceptions

See bug 62824.
Comment 19 Gerrit Notification Bot 2014-04-24 15:56:12 UTC
Change 125380 merged by jenkins-bot:
Use expectedFormat for more specific ParseException localizing

https://gerrit.wikimedia.org/r/125380
Comment 20 tobias.gritschacher 2014-04-25 13:30:46 UTC
Will be fully supported as soon as data-values/number version 0.6 is released and used in Wikibase.

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


Navigation
Links