<property name="resource.bundle.locales" value="zh,fr,es"/>
It is a list of language tags. English locale(en) is the ROOT that will be
included by system. They are used as locales for creating Mail Templates.
see System Configuration for detail.
Core Resource Bundles | Module Resource Bundles | App Resource Bundles | Site Resource Bundle HierarchyLike other modules, resource bundles of built-in modules (System, FTP, Website) are module resource bundles.
moduleRootDir/src/main/resources/bundle messages.properties messages_zh.properties messages_fr.propertiesThe messages properties include I18N translations for entity types and their properties, commands and various messages. In addition, they also include I18N translations for permissions, roles(if any) and form design names. For example,
# Permissions HR.ModuleAll=HR: All Permissions HR.ModuleView=HR: View HR.ModuleInit=HR: Initialize HR.ManageADDR=HR: Manage Addresses HR.ManageDEPT=HR: Manage Departments HR.ManageEMP=HR: Manage Employees HR.ViewEMP=HR: View Employees HR.ManageEC=HR: Manage Expense Claims HR.ViewEC=HR: View Expense Claims HR.ApproveEC=HR: Approve Expense Claims # Roles Role.HRManager=HR Manager # Form Designs FormDesign.ExpenseClaimStandard=Expense Claim Form (Standard) FormDesign.ExpenseClaimNew=Expense Claim Form (New)A permission belongs to a module and its name is prefixed with module name. But the scope of a role is its DataAccessUnit, and it can be assigned permissions from different modules. When displaying a role, if its description is not set, then the message key Role.<roleName> of resource bundle, if found, will be used as role description.
appRootDir/resources/bundle/ messages.properties messages_zh.properties messages_fr.properties messages_es.propertiesBuild script will change the bundle base name to app.bundle.messages, which will be in runtime classpath after application is deployed. See Project Build: Application Resources for more info.
Refer to Website module documentation for details.
war { from ("/path/to/myResourceBundles.jar") { into 'WEB-INF/lib' } }
CMOBILECOM_AF_DIR/build-common/test-lib/runtimeOnlyfor test automation for the new locale.