Hi all,
I got this problem in using i18n:attr, i read I18n:transformer and try to use it but it does not work!!! :( , i also try to find answers in mail archives but the answers seem not work for me too so ...
i want to have different languages on my buttons (input type="submit") when i changing languages on my pages although i can change the remains of the pages!!!
i defined an xml file with
<create><i18n:text i18n:key="create">Create</i18n:text></create>
in my xsl file :
i tried cases like these:
1. <input type="submit" name="create" value="create" i18n:attr="value"/>
2. <input type="submit" name="create" value="{create}" i18n:attr="value"/>
3. <input type="submit" name="create" value="create" i18n:attr="{value}"/>
but i just display 'create'!!! not Create in english and TM in VN
and when i press the button it informs errror:
Undeclared prefix in name: "i18n:attr".
description org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: org.xml.sax.SAXParseException: Undeclared prefix in name: "i18n:attr".
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
so now i dont know how to deal with it??!!! :(
do you know how to solve it??
Thanks so much !!!