HomeGenie Forum

Development => Translations => Topic started by: Gene on December 01, 2014, 03:04:23 PM

Title: How to translate HomeGenie user interface
Post by: Gene on December 01, 2014, 03:04:23 PM
First check if a locale definition for your language is already in place:

https://github.com/genielabs/HomeGenie/tree/master/BaseFiles/Common/html/locales (https://github.com/genielabs/HomeGenie/tree/master/BaseFiles/Common/html/locales)

for instance, if you are looking for spanish translation, you'll se a file named es.json (es is the country code used for Spain, for a complete list of country codes see: http://it.wikipedia.org/wiki/ISO_3166-1_alpha-2 (http://it.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Click on the file to open it. Then, if you see that the file still contains some untranslated entries, you can download it by clicking on the "Raw" button.
This file is a text file, formatted used JSON syntax, so you can edit it with any text editor.

If language definition file for your country is not already present, you can create your own starting from the en.json file and then renaming it by replacing the "en" prefix with the two letters code of your country.

After completing the translation, post a message here with the file attached and it will be included in the next HomeGenie release.

Thanks for contributing!

Title: Re: How to translate HomeGenie user interface
Post by: dani on December 01, 2014, 07:25:13 PM
Ok Gene,

I will do it for French

Cheers.
Dani