Support multi-lingual master data in your app with this performance friendly module.
Use this module if your application is Multi-lingual and you want to have translatable master-data or dropdowns. An example is a Product catalog that you would like to display in the language of the user (Bike/Fiets/Velo).
Features
- Uses native JAVA ResourceBundles
- Performance friendly. Translating does not require database calls
Limitations
- Adding new translations requires a refresh of the resource bundles
- v1.0.0 for MX 7.23.31 or higher
- v2.0.0 for MX 8.18.19 or higher
- v2.0.0 for MX 9
Download the module and add it to your project.
-
Select the Entity that has attributes that you would like to rename (e.g. attribute Name of entity Product).
Change the translatable attribute to a calculated attribute, leave the microflow empty for now.
-
Create an entity that you will use to store translations (e.g. Translation)
-
Create a reference to the object that you are translating (e.g. Translation_Product_Name)
-
Create a reference to the Language of the translation (Translation_Language).
a. Create a microflow that inits/refreshes the resource bundles
b. It must call JA_ResourceBundleFileCreate once for each available language, and pass the translations for that language to the JAVA action
-
It must end with the ResourceBundle_ClearCache action
-
Call that microflow from an After startup action, and also make it available as a button somewhere in your app
-
Implement the calculated attribute microflow: it must call JA_Translation_Retrieve and return the result of that action.
-
Implement a page to edit the data (Product_NewEdit) and add a grid or list to manage the Translations for that object.
-
Run your app, add some translations, refresh the resource bundle
-
Your masterdata is now translated!