The dictionary is used for saving text snippets used on many different occasions. All MyCashflow internal texts, such as email notification contents, are saved in the dictionary. Here you'll learn how to use the dictionary in your online store.
.In a single dictionary entry, you can save multiple text snippets, in which you can also use HTML markup.
All texts saved in the dictionary can also be translated into all languages for which there is a separate language version in the store.
The dictionary is used for translating the online store contents. In multilingual stores, all texts that appear in the store theme must be printed from the dictionary, so that their translations will be visible too.
Adding new entries to the dictionary
Printing dictionary entries
Entries can be retrieved from the dictionary based on their codes. Dictionary entries can be used in multiple text fields in the admin panel.
To print a dictionary entry on the desired page:
- Open the desired page for editing.
- At the desired location, type the dictionary entry's code in the format
{%Code}
. - Save the page, and make sure that the text is displayed correctly in the customer area.
If no entry is found with the indicated code, the code will be printed as such.
The dictionary entry search is case-sensitive.
Editing dictionary entries
Using HTML markup in the dictionary
In the dictionary, you can use HTML markup that enables you to format text as well as to add images and videos to it.
To bold and italicize text:
This is <strong>text in bold</strong> and this is <i>text in italics</i>.
To add an image to the text, first save it in the file directory, and then refer to it by using the <img>
tag:
<img src="/files/images/image.jpg"/>
You can also add Youtube videos to dictionary entries by using the embed code. See also the instructions on where to find the embed code and how to use it.
<iframe width="560" height="315" src="https://www.youtube.com/embed/1nZSYNnF5AQ" frameborder="0" allowfullscreen></iframe>
Translating dictionary entries to other languages
Most of MyCashflow's user interface texts have already been translated to numerous languages. However, you can edit the already existing translations and add translations to your own entries as well.