Managing Language

The purpose of this page is to help you install and use iDempiere's multi-language abilities.

Download Translation Packs

Link to translation packs

Support Local Region (Locale) Defaults (internal user experience)

There are times when you want certain fields formatted a specific way to match your country's or region's standards. Examples include date and number formatting. Here are the details regarding how iDempiere works: Let's assume a simple scenario: Another (alternative) option is to simply update the "en_US" Language to set the ISO Country Code field to the desired code ("ZA" in the above example).

Enable a new System Language (internal user experience)

Here is a quick summary for installing French (more info here). Obtain iDempiere language packs here
  1. log in as system admin
  2. Open the Language window and find the language of choice (fr_FR in my case)
    1. Flag fr_FR as a "System Language" = 'Y'
    2. Click the "Language Maintenance" button and add missing translations
  3. Open the Translation Import/Export process
    1. Do not choose a client
    2. Choose the "fr_FR" language
    3. Do not choose a table
    4. Click on the import button (not the import zip)
    5. Navigate to the /opt/idempiere-server/data/ directory and choose the fr_FR folder
    6. Note that not all translations are complete. The import process will tell you what files were missing at the bottom of the process.
  4. Run the "Synchronize Terminology" process
Here is a more detailed example for installing German in iDempiere. ADempiere reference: Here is a tutorial that does a good job of explaining how to install a language pack. This will handle translating many of the fields and options in ADempiere and iDempiere.

Communicate with Business Partners in their Language (BP experience)

This option assumes you have enabled the applicable language (above). Go to the Client window and enable the "Multi Lingual Documents" check box. When you enable Multi Lingual Documents, translation tabs will appear in the following windows: When you log in using a system language what has translation details/records for the above items, the system will show you the translated data. When your customers/vendors have a BP language that has a translation for one of the above items, the print formats will show the translated data.

Default Country Based on Language

The Client record chooses the language. The Language chooses the ISO Country Code. The Country should default from the ISO Country Code. The Country window => Region subtab has a default field.

Choosing a new Base Language

There is a process called "Change Base Language". Play with this process on a test server first. Please note that you must uncheck your current language as a System Language before you attempt to make your language the Base Language. Here is the feature detail There are two reasons why you would change this setting:
  1. You operate in an installation where you only use one language (not US) and you want to simplify the system so that your language is the default. This helps you sort of ignore the _trl tables.
  2. You operate in a more global installation and you need all languages (including US) to be treated as equals. To do this, you create a dummy language xx_XX and make it the base language. Doing so ensures that your language maintenance operating procedures are the same for all languages (including en_US). Said another way, your procedures will not differ based on language.

Creating a New Window with Its Own Translation

https://groups.google.com/d/msg/chuboe-id-training/GMWJwNScezg/y57cYCedIQAJ

Translation Tools

Creating a new System Language Translation Pack from Scratch

NOTE: given the language tools developed in iDempiere, I do not believe the below is needed; however, I am keeping for reference just in case. These instructions assume you are creating a Turkish translation pack for contribution back to iDempiere. Swap in your language as needed. Note that you can get the language abbreviation for your language record from the Language window. Perform the following steps:
  1. Enable the Turkish language using the above instructions. Be sure to press the "Language Maintenance" button to create missing translations. Note this will create the translation records in English by default.
  2. Log in as the System Administrator role and start translating in the following windows
    1. Element - note: ask me to write SQL to help you propagate the changes to all columns and fields for you. This will save you lots of time!!
    2. Window, Tab & Field - only focus on the Window and Tabs - the fields will be updated by the previous line.
    3. Report and Process
    4. Form
    5. Info Window
    6. Menu - ask me to write SQL to update the menu from the above changes (form, info, report, process, etc...)
  3. To distribute your changes
    1. Create an SSH terminal connection to your iDempiere server.
    2. Create a new language folder in /opt/idempiere-server/data by issuing the following command:
      1. sudo -u idempiere mkdir /opt/idempiere-server/data/tr_TR
    3. Log into iDempiere as the System Administrator.
    4. Open the Translation Import/Export window and export the Turkish translations to your new folder
      1. Leave the Client field blank
      2. Choose Turkish as the language
      3. Leave the table blank
      4. Click the Export button
      5. Choose the newly created /opt/idempiere-server/data/tr_TR folder
The below instructions should not be needed; however, I do not want to delete them. They are used to copy the contents of one language translation pack and apply them to another.
  1. Go back to your SSH terminal connection and perform the following commands:
    1. cd /opt/idempiere-server/data/tr_TR
    2. sudo su idempiere # so that the below commands execute as the idempiere user
    3. for f in *en_US*; do mv -v "$f" "${f//en_US/tr_TR}"; done # rename files
    4. grep -rl "en_US" | xargs sed -i "s|en_US|tr_TR|g" # replace text in files
    5. exit # exit the idempiere user session
  2. Manipulate the files as you need to perform your translations
  3. Perform the steps listed here to make your new translations active.