[debian-edu-commits] debian-edu/upstream/ 01/01: update-locale: Make parameterized {t} blocks translatable.
Mike Gabriel
sunweaver at debian.org
Tue Sep 1 11:50:25 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 6616b63caac330175a9b86051c8141bc35695087
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Sep 1 13:50:06 2015 +0200
update-locale: Make parameterized {t} blocks translatable.
---
contrib/update-locale | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/update-locale b/contrib/update-locale
index 25242da..fd9f9ab 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 -e 's/{t}/<?php $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