@@ -13,24 +13,27 @@ We are currently in branch 3.7, and we want to update the strings from 3.8.
13
13
14
14
git checkout 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1
15
15
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) ::
17
17
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
19
19
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 ::
21
21
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
23
23
24
24
.. note::
25
25
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/
29
32
30
- #. Remove `python-docs-cpython/ ` prefix::
33
+ #. Remove `python-docs-cpython/ ` prefix added by ` sphinx-build ` to avoid clazy diffs ::
31
34
32
- sed -i **/*.pot -e "s|python-docs-es/cpython/||g"
35
+ sed -i **/*.po -e "s|python-docs-es/cpython/||g"
33
36
34
- #. Rename all the .pot files to .po files ::
37
+ #. Pass ` powrap ` to make the column with consistent ::
35
38
36
- #. Move all the newly pot files created to our repository::
39
+ powrap --modified
0 commit comments