Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Turkish and Trad. Chinese translation for plurals
Forum Updated to NodeBB v4.3 + New Features

Turkish and Trad. Chinese translation for plurals

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 338 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    tr("%n Processors used", nullptr, number)

    Only creates one line in the translation file (i.e. doesn't offer Plural form translation):

    cd60eaab-9491-47bf-9e4f-cdea1180d9b4-image.png

    d06d11ab-09d0-4fe2-8524-0db1bbc5a6c6-image.png

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      The plural information in lupdate is:

      $ lupdate -list-languages
      ...
      Chinese [China]                          zh_CN    nplurals=1; plural=0;
      ...
      English [United States]                  en_US    nplurals=2; plural=(n != 1);
      ...
      Turkish [Turkey]                         tr_TR    nplurals=1; plural=0;
      ...
      Welsh [United Kingdom]                   cy_GB    nplurals=5; plural=(n==0 ? 0 : n==1 ? 1 : (n>=2 && n<=5) ? 2 : n==6 ? 3 : 4);
      

      This seems to be the root of your observation. It is possible that nobody has really looked at the relevant entries for correctness. They come from this source file

      kkoehneK 1 Reply Last reply
      0
      • C ChrisW67

        The plural information in lupdate is:

        $ lupdate -list-languages
        ...
        Chinese [China]                          zh_CN    nplurals=1; plural=0;
        ...
        English [United States]                  en_US    nplurals=2; plural=(n != 1);
        ...
        Turkish [Turkey]                         tr_TR    nplurals=1; plural=0;
        ...
        Welsh [United Kingdom]                   cy_GB    nplurals=5; plural=(n==0 ? 0 : n==1 ? 1 : (n>=2 && n<=5) ? 2 : n==6 ? 3 : 4);
        

        This seems to be the root of your observation. It is possible that nobody has really looked at the relevant entries for correctness. They come from this source file

        kkoehneK Offline
        kkoehneK Offline
        kkoehne
        Moderators
        wrote on last edited by
        #3

        Indeed, Turkish is counted as a "Japanese-like" language with no dedicated plural forms. Note I don't speak any Turkish muself. But I just tried with google translate, and it also doesn't suggest any specific plural forms:

        0 processors used. -> 0 işlemci kullanıldı.
        1 processor used. -> 1 işlemci kullanıldı.
        2 processors used. -> 2 işlemci kullanıldı.
        3 processors used. -> 3 işlemci kullanıldı.

        Is that incorrect?

        Director R&D, The Qt Company

        PerdrixP 1 Reply Last reply
        0
        • kkoehneK kkoehne

          Indeed, Turkish is counted as a "Japanese-like" language with no dedicated plural forms. Note I don't speak any Turkish muself. But I just tried with google translate, and it also doesn't suggest any specific plural forms:

          0 processors used. -> 0 işlemci kullanıldı.
          1 processor used. -> 1 işlemci kullanıldı.
          2 processors used. -> 2 işlemci kullanıldı.
          3 processors used. -> 3 işlemci kullanıldı.

          Is that incorrect?

          PerdrixP Offline
          PerdrixP Offline
          Perdrix
          wrote on last edited by Perdrix
          #4

          @kkoehne I bow to your superior knowledge regarding Turkish - I don't know the answer for Chinese.

          Google translate suggests at least 2 forms for Chinese:

          使用了 1 個處理器 (Shǐyòngle 1 gè chǔlǐ qì)
          使用 2 個處理器 (Shǐyòng 2 gè chǔlǐ qì)
          使用 5 個處理器 (Shǐyòng 5 gè chǔlǐ qì)

          However that didn't back translate well, the best I came up with was this:

          %n 個處理器正在使用中 (%n Gè chǔlǐ qì zhèngzài shǐyòng zhōng) which translates back to English as "%n processor(s) is/are in use"

          David

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved