-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
The "sphinx-intl update" command should not change existing msgstr #50
Comments
At present, your .pot file is built with language=zh_CN. So it contains Chinese text as msgid.
This is a bug of babel; a library that sphinx-intl uses to re-generate .po file. And I don't know a workaround for this topic:
Could you file an issue to the project, please? |
My colleague in the translation team has already submitted the issue to babel (python-babel/babel#787). Thanks! |
Hi ,I use these command for translate trino document :
I get lot of .po files,but |
@sak1 is it supposed to be |
Hi! I followed the instructions in the Sphinx docs to generate the
.pot
and.po
files in this repo.Now after the
.rst
source has changed, I tried to update the.po
files with the following commands:But I found some unexpected changes (flaskcwg/flask-docs-zh#35):
msgid
for the API reference docs (ref).msgid
of alt of images was replaced with the translatedmsgstr
(ref).msgstr
was reordered based on the position of the English word (ref).The last one brings quite a bit messy (see the ref for the example). Is there any method to disable the update command to change the existing
msgstr
? I didn't found any related issues or documentation. And the-w
option only changes the max line length ofmsgid
.Sphinx: 4.0.2
sphinx-intl: 2.0.1
Python: 3.8 (Windows 10)
Thanks!
The text was updated successfully, but these errors were encountered: