Hi,

thanks for response :)

Probably the best solution it's the 3.
I'm working on a custom helper to do this.

But only for my curiosity, where is an adapter who can handle HTML without
problems?
At this URL: http://framework.zend.com/manual/en/zend.translate.adapter.html
I have read this:
"37.2.1.8. Zend_Translate_Adapter_XmlTm
The XmlTm Adapter is the Adapter which will be used by customers which do
their layout themself. XmlTm is a format which allows the complete html
source to be included in the translation source, so the translation is
coupled with the layout. XLIFF is a XML file based format, which is related
to XLIFF but its not as simple to read."

But I haven't find any example on how to use this adapter... 


Thomas Weidner-2 wrote:
> 
> Hy Emanuele/Lele,
> 
> the problem is not the adapter but your content.
> 
> As you already know you have 3 options:
> 1.) Change your translation to %% instead of %... I mentioned this before
> 2.) Change the local code for View_Helper_Translate as you stated... but 
> this will not be integrated into core for other reasons and leads to 
> problems when upgrading to a newer ZF version. (Never change a foreign 
> library :-) )
> 3.) Extend the existing helper and modify the needed function.
> 
> 1. is simplest... 3. is best from oop point of view.
> It's your decision
> 
> Greetings
> Thomas Weidner, I18N Team Leader
> http://www.thomasweidner.com
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_View_Helper_Translate-problem-with-HTML-in-translated-text-tp15716917s16154p15732113.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to