Wiki

Clone wiki

Easyappointment / Add or modify languages

Adding a new language or modify an existing language is simple, EasyAppointment uses the same type of language files used by Joomla.

MODIFY A LANGUAGE

Administration.

To change the language in the administration area of EasyAppointment, you must make changes to the file located at /administrator/components/com_easyappointment/language/ followed by your language code (for example for English "en-GB", for French "fr-FR",etc).

In our example we want to modify the French language, so the location of your files should be /administrator/components/com_easyappointment/language/fr-FR/

Inside this folder you will find 2 files: fr-FR.com_easyappointment.ini fr-FR.com_easyappointment.sys.ini

Remember that we are modifying the French language, so if we would've modified English would be en-GB.com_easyappointment.ini and en-GB.com_easyappointment.sys.ini To modify a word, just open those two files and modify. Remember you must save your language files encoded as UTF-8 without BOM.

Front-end.

To change the language in the front-end area of EasyAppointment, you must make changes to the file located at /components/com_easyappointment/language/ followed by your language code (for example for English "en-GB", for French "fr-FR", etc).

In our example we want to modify the French language, so the location of your files should be /components/com_easyappointment/language/fr-FR/

Inside this folder you will find 2 files: fr-FR.com_easyappointment.ini fr-FR.com_easyappointment.sys.ini

Remember that we are modifying French language, so if we would've modified English would be en-GB.com_easyappointment.ini and en-GB.com_easyappointment.sys.ini

To modify a word, just open those two files and modify them. Remember you must save your language files encoded as UTF-8 without BOM.

ADD NEW LANGUAGE

Administration.

First step: create a folder inside /administrator/components/com_easyappointment/language/. The name of the folder must be related to your new language, in our example we'll be adding the French language so the name of the folder will be "fr-FR". If we want Italian then the folder should be named "it-IT", if Spanish "es-ES", if German "de-DE" and so on. If you want to add a different language, check your language code (ISO 639-1 Language Codes).

Second step: inside the newly created folder add 2 new files: fr-FR.com_easyappointment.ini fr-FR.com_easyappointment.sys.ini

So now you should have inside /administrator/components/com_easyappointment/language/fr-FR/ those 2 files.

Third step: copy the content from the original English language file to the file you want to create so in our case, from /administrator/components/com_easyappointment/language/en-GB/en-GB.com_easyappointment.ini to /administrator/components/com_easyappointment/language/fr-FR/fr-FR.com_easyappointment.ini

and from /administrator/components/com_easyappointment/language/en-GB/en-GB.com_easyappointment.sys.ini to /administrator/components/com_easyappointment/language/fr-FR/fr-FR.com_easyappointment.sys.ini

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

Front-end.

First step: create a folder inside /components/com_easyappointment/language/. The name of the folder must be related to your new language, in our example we'll be adding the French language so the name of the folder will be "fr-FR". If we want Italian then the folder should be named "it-IT", if Spanish "es-ES", if German "de-DE" and so on. If you want to add a different language, check your language code (ISO 639-1 Language Codes).

Second step: inside the newly created folder add 2 new files: fr-FR.com_easyappointment.ini fr-FR.com_easyappointment.sys.ini

So now you should have inside /components/com_easyappointment/language/fr-FR/ those 2 files.

Third step: copy the content from the original English language file to the file you want to create so in our case, from /components/com_easyappointment/language/en-GB/en-GB.com_easyappointment.ini to /components/com_easyappointment/language/fr-FR/fr-FR.com_easyappointment.ini

and from /components/com_easyappointment/language/en-GB/en-GB.com_easyappointment.sys.ini to /components/com_easyappointment/language/fr-FR/fr-FR.com_easyappointment.sys.ini

Last step: translate the content from your newly created files from English to the language you want, in our case French.

Remember you must save your language files encoded as UTF-8 without BOM.

Updated