equal
deleted
inserted
replaced
101 jstring java::util::getLocaleImpl(JNIEnv* env) |
101 jstring java::util::getLocaleImpl(JNIEnv* env) |
102 { |
102 { |
103 JELOG2(EUtils); |
103 JELOG2(EUtils); |
104 |
104 |
105 // microedition.locale |
105 // microedition.locale |
106 switch (User::Language()) { |
106 ILOG1(EUtils, "User::Language: %d", User::Language()); |
|
107 // KDialectMask enables support for operator specific language variants |
|
108 switch (User::Language() & KDialectMask) { |
107 case ELangAfrikaans: |
109 case ELangAfrikaans: |
108 return S60CommonUtils::NativeToJavaString(*env, KMicroeditionLocaleAfrikaans); |
110 return S60CommonUtils::NativeToJavaString(*env, KMicroeditionLocaleAfrikaans); |
109 case ELangAlbanian: |
111 case ELangAlbanian: |
110 return S60CommonUtils::NativeToJavaString(*env, KMicroeditionLocaleAlbanian); |
112 return S60CommonUtils::NativeToJavaString(*env, KMicroeditionLocaleAlbanian); |
111 |
113 |