Lines Matching refs:language
14 ** See the License for the specific language governing permissions and
138 void getLocale(char* language, char* region)
142 property_get("persist.sys.language", propLang, "");
146 property_get("ro.product.locale.language", propLang, "en");
149 strncat(language, propLang, 2);
155 * Use the current system locale (language and region) to open the best matching
156 * customization. For example, when the language is Japanese, the sequence might be:
167 char language[3] = "";
175 getLocale(language, region);
176 // Try first with language and region
177 filename.printf("%s-%s-%s.xml", basename.c_str(), language, region);
180 // If not found, try next with just language
181 filename.printf("%s-%s.xml", basename.c_str(), language);