Last modified: 2014-05-16 13:47:54 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 T61905, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59905 - It should be possible to add a label in any eligible language
It should be possible to add a label in any eligible language
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=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-10 13:13 UTC by Gerard Meijssen
Modified: 2014-05-16 13:47 UTC (History)
16 users (show)

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


Attachments

Description Gerard Meijssen 2014-01-10 13:13:27 UTC
I am expecting a list of languages from India and Indonesia where a request will be made for Wikidata only. They are living languages and they are eligible.

What is needed for these languages is that it is possible to select them. They may have fonts and input methods associated with them as well.

It will be really helpful is we get assurances that such languages can be made operational in a minimum time frame. This is because it will help with planned conferences and workshops in both India and Indonesia.
Thanks,
    GerardM
Comment 1 Andre Klapper 2014-01-10 14:47:19 UTC
It's unclear to me what exactly is requested and what is the scope here (plus the current bug summary might miss a verb?)
Please describe
* What were you trying to do (and why)?
* What did you do? (Steps to reproduce)
* What happened?
* What were your expectations instead? 
as also listed on https://bugzilla.wikimedia.org/enter_bug.cgi?format=guided
Comment 2 Gerard Meijssen 2014-01-10 15:36:23 UTC
Andre .. ULS functionality is needed for languages that will be used on Wikidata only. These languages will not have any localisations. They will have an autonym, a script and possibly it may be that fonts and input methods are indicated.

An example of a language could be Ahirani (ISO 639-3 ahr). This is a language that requested a Wikipedia and never got included in twn as far as I know.

Thanks,
    GerardM
Comment 3 Amir E. Aharoni 2014-03-21 10:54:03 UTC
Gerard, if I understand correctly, this became a usual practice to add languages as needed for Wikidata. I'm closing this as resolved. Please reopen if I misunderstand something.
Comment 4 Amir E. Aharoni 2014-03-21 14:13:49 UTC
Reopening as a Wikibase repo bug.

