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