How to translate phrases | SP Medical - Documentation | JoomShaper

SP Medical

Updated Last: 05 February 2019

How to translate phrases

We agree that translation is a crucial part of the website-localization process. SP Medical 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_spmedical.ini
    (this file include words used in front-end - component view only)
  • language\en-GB\en-GB.mod_spmedical_search.ini
  • language\en-GB\en-GB.mod_spmedical_service.ini
  • en-GB.mod_spmedical_specialists.ini
  • administrator\language\en-GB\en-GB.en-GB.com_spmedical.ini
    (this file include words used in back-end/admin only)

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_SPMEDICAL_SPECIALTIES_SPECIALTY="Specialities"
COM_SPMEDICAL_SPECIALTIES_CONTACT_INFO="Contact Info"
COM_SPMEDICAL_SPECIALTIES_AVAILABLE_HOURS="Available Hours"
COM_SPMEDICAL_SPECIALTIES_REQUEST_BUTTON="Request Appointment"
COM_SPMEDICAL_ABOUT_THE_SPECIALTIES="About The Doctor" COM_SPMEDICAL_SPECIALIST_WORK_EXPERIENCE="Work Experience" COM_SPMEDICAL_SPECIALIST_AWARDS="Awards & Honors" COM_SPMEDICAL_SPECIALIST_EDUCATION="Education & Certification" COM_SPMEDICAL_SPECIALIST_GO_BACK="Back To Specialist/Search" COM_SPMEDICAL_TOTAL_ITEM_FOUND="Specialist Found" COM_SPMEDICAL_MAKE_AN_APPOINTMENT="Make an Appointment with"

Then, after translation, you have to change the filename
from: en-GB.com_spmedical.ini
to: xx-XX.com_spmedical.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.