get phone locale

Version 1
    This document was generated from CDN thread

    Created by: George Goglidze Berdzenishvili on 31-05-2012 10:23:03 AM
    Hi all,
     
    I'm trying to get the locale that the phone is using.
    if the locale on the phone is NOT set, then it's taken from CommonDeviceConfiguration, if it's not set there, then it's taken from default user locale in enterprise parameters.
     
    same goes for device profile (EM).
     
    what I'm doing at this moment is, I check first the phone/deviceprofile, if there is no locale set then I check if there is Common Device Config assigned, and if not I check enterprise parameters.
     
    This takes few seconds sometimes, and does not give a very good performace for the user.
     
    I think there must be a way to look it up in one lookup.
     
    please advise,
     
    George,
     
    Edit: talking about userlocale not networklocale. although I understand should be quite similar.

    Subject: RE: get phone locale
    Replied by: George Goglidze Berdzenishvili on 01-06-2012 10:45:50 AM
    Hi all,
     
    I'm trying to get the locale that the phone is using.
    if the locale on the phone is NOT set, then it's taken from CommonDeviceConfiguration, if it's not set there, then it's taken from default user locale in enterprise parameters.
     
    same goes for device profile (EM).
     
    what I'm doing at this moment is, I check first the phone/deviceprofile, if there is no locale set then I check if there is Common Device Config assigned, and if not I check enterprise parameters.
     
    This takes few seconds sometimes, and does not give a very good performace for the user.
     
    I think there must be a way to look it up in one lookup.
     
    please advise,
     
    George,
     
    Edit: talking about userlocale not networklocale. although I understand should be quite similar.

    Subject: RE: get phone locale
    Replied by: David Staudt on 04-09-2012 05:57:15 PM
    Can't think of a shortcut, however it should be fairly easy to cache the values in Enterprise Parameters, or perhaps even Common Device Config.