summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog6
-rwxr-xr-xcontrib/check-internal-format-escaping.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 74e9592f8c2..9996d33eb32 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,9 @@
+2019-04-05 Martin Liska <mliska@suse.cz>
+
+ PR translation/89935
+ * check-internal-format-escaping.py: Properly detect wrong
+ apostrophes.
+
2019-03-11 Martin Liska <mliska@suse.cz>
* check-internal-format-escaping.py: Uncomment apostrophes
diff --git a/contrib/check-internal-format-escaping.py b/contrib/check-internal-format-escaping.py
index 5da56b59dd6..aac4f9edeee 100755
--- a/contrib/check-internal-format-escaping.py
+++ b/contrib/check-internal-format-escaping.py
@@ -56,7 +56,7 @@ for i, l in enumerate(lines):
print('%s: %s' % (origin, text))
elif p.startswith('__builtin_'):
print('%s: %s' % (origin, text))
- if re.search("[a-zA-Z]'[a-zA-Z]", p):
+ if re.search("[^%]'", p):
print('%s: %s' % (origin, text))
j += 1