WMDE-leszek updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
...
{F16745033}

Leszek dug up how the validation is currently done:= Acceptance criteria =
* It is impossible to add a **lemma** using the **invalid language code**
* It is impossible to add a **form representation** using the **invalid language code**

Invalid language code here means any string other then the valid language code, defined for the scope of this task as follows:
- the string which is a language code recognized as valid by "core" wikibase
- if the input contains a part '-x-' in it, the part before '-x-' is a language code recognized as valid by "core" wikibase

== Examples of valid language codes ==
- en
- de
- de-at
- de-x-Q1996

== Examples of invalid language codes ==

* check whether the entered language code is the language code recognized as valid by "core" wikibase- foobar
* in case the user input lang code is not valid that way, the extra check happens- de-Q1996
* if the input contains a part '-x-' in it, the part before '-x-' is taken, and validated the same way as above. In other words. Assuming "de" is a valid wikibase lang code, and "foo" is not, for lemma and representation language the following stuff is considered valid: de, de-x-Q666, de-x-yolo. And the following are to be considered invalid: foo, foo-x-Q666, foo-x-yolo, de-yolo, de-Q66- foobar-x-Q1996
...

TASK DETAIL
https://phabricator.wikimedia.org/T191504

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: WMDE-leszek
Cc: WMDE-leszek, Aklapper, Lydia_Pintscher, Lahi, Gq86, Cinemantique, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to