Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese translation / 中文本地化翻译 #11

Open
zoziha opened this issue Dec 1, 2021 · 2 comments · Fixed by #121
Open

Chinese translation / 中文本地化翻译 #11

zoziha opened this issue Dec 1, 2021 · 2 comments · Fixed by #121
Assignees
Labels
i18n: Chinese Relevant for Chinese translation, this thread might be in Chinese ;) i18n Localisation and internationalisation of the documentation

Comments

@zoziha
Copy link
Collaborator

zoziha commented Dec 1, 2021

This thread tracks the translation of the documentation to Chinese. Feel free to post either in Chinese or English in this threads, whatever seems most appropriate.

此线程跟踪文档的中文翻译。无论看起来是否合适,都可以随时在此帖子中以中文或英文发布消息。


Issues:

@awvwgk awvwgk added i18n Localisation and internationalisation of the documentation i18n: Chinese Relevant for Chinese translation, this thread might be in Chinese ;) labels Dec 1, 2021
@zoziha
Copy link
Collaborator Author

zoziha commented Jul 23, 2023

@henilp105 @awvwgk

I noticed that the Chinese translation website "https://fpm.fortran-lang.org/cn/index.html" is not accessible, as well as "https://fpm.fortran-lang.org/zh_cn/index.html", check the source code:

{%- for lang in ('zh_CN', 'cs', 'de', 'en', 'es', 'fr', 'ja', 'nl', 'pt', 'ru') %}
{%- if lang == language %}
<b>{{lang.lower()[-2:]}}</b>
{%- else %}
<a href="{{"https://fpm.fortran-lang.org/" + ('' if lang == 'en' else lang.lower()[-2:]) + "/" + pagename +".html" }}">{{lang.lower()[-2:]}}</a>
{%- endif %}

I found that the use of lang.lower()[-2:] here means that zh_CN is replaced with cn.
Actually only "https://fpm.fortran-lang.org/zh_CN/index.html" is accessible.

henilp105 added a commit to henilp105/fpm-docs that referenced this issue Jul 23, 2023
@henilp105
Copy link
Member

Thanks @zoziha , I have patched this in PR #121 .

@awvwgk awvwgk closed this as completed in db7a00d Jul 23, 2023
awvwgk pushed a commit that referenced this issue Jul 23, 2023
* Update sphinx.yml

* Update sphinx.yml

* Update sphinx.yml

* Update sphinx.yml

* fix: redirection

* fix: redirection

* fix: redirection

* fix: redirection

* fix: redirection

* fix: #11 bug in lang code
@zoziha zoziha reopened this Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n: Chinese Relevant for Chinese translation, this thread might be in Chinese ;) i18n Localisation and internationalisation of the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants