You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying the below methods to generate the .po file for a specific .rst file, instead of the entire folder. But there seem to be no such options with what I am trying.
Try 1: Dint work sphinx-intl update --input-file path/to/file.rst -p build/gettext -l ja
There is no way to generate a .po file for a specific .rst file.
Options for sphinx-intl can be found in --help.
$ sphinx-intl update --help
Usage: sphinx-intl update [OPTIONS]
Update specified language's po files from pot.
For examples:
sphinx-intl update -l de -l ja
sphinx-intl update -l de,ja
Options:
-d, --locale-dir <DIR> locale directories that allow comma separated
string. This option override locale_dir in conf.py
setting if provided. Default is empty list.
[default: locales]
-p, --pot-dir <DIR> pot files directory which is generated by sphinx.
Default is 'pot' directory under '--locale-dir'
path. [default: _build/gettext]
-l, --language <LANG> Target language to update po files. Default is
ALL.
-w, --line-width <WIDTH> The maximum line width for the po files, 0 or a
negative number disable line wrapping [default:
76]
--help Show this message and exit.
I am trying the below methods to generate the .po file for a specific .rst file, instead of the entire folder. But there seem to be no such options with what I am trying.
Try 1: Dint work
sphinx-intl update --input-file path/to/file.rst -p build/gettext -l ja
Try 1: Dint work:
sphinx-intl update -p build/gettext -l ja --source-dir path/to/source/dir path/to/file.rst
Default command which works:
sphinx-intl update -p build/gettext -l ja
The text was updated successfully, but these errors were encountered: