Skip to content

Commit

Permalink
CLDR sync.
Browse files Browse the repository at this point in the history
Checked latest CLDR data; No changes required to the L10N class at this
time, but links updated to reflect the current stable version (43->44).
  • Loading branch information
Maikuolan committed Mar 2, 2024
1 parent 34ea8b8 commit d27c4ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions _docs/L10N.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Additionally, as you might've noticed in the above example, the fallback L10N ar

#### What rules to use for what language?

*The information listed in the table below is generally based upon [Unicode's CLDR page on Language Plural Rules](https://www.unicode.org/cldr/charts/43/supplemental/language_plural_rules.html) (which also serves as the general basis for the rules for [grammatical number](https://en.wikipedia.org/wiki/Grammatical_number) supported by the class). Information based upon other sources will be marked accordingly. If any of the listed information is wrong, erroneous, or incomplete, any corrections, additions, etc that you can think of would be invited and welcome (please create a pull request, or create an [issue](https://github.com/Maikuolan/Common/issues) if creating a pull request isn't possible). Please also be aware that I am NOT a professional linguist! If you ask me for the correct rules to use for a particular language, I'll only be able to answer if I'm able to find a reliable source somewhere online to help determine that information.*
*The information listed in the table below is generally based upon [Unicode's CLDR page on Language Plural Rules](https://www.unicode.org/cldr/charts/45/supplemental/language_plural_rules.html) (which also serves as the general basis for the rules for [grammatical number](https://en.wikipedia.org/wiki/Grammatical_number) supported by the class). Information based upon other sources will be marked accordingly. If any of the listed information is wrong, erroneous, or incomplete, any corrections, additions, etc that you can think of would be invited and welcome (please create a pull request, or create an [issue](https://github.com/Maikuolan/Common/issues) if creating a pull request isn't possible). Please also be aware that I am NOT a professional linguist! If you ask me for the correct rules to use for a particular language, I'll only be able to answer if I'm able to find a reliable source somewhere online to help determine that information.*

*†1: Language isn't listed on Unicode's CLDR page, but the required information for it can be found elsewhere (if a single, particular information source is the sole or primarily used information source, it will be linked next to the language, where this mark occurs).*

Expand All @@ -245,7 +245,7 @@ Armenian (հայերեն)<br />Bhojpuri (भोजपुरी)<br />Brazilian P
Bambara<br />Bhutanese/Dzongkha (རྫོང་ཁ)<br />Burmese (ျမန္မာဘာသာ)<br />Chinese (中文) *‡1*<br />Hmong Njua<br />Igbo<br />Indonesian (Bahasa Indonesia)<br />Japanese (日本語)<br />Javanese (Jawa)<br />Kabuverdianu<br />Khmer (ភាសាខ្មែរ)<br />Korean (한국어)<br />Koyraboro Senni<br />Lakota (Lakȟótiyapi)<br />Lao (ພາສາລາວ)<br />Lojban<br />Makonde<br />Malay (Bahasa Melayu)<br />N’Ko (ߒߞߏ)<br />Osage<br />Sakha<br />Sango<br />Sichuan Yi (ꆈꌠꉙ)<br />Thai (ไทย)<br />Tibetan (བོད་སྐད)<br />Toki Pona *[†1](http://tokipona.net/tp/janpije/originallessons-tp3.php)*<br />Tongan (Faka-Tonga)<br />Vietnamese (Tiếng Việt)<br />Wolof (Wollof)<br />Yoruba (Yorùbá) | `int1` | `int1` | Although `int1`+`int1` could *imply* that there aren't plural forms for a particular language, it should be noted that in most cases, plurality can be inferred by context, indicated by [specificity](https://en.wikipedia.org/wiki/Specificity_(linguistics)), [reduplication](https://en.wikipedia.org/wiki/Reduplication), or otherwise determined by some other means. It doesn't mean that there aren't plurals. Rather, it simply means that for those languages, it doesn't mean anything for this particular class.<br /><br />*‡1: Whether simplified (傳統) or traditional (简体), Cantonese (广东话) or Mandarin (普通话), or whatever else, pluralisation rules are the same (AFAICT).*
Belarusian (Беларуская мова)<br />Bosnian (Bosanski)<br />Croatian (Hrvatski)<br />Russian (Русский)<br />Serbian (Српски)<br />Serbo-Croatian<br />Ukrainian (Українська) | `int3Type4` | `int1`
Breton (Brezhoneg) | `int4Type3` | `int1`
Colognian | `int3Type2` | `int1`
Anii<br />Colognian | `int3Type2` | `int1`
Fijian<br />Inari Sami (Anarâškielâ)<br />Inuktitut<br />Lule Sami (Julevsámegiella)<br />Nama (Khoekhoegowab)<br />Northern Sami (Sámegiellaa)<br />Santali (ᱥᱟᱱᱛᱟᱲᱤ)<br />Skolt Sami (Nuõrttsää’m)<br />Southern Sami (Åarjelsaemien gïele) | `int3Type3` | `int1`
Czech (Čeština)<br />Slovak (Slovenčina) | `int3Type9` | `int1`
Danish (Dansk) | `int2Type4` | `fraction2Type1`
Expand Down Expand Up @@ -480,4 +480,4 @@ This means, that in theory, you could have an unlimited number of languages as f
---


Last Updated: 19 September 2023 (2023.09.19).
Last Updated: 2 March 2024 (2024.03.02).
4 changes: 2 additions & 2 deletions src/L10N.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* L10N handler (last modified: 2023.10.12).
* L10N handler (last modified: 2024.03.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -752,7 +752,7 @@ private function fraction2Type2(float $Fraction): int
* ISO 639-1/639-2 language code.
* @link https://www.loc.gov/standards/iso639-2/php/code_list.php
* @link https://cldr.unicode.org/index/cldr-spec/plural-rules
* @link https://www.unicode.org/cldr/charts/43/supplemental/language_plural_rules.html
* @link https://www.unicode.org/cldr/charts/45/supplemental/language_plural_rules.html
*
* @param string $Code An ISO 639-1/639-2 language code.
* @return string An appropriate integer rule to use.
Expand Down

0 comments on commit d27c4ba

Please sign in to comment.