Lines Matching defs:locale
375 * Read the persistent locale. Inspects the following system properties
378 * (1) persist.sys.locale
381 * (3) ro.product.locale
382 * (4) ro.product.locale.language/region
386 * to M. The same goes for ro.product.locale.language/region as well.
390 const std::string locale = getProperty("persist.sys.locale", "");
391 if (!locale.empty()) {
392 return locale;
412 const std::string productLocale = getProperty("ro.product.locale", "");
417 // If persist.sys.locale and ro.product.locale are missing,
418 // construct a locale value from the individual locale components.
419 const std::string productLanguage = getProperty("ro.product.locale.language", "en");
420 const std::string productRegion = getProperty("ro.product.locale.region", "US");
618 char localeOption[sizeof("-Duser.locale=") + PROPERTY_VALUE_MAX];
828 /* Set the properties for locale */
830 strcpy(localeOption, "-Duser.locale=");
831 const std::string locale = readLocale();
832 strncat(localeOption, locale.c_str(), PROPERTY_VALUE_MAX);