I'm doing the translation for traditional Chinese (zh-TW) (正體中文) recently, but unable to see the translated page on the new website.
The process is 100% done for a few days, but I still don't see the translated content.
Please help with it for the local community. Thanks!
Hi @zerng07,
Thank you very much for your work on the translations.
It seems this is a quirk of flask-babel and babel itself, where it wants the language code to be zh_Hant_TW instead of zh_TW (which Zanata gives).
zh_Hant_TW
zh_TW
Other projects seem to have run into this as well: * https://github.com/ckan/ckan/issues/4413 * https://github.com/flask-admin/flask-admin/issues/403
I'm not sure what the best solution is here. We could just have it use zh_Hant_TW everywhere, but that makes the URLs a bit longer. Or I can try to figure out how to map zh_Hant_TW to zh_TW internally.
Metadata Update from @codeblock: - Issue tagged with: translations
Users are used to see zh_TW since the very first versions. Keeping zh_TW should be better for us. (the first choice.)
If zh_TW cannot be done, or hard to implement, then we move to zh_Hant-TW.
@codeblock Any updates on this issue? Thanks.
hello @piotrdrag , can you please have a look if you can rename this locale zh_TW in zh_Hant-TW for the new website project?
I changed aliases for zh-TW and zh-CN from zh_TW and zh_CN to zh_Hant_TW and zh_Hans_CN, just in the fedora-web project. Let’s see if that helps.
The option for zh_TW (正體中文) and zh_CN (简体中文) translation of the new fedora website disappears now.
It showed zh_TW (正體中文) and zh_CN (简体中文) options before, but could not return the translated content. And now, even the options are missing.
I would like to ask for fixing this issue before Fedora 31 release. Will it be possible? Thanks.
Hi, I would like to ask that if there is anything I can help with the progress for putting zh_TW and zh_CN languages back on the new (not that new now) website?
Thanks.
I made a PR which fixes the issue: https://pagure.io/fedora-web/websites/pull-request/115 . Hope it can be merged asap. The hard work of our translators should be made visible.
I just cheked getfedora site, and I can see https://getfedora.org/zh_Hant_TW/ after choosing from the language selector.
However, https://getfedora.org won't redirect my browser which is using zh-TW locale setting to traditional Chinese content. Users in zh-TW locale have to choose manually. Is that normal?
@zerng07 You're right. Local test in docker works, but not getfedora.org. Cause could be apache rewrite related. Will see if @codeblock has updates.
Log in to comment on this ticket.