FoliCon Help

Translations

FoliCon is currently available in the following languages:

  1. English

  2. Hindi

  3. Spanish

  4. Arabic

  5. Russian

  6. Portuguese

FoliCon uses HandyControls way of Resource files to store the strings for each language.

The resource files are located in the FoliCon/Properties/Langs folder, and are named Lang.[language-code].resx.

For example, the Hindi resource file is named Lang.hi.resx.

Adding a new language from IDE

  1. Right-click on the FoliCon/Properties/Langs folder and select Add > New Item...

    Create Resource file
  2. Select Resource File and name it Lang.[language-code].resx

    Select Resource file
  3. Open the newly created resource file and then:

    • Open the Lang.resx file and copy all the strings from there to the new resource file,

    Copy strings
  4. Translate the strings in the new resource file.

  5. Open the Languages.cs enum file from /Models/Enums/Languages.cs and add the new language to the enum.

    Languages enum file
  6. Open the CultureUtils.cs file from /Modules/utils/CultureUtils.cs

    • Add the new Language enum and the language code to the GetCultureInfoByLanguage method.

    CultureUtils file

Adding a new language from IDE

  1. Create a new resource file by either of the following methods:

    1. Right-click on the FoliCon/Properties/Langs folder and select Add > Resources (.resx) >

      Create Resource file
    2. Open any existing resource file and then:

      1. Click on the Add new culture (+) button in the top-right corner of the resource file window.

        Add new culture
      2. Provide culture tag and click on Add.

        Add new culture tag
  2. Now open any of the resource files, and you will see the missing strings for the new language.

  3. Add translations.

  4. Open the Languages.cs > enum file from /Models/Enums/Languages.cs and add the new language to the enum.

    Languages enum file
  5. Open the CultureUtils.cs file from /Modules/utils/CultureUtils.cs

  • Add the new Language enum and the language code to the GetCultureInfoByLanguage method.

    CultureUtils file

Testing the new language

Now you can build and run FoliCon, and the new language should be available in the language dropdown.

Once you have verified that the new language works, you can submit a pull request to add the new language to the main repository.

Adding a new language from Crowdin

FoliCon Crowdin project

Last modified: 24 July 2024