SF Patch #2901666 - Add localisation for hint elements in templates

This commit is contained in:
Cristian Rigamonti 2010-01-30 14:41:57 +11:00 committed by Deon George
parent d90fe5a6fa
commit 2416230c61
2 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ class PageRender extends Visitor {
# Is there a hint for this attribute
if ($attribute->getHint())
return sprintf('<acronym title="%s">%s</acronym>',$attribute->getHint(),_('hint'));
return sprintf('<acronym title="%s">%s</acronym>',_($attribute->getHint()),_('hint'));
else
return '';
}

View File

@ -33,7 +33,7 @@ all-mo:
pot:
@po4a-gettextize -o tags="<title> <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