bugGNU gettext - Bugs: bug #64015, Kazakhstan plural forms not add in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64015: Kazakhstan plural forms not add in msginit

Submitter:  Коренберг Марк <socketpair>
Submitted:  Fri 07 Apr 2023 04:55:28 PM UTC
   
 
Category:  Plural forms Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  haible
Open/Closed:  Open

Tue 11 Apr 2023 08:15:52 PM UTC, comment #3: 

I figured out from a guy whose mother tingue is Kazakh. He finally said, that in absolutley all cases where  they speak about any number of items of anything, there is only one form.

Yes, they have two forms (singular and plural) that are used when they speak about single or many items. But when they say about some NUMBER OF ITEMS, the form is only single.

So, regarding ngettext, the formula should be:

"Plural-Forms: nplurals=1; plural=0;\n"

Коренберг Марк <socketpair>
Sat 08 Apr 2023 06:52:26 PM UTC, comment #2: 


> msginit for some reason does not have plural forms


That's because no one so far has clearly explained how the declinations of plurals for in Kazakh grammer.

So far, I've got two different hints:



Before giving your input, please read
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html

Bruno Haible <haible>
Group administrator
Fri 07 Apr 2023 09:30:51 PM UTC, comment #1: 

Just a note: the cldr-plurals tool included in gettext can generate the plural rules for Kazakh:

$ curl -L -o plurals.xml https://github.com/unicode-org/cldr/raw/release-42/common/supplemental/plurals.xml

$ cldr-plurals kk plurals.xml
nplurals=2; plural=(n != 1);

Michele Locati <mlocati>
Fri 07 Apr 2023 04:55:28 PM UTC, original submission:  

msginit for some reason does not have plural forms:

$ echo -e 'msgid ""\nmsgstr ""\n\n' | msginit -i- -l kk_KZ --no-translator -o-
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: kk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Transfer-Encoding: 8bit\n"


Other language do. Few examples:


$ echo -e 'msgid ""\nmsgstr ""\n\n' | msginit -i- -l he_IL --no-translator -o-
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: he\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"


$ echo -e 'msgid ""\nmsgstr ""\n\n' | msginit -i- -l ru_RU --no-translator -o-
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-5\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"


I think it's a bug somewhere. Don't know where and how to fix. Run in Fedora 37.

Коренберг Марк <socketpair>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by mlocati (Posted a comment)
  • -email is unavailable- added by socketpair (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-08 haible StatusNone Need Info
        Assigned toNone haible

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code