Hi!
In WDK/DFC Apps the current locale is stored in dmSession variable "DM_SESSION_DD_LOCALE",
How do I know the current locale in xCP2?
- in Stateless process from Repository Read?
- or in ExtJS function?
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
Hi,
Do you mean the current browser local that your application is running.
if so you may get this by creating a XCP javaScript function that get the variable xcp.language;
here you are a sample code that may help: ( of course to be included as an extension point user EMC white paper )
Ext.namespace ('xcptools.functions');xcptools.functions.GetBrowserLang = function (defaultlocale) { if (xcp && xcp.language){ return xcp.language; } return defaultlocale;};
please note that XCP user navigation is not really related to your data dictionary locale but to the browser language
hope this helps
Otman
Thanks, Otman.
I found a way to solve the problem with out-of-box functions only:
- output_text widget filling from dropdown_list current value LABEL, where dropdown - is a Picklist with one item. The Label it's item - localizing in application_XX.properties as (ru/kk/en)
But your way (if make his) - shorter and more correctThanks for the idea!