Translation | SP Property - Documentation | JoomShaper

SP Property

Updated Last: 26 January 2019

Translation

Adding a new language or modify an existing language is simple, SP Property uses the same type of language files (.ini) used by Joomla!. This extension includes several files (.ini) which contains all of the English terms we have used; this allows our users to only edit one file in order to be able to translate our templates to any language in the world.

Inside language files you will find a phrase "Sqft"  (COM_SPPROPERTY_PROPERTIES_SQFT) - which used and presented after property price.

To change the language in the administration area of SP Property, you have to translate two files:

  •  administrator\language\en-GB\en-GB.com_spproperty.ini (this file include all main admin panel phrases)
  •  administrator\language\en-GB\en-GB.com_spproperty.sys.ini  (admin menu phrases)

For front-end phrases you have to do this same process with following files:

  • language\en-GB\en-GB.com_spproperty.ini
  • language\en-GB\en-GB.mod_spproperty_search.ini
  • language\en-GB\en-GB.mod_spproperty_properties.ini
  • language\en-GB\en-GB.mod_spproperty_agents.ini
  • language\en-GB\en-GB.mod_spproperty_emi_calculator.ini
  • language\en-GB\en-GB.mod_spproperty_categories.ini

Remember that instead of changing the original file, you can to make a copy of this file (from the server, template quickstart or component package). Open the .ini file with a text editor which is capable of handling UTF-8. Each HTML will be good for this purpose. You can also use free tools, like: Notepad++  if you are using a Windows operating system. A good start is to make sure that you’re using UTF-8 encoding. Now, you can translate selected entries into your preferred or native language. Edit the file and translate phrases on the right side of the equals (=) sign to the new language. The left side of each line (left of the equals sign) must remain the same – they are needed by the system. 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 !

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

Where xx-XX is a LANG-PREFIX, for example es-ES – for Spanish (Español).

Last step: translate the content from your newly created files from English to the language you want, in our case Spanish. Remember you must save your language files encoded as UTF-8 without BOM.