EN IT

Translations

With Open2b you can create different versions of the store that differ by language. The base template is provided with translations in Italian, English, French, and Spanish.

In this chapter you will see how to:

Edit translation texts

Translation texts can be edited either from the admin via the Template Editor or via FTP.

Edit translations from the admin

  1. Go to the Website section.
  2. Go to the Design subsection.
  3. Click Customize on the template whose translations you want to edit.
  4. Click HTML and CSS in the left column. The template languages will be shown.
  5. Click the language whose translations you want to edit.
  6. Click template.ini to edit translations for texts written directly in the template pages or click system.ini to edit system text translations. The texts to translate will open in the middle of the page.
  7. Translate the texts as desired.
  8. Click Save in the top menu.
  9. Click Save at the top right to make the changes final, or click Save and Apply to make them final and immediately visible on the site.

Edit translations via FTP

Translation changes made in the admin are saved in some files in the template folder. If you need to have the template texts translated by a translator, it can be more convenient to send them the files to translate rather than give them admin access to do the translations.

In the languages folder inside the template folder, there is a subfolder for each language; inside are the two text files with translations: template.ini for texts written directly in the template page and system.ini for system texts such as error messages and warnings.

The two translation files must be edited with a text editor that supports Unicode (UTF-8). On Windows, Notepad is fine. If you send the files to the translator, it is better to compress them first to avoid email programs altering encoding.

Once the translated files are in place, go to the admin in Website > Design > Customize to see if they are correct, then click Save and Apply at the top right to show them on the site.

Change the flags shown on the site

The flags shown on the site are in the template flags folder:

templates/Respy-Wide/flags/

There is one flag for each language/region combination supported by Open2b. For example, for Italian/Italy the flag file is it-IT.png.

To replace the flag, simply overwrite the file with the new flag. You can then check the site preview (in Website > Design > Open Preview) to see if it looks right, then apply the template to the site (in Website > Design > Apply to Site) to show it to visitors.

Make HTML pages translatable

For texts written directly in the template HTML pages to be translatable in different languages, the texts must be enclosed in curly braces:

{Forgot your password?}

The system reads translations from the template.ini file in the language folder. For example, for Italian the translation is found in

templates/Respy-Wide/languages/it/template.ini

In the file there is a line like the following:

Forgot your password?=Hai dimenticato la password?

All text within braces will be translated with the text that follows the equal sign.

If the translated text must contain HTML code, then in the language file use the tilde symbol ( ~ ) instead of the equal sign ( = ):

Forgot your password?~<b>Hai dimenticato la password?</b>

After editing the HTML pages and translations, you can view changes in the preview from the admin in Website > Design > Open Preview. You can then apply the template to the site to make them final.