aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/update-translations.py
Commit message (Collapse)AuthorAgeFilesLines
* devtools: Handle Qt formatting characters edge-case in update-translations.pyWladimir J. van der Laan2017-02-101-0/+8
| | | | | | | | | | If both numeric format specifiers and "others" are used, assume we're dealing with a Qt-formatted message. In the case of Qt formatting (see https://doc.qt.io/qt-5/qstring.html#arg) only numeric formats are replaced at all. This means "(percentage: %1%)" is valid (which was introduced in #9461), without needing any kind of escaping that would be necessary for strprintf. Without this, this function would wrongly detect '%)' as a printf format specifier.
* Use portable #! in python scripts (/usr/bin/env)Matthew King2016-06-261-1/+1
|
* Merge pull request #7253Wladimir J. van der Laan2016-01-041-3/+6
|\ | | | | | | 0d59589 Bugfix: update-translations: Allow numerus translations to omit %n specifier (usually when it only has one possible value) (Luke Dashjr)
| * Bugfix: update-translations: Allow numerus translations to omit %n specifier ↵Luke Dashjr2015-12-251-3/+6
| | | | | | | | (usually when it only has one possible value)
* | qt: Final translation update before 0.12 forkWladimir J. van der Laan2015-12-021-1/+12
| | | | | | | | | | | | | | | | - Add new translations (finally, after a long time) - update-translation script was not considering new translations - oops - fixed this, also remove (nearly) empty translations - Update translation process, it was still describing the old repository structure
* | Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|/
* Add deeper XML checking to update-translation scriptWladimir J. van der Laan2014-09-011-14/+134
| | | | | | | | | | - Catch problems such as mismatched formatting characters. Remove messages that can give problems at runtime. - Also remove unfinished/untranslated messages, they just take up space in the ts and waste parsing time. Fixes #4774.
* devtools: add a script to fetch and postprocess translationsWladimir J. van der Laan2014-05-011-0/+66
Run this script from the root of the repository to update all translations from transifex. It will do the following automatically: - create a transifex configuration file - fetch all translations - post-process them into valid and committable format