Welcome Guest, Not a member yet? Register   Sign In
language versus html markup?
#10

Especially for emails I have used special parsing with translations, here is the body only (not full HTML) of a password-recovery message with translations:

Code:
<p>
    <i18n replacement="{{username}}">start_with_hello</i18n>
    <br />
    <br />
    <i18n>reset_password_request_received</i18n>
    <br />
    <br />
    <i18n>reset_password_instructions</i18n>
    <br />
    <a href="{{password_reset_url}}">{{password_reset_url}}</a>
</p>

First I applied Mustache parser, second I applied a parser that uses $this->lang->line() for translating the i18n tags. The idea was from here: https://devzone.zend.com/1441/zend-frame...anslation/

This is an exotic way, probably not interesting for you.
Reply


Messages In This Thread
language versus html markup? - by sneakyimp - 10-14-2016, 12:42 PM
RE: language versus html markup? - by InsiteFX - 10-14-2016, 01:18 PM
RE: language versus html markup? - by sneakyimp - 10-14-2016, 01:29 PM
RE: language versus html markup? - by Ivo Miranda - 10-14-2016, 03:05 PM
RE: language versus html markup? - by sneakyimp - 10-14-2016, 04:41 PM
RE: language versus html markup? - by Ivo Miranda - 10-14-2016, 04:57 PM
RE: language versus html markup? - by sneakyimp - 10-14-2016, 06:14 PM
RE: language versus html markup? - by Ivo Miranda - 10-15-2016, 03:50 AM
RE: language versus html markup? - by PaulD - 10-15-2016, 04:27 AM
RE: language versus html markup? - by ivantcholakov - 10-16-2016, 05:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB