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

Unable to generate .po files for specific .rst file #85

Closed
sachin-suresh-rapyuta opened this issue Apr 28, 2023 · 1 comment
Closed
Labels

Comments

@sachin-suresh-rapyuta
Copy link

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

@shimizukawa
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants