1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HowTo: Translate HyperCon to your language

Discussion in 'Development' started by Brindosch, 17 April 2016.

Thread Status:
Not open for further replies.
  1. Brindosch

    Brindosch Administrator Administrator

    Messages:
    585
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
    It is possible to translate HyperCon to every language you want.


    1. Guidelines
    • The length of the phrases should not be longer as the current. It will blow up the left panel.
    • UTF-8: HyperCon read all translation files in utf-8. So please use this charset.

    2. Github Location

    Please copy the content of "language.properties" at our hypercon repository and create another .properties file. Insert your country code at the end of the filename (not the extension).
    Example: language_de.properties for germany or language_nl.properties for the netherlands.

    3. Translate
    The language file is seperated in each section of the corresponding HyperCon-Tab and a general section.
    The general section contains phrases that are often used (like "Enabled") and phrases that are not part of a Tab (system messages).

    On the left side you see the internal name and on the right side the translation.
    Now you need to translate everything behind the "="

    Example:
    Code:
     
    ######### EXTERNAL TAB #########
    external.effect.booteffect.directorylabel              = Directory: 
    external.effect.booteffect.durationlabel               = Duration [ms]:
    
    Where Directory: and Duration [ms]: is the part you need to translate (with ":")

    Please just create a pull request if you translated the whole file, we can´t accept half translated files.

    Thank you for your contribution!
     
    Last edited: 17 April 2016
    • Like Like x 3
Thread Status:
Not open for further replies.