Management of languages |
AskiaPortalCmn API provide a management of different user languages.
By default, the API is provided with 2 languages ( English - UK and French).
Because translations doesn't change often, it's the rare entities that are in cache for the entire lifetime of the API.
Tip |
---|
For the current user, use the IContextTranslator to translate messages. |
This topic contains the following sections:
The general philosophy of the AskiaPortal is to be extended by modules.
For that reason, modules are allowed to store their own translations in the AskiaPortal database (IModuleSetupSetDefaultTranslations(String, IDictionaryString, String)).
AskiaPortalException is the generic class that provide exception from AskiaPortal.
The main difference with the regular Exception is the ability to provide error message in English (eg. storage in the logs) and translated in the language of the current user (eg. for the user interface).