Difference between revisions of "Localization"

From iDempiere en
Line 25: Line 25:
 
* Look at ad_element_Trl for an example of columns you need in your table
 
* Look at ad_element_Trl for an example of columns you need in your table
 
* The key of the table must be ticked 'parent link'
 
* The key of the table must be ticked 'parent link'
−
* Add primary key constraint with Parent_ID And Language as keys
+
* Make sure that the SQL definition of the table has a primary key defined (Parent_ID And Language as columns)
 +
** Otherwise, "No primary key found for table ..." error will be thrown.
 
* Add a translation tab to your window, tab & field, with 'translation tab' ticked
 
* Add a translation tab to your window, tab & field, with 'translation tab' ticked
 
* Set the tab level to 1, or the applicable tab level
 
* Set the tab level to 1, or the applicable tab level
 +
* Set the parent link column
 
* The column(s) to be translated (on the main table, not the _Trl table) must be ticked on the table & column as 'translated' (see under technical)
 
* The column(s) to be translated (on the main table, not the _Trl table) must be ticked on the table & column as 'translated' (see under technical)
 
* Login to System and open the '''Language''' window, find your language, and click on '''language maintenance'''. Select 'Add missing translations'
 
* Login to System and open the '''Language''' window, find your language, and click on '''language maintenance'''. Select 'Add missing translations'

Revision as of 17:21, 2 March 2016

Localization

Please read the references given in the reference section below.

Translation Import/Export

  • Use to quickly edit translations
  • Found in menu option Translation Import/Export
  • Don't select table - all translation tables are exported
  • Export / Import as a ZIP file
  • Only centrally maintained fields are exported for ad_field
  • Do synchronize terminology after import, to set the names of centrally maintained fields
  • java.util.zip.ZipException: error in opening zip file: when used linux ark to compress file, using command line worked fine.

Enabling translations on client documents

  • Tick Multi Lingual Translations on the Client window (set the language as well.) Run synchronize doc translations, restart app server. Translation tab shows on document window in client.

Adding support for translation to a table

  • Remember to enable multi lingual translations for your client (see above)
  • Create table ending with _Trl
  • NB _Trl must begin with capital T
  • Look at ad_element_Trl for an example of columns you need in your table
  • The key of the table must be ticked 'parent link'
  • Make sure that the SQL definition of the table has a primary key defined (Parent_ID And Language as columns)
    • Otherwise, "No primary key found for table ..." error will be thrown.
  • Add a translation tab to your window, tab & field, with 'translation tab' ticked
  • Set the tab level to 1, or the applicable tab level
  • Set the parent link column
  • The column(s) to be translated (on the main table, not the _Trl table) must be ticked on the table & column as 'translated' (see under technical)
  • Login to System and open the Language window, find your language, and click on language maintenance. Select 'Add missing translations'
  • Remember: new records are not added using the translation window, but rather using add missing translations.

How the default country on the location dialog is determined

  • Lookup the client's language under the client window.
  • Find the language under System, in the Language window.
  • Note the ISO Country code
  • Find the country by ISO Country Code, under System, in Country, Region & City window

Use translations to quickly change labels

Jasper report translations

Use resource bundles to translate reports.

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.