After talking to Gerard I found the following: ULS and CLDR already support the languages in which Gerard is interested (for example ota and rwr). To test I did this:
* I added rwr to my Babel template.
* I opened an item page.
* I saw a place to add a label and a description in this language, and the language name was loaded (I guess that it was loaded from CLDR or from ULS's langdb).
* When I actually tried to save the label, I got an error:
Unrecognized value for parameter 'language': rwr

My understanding is that this is a Wikibase repo issue. Please let me know if there is anything else that we can do on the ULS side.
Comment 5 Amir E. Aharoni 2014-03-23 12:29:55 UTC
A little addition: For Maithili (mai) it does work. My guess is that it's because it's recognized in Names.php or because it has a MessagesMai.php file.

In principle it should be possible to add a label in any language without much limitation and it shouldn't depend on Names.php or MessagesMai.php.

I am changing the title to make the bug more focused: It is not about the selection, which is a very generic term, but about adding labels.
Comment 6 Gerard Meijssen 2014-03-23 12:39:39 UTC
At this time we are waiting for three months for rwr (a living language from India) and ota (no longer in use since the nineteen hundreds).

Once rwr is fully functional in Wikidata, other living languages will be added. They do NOT need localisation as a prerequisite. These languages will be fully eligible for a Wikipedia (or any other project) when they conform to the requirements as per the language policy.

I changed the title as it is exclusively about eligible languages. Consequently we are talking about less than 5 languages that apply at this moment.
Comment 7 Amir E. Aharoni 2014-03-27 15:10:36 UTC
From IRC:

aharoni	DanielK_WMDE__: do you have any idea about https://bugzilla.wikimedia.org/show_bug.cgi?id=59905 ?
aharoni	I tried to add a label in rwr and got the error: "Unrecognized value for parameter 'language': rwr"
aharoni	The question is: where do the valid values for this parameter come from?
DanielK_WMDE__	aharoni: Language::fetchLanguageNames()
DanielK_WMDE__	that's where we get the valid language codes from
aharoni	DanielK_WMDE__: Thanks. How hard would it be to enhance it to include more eligible languages?
aharoni	maybe an array constant?
DanielK_WMDE__	aharoni: the only constraint we have is that we need to be able to instantiate a Language object.
aharoni	aha. ok.
DanielK_WMDE__	so, we only support languages that work as interfrace languages
aharoni	hmm. problem.
DanielK_WMDE__	aharoni: it might be sufficient to add it to wgExtraLanguages. but i'm not sure that makes it work as an interface language.
DanielK_WMDE__	aharoni: Language::fetchLanguageNames actually considers $wgExtraLanguageNames. I have no idea how that works with Language::factory.
DanielK_WMDE__	aharoni: maybe adding to code to $wgDummyLanguageCodes too would fix it.
Comment 8 Niklas Laxström 2014-03-27 16:58:45 UTC
(In reply to Amir E. Aharoni from comment #7)
> DanielK_WMDE__	aharoni: the only constraint we have is that we need to be
> able to instantiate a Language object.

Perhaps use Language::isKnownLanguageTag() which guarantees that we know the name of the language at least.
Comment 9 Marius Hoch 2014-04-23 00:03:54 UTC
Adding $wgExtraLanguageNames = array( 'rwr' => 'मारवाड़ी' ); to my local settings made rwr usable and it worked like a charm (couldn't identify anything broken). Question now is whether we want to configure these extra languages for Wikidata via WMF's configuration or go another way.
Comment 10 Amir E. Aharoni 2014-04-23 13:08:07 UTC
(In reply to Marius Hoch from comment #9)
> Adding $wgExtraLanguageNames = array( 'rwr' => 'मारवाड़ी' ); to my local
> settings made rwr usable and it worked like a charm (couldn't identify
> anything broken).

Thanks for testing!

> Question now is whether we want to configure these extra
> languages for Wikidata via WMF's configuration or go another way.

Adding to WMF configuration sounds like the right thing to me. Users of Wikibase on other sites can configure their own languages.
Comment 11 Gerrit Notification Bot 2014-04-24 13:21:29 UTC
Change 129408 had a related patch set uploaded by Hoo man:
Add two languages not supported by MediaWiki to testwikidata

https://gerrit.wikimedia.org/r/129408
Comment 12 Gerrit Notification Bot 2014-04-24 15:47:05 UTC
Change 129408 merged by Hoo man:
Add two languages not supported by MediaWiki to testwikidata

https://gerrit.wikimedia.org/r/129408
Comment 13 Marius Hoch 2014-04-24 15:53:42 UTC
This is live on testwikidata now (for ota and rwr), so please go ahead and test it.

If this works out fine, we can probably go for the real Wikidata soon.
Comment 14 Gerrit Notification Bot 2014-04-25 16:10:23 UTC
Change 129708 had a related patch set uploaded by Hoo man:
Add two languages not supported by MediaWiki to wikidata

https://gerrit.wikimedia.org/r/129708
Comment 15 Aude 2014-04-28 20:31:56 UTC
the only issues I see (i suppose not a blocker) are:

1) seems I can't choose ota in ULS, though uselang works.  It's needed to select a language in order to enter labels, etc. (or alternatively append uselang to the url)

2) ota is a RTL language, so it would be helpful to have that knowledge (I think provided by ULS?) to handle that more properly.
Comment 16 Gerrit Notification Bot 2014-04-28 23:31:27 UTC
Change 129708 merged by Mwalker:
Add two languages not supported by MediaWiki to wikidata

https://gerrit.wikimedia.org/r/129708
Comment 17 Marius Hoch 2014-04-29 00:06:37 UTC
Patch has been deployed... needs follow-up bugs (see comment 15).
Comment 18 Amir E. Aharoni 2014-04-29 16:50:59 UTC
(In reply to Aude from comment #15)
> the only issues I see (i suppose not a blocker) are:
> 
> 1) seems I can't choose ota in ULS, though uselang works.  It's needed to
> select a language in order to enter labels, etc. (or alternatively append
> uselang to the url)

Another option is to add these codes to your Babel template.

> 2) ota is a RTL language, so it would be helpful to have that knowledge (I
> think provided by ULS?) to handle that more properly.

ota was defined as LTR in ULS by mistake. I fixed this already and it should be deployed soon.

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


Navigation
Links