sphinx-doc / sphinx-doc-translations

translated docs for sphinx official document
Other
21 stars 16 forks source link

Bump sphinx-intl[transifex] from 2.0.1 to 2.1.0 #18

Closed tkoyama010 closed 1 year ago

tkoyama010 commented 1 year ago

Fix option errors in bumping sphinx-intl[transifex] from 2.0.1 to 2.1.0. See https://github.com/pyvista/pyvista-tutorial-translations/pull/24 .

shimizukawa commented 1 year ago

@tkoyama010 I would like to take over this PR as I want to adjust it to fit the new sphinx-intl.

shimizukawa commented 1 year ago

@tkoyama010 done. now the update.sh script updates po files (tested on my local)

tkoyama010 commented 1 year ago

@shimizukawa Thanks a lot for your help!

shimizukawa commented 1 year ago
$ export SPHINXINTL_TRANSIFEX_ORGANIZATION_NAME=sphinx-doc
$ export SPHINXINTL_TRANSIFEX_PROJECT_NAME=sphinx-doc
$ export SPHINXINTL_TRANSIFEX_USERNAME=sphinxjp
$ export SPHINXINTL_TRANSIFEX_TOKEN=...
$ sh locale/update.sh 
+ dirname locale/update.sh
+ cd locale
+ sphinx-intl create-transifexrc
/home/codespace/.transifexrc already exists, skipped.
+ sphinx-build -T -b gettext ../sphinx/doc pot
Running Sphinx v6.2.0+/7a092643c2
--(snip)--
build succeeded, 22 warnings.

The message catalogs are in pot.
+ sphinx-intl update-txconfig-resources -p pot -d .
adding pots...  [####################################]  100%  None                                                       
+ cat .tx/config
--(snip)--