[debian-edu-commits] debian-edu/upstream/ 01/01: fine-tune .tpl gettext extraction for parameterized {t} blocks
Mike Gabriel
sunweaver at debian.org
Tue Sep 1 12:19:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository gosa-plugin-mailaddress.
commit 49af55968967fd1bfcafda8cc1f15e12be229282
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Sep 1 14:18:49 2015 +0200
fine-tune .tpl gettext extraction for parameterized {t} blocks
---
contrib/update-locale | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/update-locale b/contrib/update-locale
index fd9f9ab..2aa5ee3 100755
--- a/contrib/update-locale
+++ b/contrib/update-locale
@@ -38,7 +38,7 @@ generate_po() {
for template in $(find . -name '*.tpl'); do
echo "* converting .tpl files: $(basename $template)"
- sed -re 's!\{t(|\ [a-z0-9]+=.*)\}(.*)\{/t\}!<?php $t=_("\2{/t}!g;s!\{/t\}!");?>!g' $template > $template.new
+ sed -re 's!\{t(|\ [a-z0-9]+=.*)\}([^\{.]*)\{/t\}!<?php $t=_("\2{/t}!g;s!\{/t\}!");?>!g' $template > $template.new
mv $template.new $template
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/gosa-plugin-mailaddress.git
More information about the debian-edu-commits
mailing list