Skip to content

The "sphinx-intl update" command should not change existing msgstr #50

Open
@greyli

Description

@greyli

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:

$ make gettext
$ sphinx-intl update -p _build/gettext

But I found some unexpected changes (flaskcwg/flask-docs-zh#35):

  • Some Chinese words added as msgid for the API reference docs (ref).
  • The msgid of alt of images was replaced with the translated msgstr (ref).
  • Some multiline 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 of msgid.

Sphinx: 4.0.2
sphinx-intl: 2.0.1
Python: 3.8 (Windows 10)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions