SF Patch #2901666 - Add localisation for hint elements in templates
This commit is contained in:
parent
d90fe5a6fa
commit
2416230c61
@ -474,7 +474,7 @@ class PageRender extends Visitor {
|
|||||||
|
|
||||||
# Is there a hint for this attribute
|
# Is there a hint for this attribute
|
||||||
if ($attribute->getHint())
|
if ($attribute->getHint())
|
||||||
return sprintf('<acronym title="%s">%s</acronym>',$attribute->getHint(),_('hint'));
|
return sprintf('<acronym title="%s">%s</acronym>',_($attribute->getHint()),_('hint'));
|
||||||
else
|
else
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ all-mo:
|
|||||||
|
|
||||||
|
|
||||||
pot:
|
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 *.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 {} \;
|
@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
|
@echo messages.pot created, you might like to change the header with contents of messages.header
|
||||||
|
Loading…
Reference in New Issue
Block a user