@@ -13,24 +13,27 @@ We are currently in branch 3.7, and we want to update the strings from 3.8.
1313
1414 git checkout 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1
1515
16- #. Create the .po files from the new source code. This will generate all the .po files for version 3.8 ::
16+ #. Clean possible garbage (form previous builds) ::
1717
18- SPHINX_GETTEXT=True sphinx-build -j auto -b gettext -d _build/doctrees . ../pot
18+ rm -rf ../python-docs-es-pot cpython/Doc/CONTRIBUTING.rst cpython/Doc/upgrade-python-version.rst
1919
20- #. Now we have to merge our current translation .po files with the new .po files that come from upstream ::
20+ #. Create the .po files from the new source code. This will generate all the .po files for version 3.8 ::
2121
22- pomerge --from-files **/*.po --to-files ../pot/**/*. pot
22+ SPHINX_GETTEXT=True sphinx-build -j auto -b gettext -d _build/doctrees . ../python-docs-es- pot
2323
2424 .. note::
2525
26- In ../pot, we will have the new .pot files with new strings from 3.8 branch,
27- with all the translations from our current 3.7 branch.
28- If there wasn't a translation found, it is left unstranlated.
26+ In `../python-docs-es-pot` directory, we will have the new .pot files with new strings from 3.8 branch.
27+ All these strings will be *unstranslated* at this point.
28+
29+ #. Now, we update our translated files form the source language (English) with new strings::
30+
31+ sphinx-intl update --language es --pot-dir ../python-docs-es-pot --locale-dir cpython/locales/
2932
30- #. Remove `python-docs-cpython/ ` prefix::
33+ #. Remove `python-docs-cpython/ ` prefix added by ` sphinx-build ` to avoid clazy diffs ::
3134
32- sed -i **/*.pot -e "s|python-docs-es/cpython/||g"
35+ sed -i **/*.po -e "s|python-docs-es/cpython/||g"
3336
34- #. Rename all the .pot files to .po files ::
37+ #. Pass ` powrap ` to make the column with consistent ::
3538
36- #. Move all the newly pot files created to our repository::
39+ powrap --modified
0 commit comments