Skip to content

Commit f71c1fd

Browse files
committed
rst2po.py
1 parent 3be6970 commit f71c1fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.migration/rst2po.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# rst2po.py
2+
# Script to migrate the Python official tutorial that we have already translated in PyAr
3+
# (https://github.com/PyAr/tutorial) from reStructuredText to the new official translation format (.po)
4+
#
5+
# It parses the .rst and compare sentence/paragraph by sentence/paragraph and if the match is exact,
6+
# and there is no translation for that sentence/paragraph it updates the .po file with the translated text
7+
# from the .rst file.
8+
9+
import polib # fades

0 commit comments

Comments
 (0)