Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sat, 21 Sep 2019 14:50:05 UTC Commit: dc9a9e418bdccf131dc8c77a128037607703de28 https://github.com/geany/www.geany.org/commit/dc9a9e418bdccf131dc8c77a128037...
Log Message: ----------- Improve "msgfmt" statistics parsing
The previous regex didn't consider singular forms of the translated and fuzzy statistics.
Modified Paths: -------------- static_docs/generate_i18n_statistics.py
Modified: static_docs/generate_i18n_statistics.py 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -24,7 +24,7 @@
STATISTICS_REGEXP = re.compile( - r'(?P<translated>\d+) translated messages(, (?P<fuzzy>\d+) fuzzy translations)?(, (?P<untranslated>\d+) untranslated messages)?') # noqa: E501 pylint: disable=line-too-long + r'(?P<translated>\d+) translated messages?(, (?P<fuzzy>\d+) fuzzy translations?)?(, (?P<untranslated>\d+) untranslated messages?)?') # noqa: E501 pylint: disable=line-too-long LAST_TRANSLATOR_REGEXP = re.compile(r'^"Last-Translator: (?P<name>[\w -]+)\s*<?.+')
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).