Commit Graph

18 Commits

Author SHA1 Message Date
Rémi Verschelde e259bf8bbb style: Fix PEP8 whitespace issues in Python files
Done with `autopep8 --select=E2,W2`, fixes:

- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-02 22:28:28 +01:00
Rémi Verschelde 561c1f17a1 style: Start applying PEP8 to Python files, indentation issues
Done with `autopep8 --select=E1`, fixes:

- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-02 22:26:55 +01:00
Rémi Verschelde b3bf3c392a i18n: Fix string that broke msgmerge
(cherry picked from commit 2fb5a00305)
2016-10-09 18:21:59 +02:00
Rémi Verschelde 48a7216f99 i18n: Update and merge translation templates
Also switched the wrapping length to 79 chars instead of 80,
which seems to be what Weblate uses by default (as well as Poedit).
2016-06-19 14:13:31 +02:00
Rémi Verschelde f4ee46124a i18n: Sort files to parse alphabetically
This should ensure that python produces the same tools.pot for every user,
and thus that the .po will not get useless diffs upon merge.
2016-05-31 18:24:41 +02:00
Rémi Verschelde 405094c167 i18n: Enable parsing RTR strings
TTR is used in the editor, and RTR is for content that it shared between
the editor and games (e.g. in scenes/gui)
2016-05-30 19:30:39 +02:00
Rémi Verschelde e0e52055bc i18n: Fix parsing bug while adding locations to the template
Also sync the template and PO files to reflect this change
+ the recent TTR additions/removals.
2016-05-30 00:21:36 +02:00
Rémi Verschelde 71f18fdaae i18n: Add makefile to handle translation updates 2016-05-28 13:00:57 +02:00
Rémi Verschelde 87e8e8d372 i18n: Add gettext header template to the POT 2016-05-21 20:37:13 +02:00
Rémi Verschelde 8d300cc8a8 i18n: Disable line numbers in location context
Can be toggled on with --with-line-nb.
2016-05-21 18:59:27 +02:00
Rémi Verschelde 1c8a447cb6 i18n: Add location of duplicate strings to the context 2016-05-21 18:59:27 +02:00
Rémi Verschelde bcd4d8a8a0 i18n: Cosmetic fixes to extract script 2016-05-21 18:33:40 +02:00
Rémi Verschelde f33460aa23 i18n: Make .pot paths hopefully platform-independent 2016-05-17 23:37:20 +02:00
Rémi Verschelde 3a26e14a2b i18n: Simple extract.py improvements
Also sync the template with current source.
2016-05-17 19:29:32 +02:00
Rémi Verschelde fbe5a5e4a7 i18n: remove trailing spaces in script 2016-05-04 15:31:47 +02:00
Juan Linietsky dd419e8efa forgot this 2016-05-04 09:56:24 -03:00
Juan Linietsky 1e37dcd88b template is now pot 2016-05-04 09:52:51 -03:00
Juan Linietsky f338a0c944 base for translation 2016-05-04 09:47:47 -03:00