Using zend framework, i, like many others, send emails. Now I use the presentation template for writing. fx welcome.phtml welcome to my website
Hi <?php print $this->name; ?><br />
Welcome to my site.<br /><br />
Regards <?php print $this->siteName; ?>
Now translating this would be a few ways. I could put the whole wall of text in translate () ;? > All html will follow, so this is a dumb idea.
Secondly, I can place each email template in the language folder, fx./languages/en_en/emails/welcome.phtml and translate the whole file, html will still follow, but it will be easier. The disadvantage is that if I have 40 languages, and html to change the template, I have to edit 40 files.
Thirdly, I can put each line in print $ this-> translate (); but it will give a lot of lines.
Are there any other ways? Or what is the best way to do this?
A small question: what should I do if I have a wall with text with a little formatting? maybe 10 lines of text, and some words are in bold and a few
? The whole wall of text in translation () ;? >?
Hi
source
share