How to translate phrases | SP Easy Image Gallery - Documentation | JoomShaper

SP Easy Image Gallery

Updated Last: 17 July 2020

How to translate phrases

We agree that translation is a crucial part of the website-localization process. SP Easy Image Gallery like any other Joomla! component use language files. It includes .ini files which contains all of the English terms we have used. All you have to do is to translate file(s):

  • language\en-GB\en-GB.com_speasyimagegallery.ini
    (this file include words used in front-end)
  • administrator\language\en-GB\en-GB.com_speasyimagegallery.ini
    (this file include words used in back-end)

Translate the strings to your language and save them as with native language prefix and copy to your language folder. File (.ini) must be saved as UTF-8 without BOM encoding.

You don’t have to translate all strings from that file, select only those you really need. Each translated string must be enclosed by double quotes, always ! Here are example phrases from front-end .ini file only.

COM_SPEASYIMAGEGALLERY_NO_ALBUMS="No Albums"
COM_SPEASYIMAGEGALLERY_NO_IMAGES="No Images"
COM_SPEASYIMAGEGALLERY_ERROR_ALBUM_NOT_FOUND="Album not found!"
COM_SPEASYIMAGEGALLERY_PHOTOS="Photos"
COM_SPEASYIMAGEGALLERY_PHOTO="Photo"

Then, after translation, you have to change the filename
from: en-GB.com_speasyimagegallery.ini
to: xx-XX.com_speasyimagegallery.ini

Where xx-XX is a LANG-PREFIX, for example, es-ES – for Spanish (Español). Once the phrases inside file have been translated and file renamed, you can copy your language file into your "native" language directory using an FTP client.