Comments (5)
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:
- "Simplified Chinese" uses
zh_CN
in Sphinx. - "Simplified Chinese" uses
zh
in Material for Mkdocs. - "Traditional Chinese" uses
zh_TW
in Sphinx. - "Traditional Chinese" uses
zh-Hant
in Material for Mkdocs. - "Portuguese" uses
pt-PR
in Crowdin. - "Portuguese" uses
pt
in Sphinx. - ...etc
Therefore, in my opinion, it would be helpful to check the language code corresponding to each language name.
from readthedocs.org.
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.
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.
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.
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>
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)
- API: use object notation for nested objects in example responses
- Notification: clarify _readthedocs/html path solution
- Not available for translation: readthedocs/templates/projects/project_dashboard.html HOT 2
- Question regarding subscriptions "CDN public documentation" HOT 3
- Latest Sphinx (7.3.7) corrupted install on mambaforge HOT 6
- Add support for all possible 'lang_COUNTRY' language codes HOT 1
- Addons: remove the "beta" from it
- Docs: Write initial Addons documentation page HOT 1
- Document serve failed today HOT 6
- Impossible to build `latest` after changing some options and putting them back as before HOT 2
- Submodule documentation is no longer being generated. HOT 1
- Mamba related install issues HOT 8
- ReadTheDocs hosted website marked as potentially hacked by Google HOT 5
- Addons: remove "beta" label from it
- Docs: kill "Choosing between our two platforms" and link to `about.` HOT 8
- Subscriptions: add test for Slack API integration on subscription canceled
- Read the Docs Addons enabled by default and injected Sphinx context removal HOT 6
- Bulk deactivate/hide versions HOT 1
- error: [Errno 2] No such file or directory: 'cargo' when installing build with uv
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readthedocs.org.