Include Page | ||||
---|---|---|---|---|
|
Directions for editing a language file
Include Page | ||||
---|---|---|---|---|
|
Static Text
If you edit a template you may be tempted to just place static text into the template. For example you are putting in a title div into the document like this:
...
If you enter text directly like this into the template, it will generate an i18n (internationalization) violation. An i18n violation means there is a piece of text that the system can not automatically translate when the customer is browsing in a different language. To get around this problem, the text is passed through the i18n system so that it can be tracked and translated. To do this, use the the $i18n object object by calling $i18n.write like the example below.
<div div class="ucColorSubHeader">$i18n.write("checkout.viewcart.yourContactEmailField", "Your contact email")</div>
...
<div class="ucColorSubHeader" $!{i18n.htmlLang("checkout.viewcart.yourContactEmailField")}>${i18n.write("Your contact email")}</div>
...
Directions for editing a language file
...