aboutsummaryrefslogtreecommitdiffstats
path: root/english/po/wmlxgettext.pl
diff options
context:
space:
mode:
authorDamyan Ivanov <dmn@debian.org>2018-08-27 11:56:15 +0000
committerDamyan Ivanov <dmn@debian.org>2018-08-28 06:40:28 +0000
commit98c05f778df318374eaa15c885fa2b63fb282e57 (patch)
tree9384e813597d38cef686de094f95dca089809f65 /english/po/wmlxgettext.pl
parent414817c2c7b493a15eb6436250d9fb9547a1617f (diff)
wmlxgettext: un-escape percents
Percents that are followed by numbers need to be escaped when in <gettext> tag, because wml interprets them as positional arguments. This means wmlgettext needs to un-escape them when creating the msgid, like wml does.
Diffstat (limited to 'english/po/wmlxgettext.pl')
-rwxr-xr-xenglish/po/wmlxgettext.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/english/po/wmlxgettext.pl b/english/po/wmlxgettext.pl
index 6501555c317..318cfc3add9 100755
--- a/english/po/wmlxgettext.pl
+++ b/english/po/wmlxgettext.pl
@@ -16,6 +16,7 @@ sub escape {
$text =~ s/"/\\"/g;
$text =~ s/\n/\\n/g;
$text =~ s/\t/\\t/g;
+ $text =~ s/%%/%/g;
return $text;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy