All Rights Reserved © Joget Inc
Joget Workflow v5
Localizing your Joget Workflow
http://facebook.com/jogetworkflowhttp://twitter.com/jogetworkflow
Last Revised on May 2016Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Prerequisites
• Understand various components of Joget Workflow and able to build application as a Joget Workflow App Developer
• Understand Hash Variables
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Content
• Localizing Joget Workflow• User Locales• Localizing Joget Workflow App
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 1
Localizing Joget Workflow
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Localizing Joget into your language
• By default, Joget Workflow has a set languages embedded.• Maintained at translate.joget.org
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
How to inspect available languages?
• Check for .properties files in \tomcat\webapps\jw\WEB-INF\classes
• Check for postfix of the .properties files denoting the locale.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Translation Community
• You are welcome to join the online translation community at translate.joget.org
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Switching Locale
• Settings -> General Settings -> System Locale
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Exercise: Switching Locale
• Switch to one of the available languages found in the system files earlier.
• System may take a few moments to refresh its cache.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Exercise: Importing PO File
• Go to translate.joget.org• Select a language• Download the .po files• Select the downloaded file and upload. Go to
System Settings -> Manage Messages -> Import PO File• Switch to the new locale and observe.
• NOTE: Do not upload .zip bundle file.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 1 Review
• Change Joget Workflow’s locale.• Import new locale.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 2
User Locales
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
User Locale
• Joget Workflow administrator may define multiple locales available for selection by the end users.
• User may opt for their own preferred locale based on the selections above in his/her profile.– E.g. cat navigates the web console in English while clark is able
to navigate the same page in Chinese.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Enable User Locale Options
• Settings -> General Settings
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
User Locale Selection
• Select your preferred locale based in the User Profile.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 2 Review
• Enable User Locale Options.• Experience the changes as End User.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 3
Localizing Joget Workflow App
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Internationalization support on Joget App
• You may support multiple locales on your designed apps as defined in the system settings.
• User may opt for their own preferred locale set by the settings.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Defining message keys
• Go to Properties & Export -> Message• Define set of message keys as shown below.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Utilizing message keys
• By using the #i18 hash variable, we can utilize the key values set earlier.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Viewing the message keys in action
• Depending on the choice of locale the user is in, the message will be displayed accordingly.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Chapter 3 Review
• Internationalize/Localize your own Joget Workflow App.
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Module Review
• Localizing Joget Workflow• User Locales• Localizing Joget Workflow App
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Recommended Further Learning
• Learn more languages?
Joget Inc Internal Use Only
All Rights Reserved © Joget Inc
Stay Connected with Joget Workflow
• http://www.joget.org • http://community.joget.org • http://twitter.com/jogetworkflow • http://facebook.com/jogetworkflow • http://youtube.com/jogetworkflow • http://slideshare.net/joget
Joget Inc Internal Use Only