https://bugzilla.wikimedia.org/show_bug.cgi?id=37461

--- Comment #7 from [email protected] 2012-07-20 10:26:10 UTC ---
Transliteration of variants when there is an existing label should be possible.
Could be a little harder to do transliteration to a canonical form before save
and then transliteration back on view.

In the case where a user sets the uselang, or choses a user lang in preferences
that is a language variant, a default variant can be set. If the user chose to
write in another variant of some reason then this must be detected, possibly by
counting characters from each of a small set of possible character sets and
then the one variant with the most hits wins. As long as no winner can be found
(some characters might be used in both sets) the set default language according
to global or user preferences are used.

Autocomplete in sitelinks use the action=opensearch module, which does not
support variants. If variant conversion is used a second call to action=query
must be done for sitelinks, either to the site itself or to the repo itself.

Variants are used for Gan Chinese (gan,
http://en.wikipedia.org/wiki/Gan_Chinese_language), Inuktitut (iu,
http://en.wikipedia.org/wiki/Inuktitut_language), Kazakh (kk,
http://en.wikipedia.org/wiki/Kazakh_language), Kurdish (ku,
http://en.wikipedia.org/wiki/Kurdish_language), Shilha (shi,
http://en.wikipedia.org/wiki/Shilha_language), Serbian (sr,
http://en.wikipedia.org/wiki/Serbian_language), Tajik (tg,
http://en.wikipedia.org/wiki/Tajik_language), Chinese (zh,
http://en.wikipedia.org/wiki/Chinese_language)

Writing in a language version could imply a load of a language specific variant
detector, and only after this detector is loaded the variant written by the
user can be identified. That could for example imply a first load of sitelinks
in wrong version. Strings for fields like label and description only needs a
detection of variants on save, and will be posted to the api with a variant
hint. This hint is only used if detection of the variant is unconclusive. It
should probably be possible to override the automatic detection and enforce a
specific variant.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to