From 2416230c6129ff1c4a79f93e766ba01508d81b9b Mon Sep 17 00:00:00 2001 From: Cristian Rigamonti Date: Sat, 30 Jan 2010 14:41:57 +1100 Subject: [PATCH] SF Patch #2901666 - Add localisation for hint elements in templates --- lib/PageRender.php | 2 +- tools/po/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PageRender.php b/lib/PageRender.php index 6dbb1bc..44b6873 100644 --- a/lib/PageRender.php +++ b/lib/PageRender.php @@ -474,7 +474,7 @@ class PageRender extends Visitor { # Is there a hint for this attribute if ($attribute->getHint()) - return sprintf('%s',$attribute->getHint(),_('hint')); + return sprintf('%s',_($attribute->getHint()),_('hint')); else return ''; } diff --git a/tools/po/Makefile b/tools/po/Makefile index b7ba216..3b19f7f 100644 --- a/tools/po/Makefile +++ b/tools/po/Makefile @@ -33,7 +33,7 @@ all-mo: pot: - @po4a-gettextize -o tags=" <description> <display>" -o tagsonly=1 -f xml $(TEMPLATEFILES) -p messages.pot + @po4a-gettextize -o tags="<title> <description> <display> <hint>" -o tagsonly=1 -f xml $(TEMPLATEFILES) -p messages.pot @find ../../ -name *.php -exec xgettext --keyword=_ -L PHP -j --omit-header -o messages.pot -s {} \; @find ../../ -name *.inc -exec xgettext --keyword=_ -L PHP -j --omit-header -o messages.pot -s {} \; @echo messages.pot created, you might like to change the header with contents of messages.header