more G-Labs products

Author Topic: How to translate HomeGenie user interface  (Read 3506 times)

December 01, 2014, 03:04:23 PM
Read 3506 times

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
First check if a locale definition for your language is already in place:

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).
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!


December 01, 2014, 07:25:13 PM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Ok Gene,

I will do it for French

Cheers.
Dani


Sorry, this topic is locked. Only admins and moderators can reply.