Avatar

Correct answer by
Employee

Again, LCCS comes with a Localization manager, that given an "english" message returns the correct translation.

By default the provided implementation just returns the value passed as input (the english message). You can see it in src/com/adobe/coreUI/localization/LocalizationManagerNoOp.as.

You can provide your own localization manager implementation and enable it like this:

com.adobe.coreUI.localization.Localization.impl = new MyLocalizationManager();

In your implementation if you want to support just one language you can have an object that for each english message returns the appropriate translation.

If you want to support more languages you can load that object from different files each time you select a new language.

To figure out what messages you need to support I am afraid you'll have to search the code for "_lm.getString" and get the strings from there:

For example these are some of the messages in the chat pod:

     _lm.getString("Enter chat here")

     _lm.getString("Send")

     _lm.getString("Send message")

     _lm.getString("color")

     _lm.getString("TO:")

     _lm.getString("Everyone")

View solution in original post