[geany/www.geany.org] dc9a9e: Improve "msgfmt" statistics parsing

Enrico Tröger git-noreply at xxxxx
Sat Sep 21 14:50:05 UTC 2019

Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sat, 21 Sep 2019 14:50:05 UTC
Commit:      dc9a9e418bdccf131dc8c77a128037607703de28

Log Message:
Improve "msgfmt" statistics parsing

The previous regex didn't consider singular forms of the translated
and fuzzy statistics.

Modified Paths:

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).

More information about the Commits mailing list