Skip to content

Commit f196d3e

Browse files
committed
Code block
1 parent 42df8b8 commit f196d3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.overrides/upgrade-python-version.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ We are currently in branch 3.7, and we want to update the strings from 3.8.
77

88
#. Fetch the `lastet commit of 3.8 branch <https://github.com/python/cpython/commit/70fe95cdc9ac1b00d4f86b7525dca80caf7003e1>`_::
99

10-
git fetch --depth 1 origin 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1
10+
git fetch --depth 1 origin 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1
1111

1212
#. Checkout that commit locally::
1313

14-
git checkout 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1
14+
git checkout 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1
1515

1616
#. Clean possible garbage (form previous builds)::
1717

1818
rm -rf ../python-docs-es-pot cpython/Doc/CONTRIBUTING.rst cpython/Doc/upgrade-python-version.rst
1919

2020
#. Create the .po files from the new source code. This will generate all the .po files for version 3.8::
2121

22-
SPHINX_GETTEXT=True sphinx-build -j auto -b gettext -d _build/doctrees . ../python-docs-es-pot
22+
SPHINX_GETTEXT=True sphinx-build -j auto -b gettext -d _build/doctrees . ../python-docs-es-pot
2323

2424
.. note::
2525

@@ -28,12 +28,12 @@ We are currently in branch 3.7, and we want to update the strings from 3.8.
2828

2929
#. Now, we update our translated files form the source language (English) with new strings::
3030

31-
sphinx-intl update --language es --pot-dir ../python-docs-es-pot --locale-dir cpython/locales/
31+
sphinx-intl update --language es --pot-dir ../python-docs-es-pot --locale-dir cpython/locales/
3232

3333
#. Remove `python-docs-cpython/` prefix added by `sphinx-build` to avoid clazy diffs::
3434

35-
sed -i **/*.po -e "s|python-docs-es/cpython/||g"
35+
sed -i **/*.po -e "s|python-docs-es/cpython/||g"
3636

3737
#. Pass `powrap` to make the column with consistent::
3838

39-
powrap --modified
39+
powrap --modified

0 commit comments

Comments
 (0)