Extension talk:CLDR

About this board

MediaWiki - CLDR language codes problem for Konkani

2
The Discoverer (talkcontribs)

There is a mismatch between the language codes for Konkani in MediaWiki and CLDR; due to this, the localised text for Konkani is not appearing in Topic Containers and other places. I have created a ticket to correct this in CLDR. I would be grateful if the Wikimedia community could support this situation in any way.

https://unicode-org.atlassian.net/browse/CLDR-17121

The Discoverer (talkcontribs)
Reply to "MediaWiki - CLDR language codes problem for Konkani"
André Costa (WMSE) (talkcontribs)

A clarification. This only supports the ISO 639-1 codes right? Not the three-letter ISO 639-2 codes which exist for a wider array of languages. Or is that a limitation in how {{#language}} is implemented?

Nemo bis (talkcontribs)

No, this supports (aspirationally) any ISO 639-3 locale. The best overview is probably .

André Costa (WMSE) (talkcontribs)

Thanks. That list seems to be using a mixture between ISO 639-1 codes and ISO 639-3 codes. Looks specifically like it only uses the 639-3 code if there is no 639-1 code.

Meanwhile our implementation through {{#language:}} only seems to support the 639-1 codes.

Example:

Language 639-1 639-3 CLDR {{#language:<639-1>}} {{#language:<639-3>}}
Afar aa aar aa Qafár af aar
Acoli - ach ach - ach
Nemo bis (talkcontribs)

That's an unwarranted conclusion; we simply don't have that language name yet. There's plenty of ISO 639-3 codes.

André Costa (WMSE) (talkcontribs)

Ok. Just found a 639-3 example which works (粵語). Still would a clarification for Usage and parameters saying something which boils down to "ISO 639 = ISO 639-1 if exists otherwise ISO 639-3" be correct?

Nemo bis (talkcontribs)

Should be in general, as it's the policy described in and we follow the same (as most software in the world, I believe). You may just link Manual:Language#Language code.

André Costa (WMSE) (talkcontribs)

That was teh one I was looking for =). Added a comment now. Thanks

Yug (talkcontribs)

I created a converter iso 639-3 to iso 639-2 and another iso 639-2 to iso 639-3, see Template:To_iso_639-3 and Template:To_iso_639-2 sur la base de en:List_of_ISO_639-1_codes. This pose several issues since there is more 639-3 than 639-2. It's not perfect, but it helps us to convert iso 639-3 "mar" into "mr" thanks to {To_iso_639-2} then into "Bangla" thanks to {{#language:mr|en}}.

Reply to "ISO 639"

Mapping country names to ISO codes

1
أحمد (talkcontribs)

The return value of CountryNames::getNames seems to be an array of country names in the desired language, i.e the language whose code is passed in the call. Is the array an indexed array of codes and names? Otherwise, how can one use this to map codes to names? My use case is an extension that provides a parser function {{#country:countrycode [, languagecode]}} to return a country name in the preferred language, or if no language is specified, in the content language. much like

Reply to "Mapping country names to ISO codes"
Sokote zaman (talkcontribs)
[wikicod@server cldr]$ php rebuild.php

PHP Warning:  require_once(/home/wikicod/domains/wikicod.ir/public_html/w/extensions/cldr/cldr.php): failed to open stream: No such file or directory in /home/wikicod/domains/wikicod.ir/public_html/w/extensions/cldr/rebuild.php on line 42

PHP Fatal error:  require_once(): Failed opening required '/home/wikicod/domains/wikicod.ir/public_html/w/extensions/cldr/cldr.php' (include_path='/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/console_getopt:/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/mail:/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/mail_mime:/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/net_smtp:/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/net_socket:/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/pear-core-minimal/src:/home/wikicod/domains/wikicod.ir/public_html/w/vendor/pear/pear_exception:.:/usr/local/php72/lib/php') in /home/wikicod/domains/wikicod.ir/public_html/w/extensions/cldr/rebuild.php on line 42
Sokote zaman (talkcontribs)
php rebuild.php
Wargo (talkcontribs)

Download "master" version of this extension.

Sokote zaman (talkcontribs)
php rebuild.php
Sokote zaman (talkcontribs)

tank for you

php rebuild.php
Wargo (talkcontribs)

As you see in section "Updating data", you download file core.zip and then unpack to extensions directory. You can run commands under "example" when you are in "extensions/cldr" directory.

Sokote zaman (talkcontribs)

I did according to the "Updating data" section but to no avail

Wargo (talkcontribs)

Move files extracted from "core.zip" to "core" subdirectory of "extensions/cidr".

Sokote zaman (talkcontribs)

He had done this before:Move files extracted from "core.zip" to "core" subdirectory of "extensions/cidr".

It is useless

Wargo (talkcontribs)

Whay you have in "extensions/cidr/core"?

Sokote zaman (talkcontribs)
Sokote zaman (talkcontribs)

[wikicod@server extensions]$ ls cldr/core apache-license.txt common ICU-LICENSE readme.html unicode-license.txt

Reply to "error rebuild.php"
Readmanhe (talkcontribs)

Hello, I am trying to rebuild CLDR, but the rebuild.php throws

PHP Fatal error: require_once(): Failed opening required '/var/www/html/extensions/cldr/cldr.php'


Where is cldr.php file?

67.161.15.17 (talkcontribs)

Got the same problem

Sokote zaman (talkcontribs)

Got the same problem

Wargo (talkcontribs)

Download "master" version of this extension.

Reply to "Where is CLDR.php?"

Request to add name label to Ottoman Turkish

2
WhisperToMe (talkcontribs)
Speravir (talkcontribs)
Reply to "Request to add name label to Ottoman Turkish"
Liuxinyu970226 (talkcontribs)
Reply to "Timezone names"
Pigsonthewing (talkcontribs)
Reply to "Nys"

extension folder cldr or Cldr?

1
Andreas Plank (talkcontribs)
Reply to "extension folder cldr or Cldr?"

How to add translations?

1
Plover-Y (talkcontribs)

Excuse me, but would you please teach me how to add translations (language names) ? Thanks. --~~~~

Reply to "How to add translations?"
There are no older topics