GithubHelp home page GithubHelp logo

Comments (5)

hwhsu1231 avatar hwhsu1231 commented on July 17, 2024 1

I guess that "Brazilian Portuguese" should be enough for pt_BR and we don't to expose the language code there.

But in different platforms, the same language name sometimes uses different language codes:

Therefore, in my opinion, it would be helpful to check the language code corresponding to each language name.

from readthedocs.org.

humitos avatar humitos commented on July 17, 2024

Hi! Thanks for opening this issue. Can you expand a little more on what's the use case for this request? I'm not super familiar with this. Why would it be useful for? 🙏🏼

from readthedocs.org.

hwhsu1231 avatar hwhsu1231 commented on July 17, 2024

Hello, @humitos.

Hi! Thanks for opening this issue. Can you expand a little more on what's the use case for this request? I'm not super familiar with this. Why would it be useful for? 🙏🏼

Suppose that someone want to translate Traditional Chinese.

First of all, there is no limitation for Sphinx to generate Gettext PO files with different language codes (based on this issue). Suppose that a user want to translate "Traditional Chinese in Hong Kong" whose language code is normally zh_HK. However, ReadTheDocs cannot handle zh_HK currently. Therefore, even though he maintains the PO files for zh_HK, it won't work when deployed to ReadTheDocs unless it is supported.

Therefore, this change should be helpful for users who want to translate different languages before getting started. They can check whether their wished language is currently supported by ReadTheDocs in advanced.

NOTE: I also recommend that ReadTheDocs add the currently-supported languages list/table with corresponding Names and Codes in its Documentation. For example:

Supported Languages:

Language Name Language Code
Chinese zh
Simplified Chinese zh_CN
Traditional Chinese zh_TW

from readthedocs.org.

humitos avatar humitos commented on July 17, 2024

I understand that Read the Docs currently doesn't support specific language codes, but that's the other issue you opened at #11417. This issue refers to displaying the language codes in the dropdown selector --which I'm not sure they are going to be useful and will probably just add more confusion. I guess that "Brazilian Portuguese" should be enough for pt_BR and we don't to expose the language code there.

from readthedocs.org.

hwhsu1231 avatar hwhsu1231 commented on July 17, 2024

Besides, I also noticed that there are two "Ukrainian" options in the dropdown menu currently. After checking its source code by pressing Crtl+U, I found that one of them is uk and the other is uk-ua.

<option value="uk">Ukrainian</option>
<option value="uk-ua">Ukrainian</option>

image

If this was intentional and not a mistake from Read the Docs, then I think it is helpful for users to recognize which option is excatly what they want by adding corresponding language codes.

Since some languages of specific countries/regions are so representative, maybe Read the Docs can provide the same language names with different language codes for those languages. For example:

English (en)
English (en-us)
Japanese (ja)
Japanese (ja-jp)
German (de)
German (de-de)
French (fr)
French (fr-fr)
Ukrainian (uk)
Ukrainian (uk-ua)
...etc

By doing this, backward compatibility can be maintained as well.

from readthedocs.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.