mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 713464: Application Locale should not be reset from CPP. [r=mfinkle]
This commit is contained in:
parent
591a8d6a69
commit
2c67630f17
@ -1147,12 +1147,17 @@ public class GeckoAppShell
|
||||
}
|
||||
|
||||
public static void setSelectedLocale(String localeCode) {
|
||||
/* We're not using this, not need to save it (see bug 635342)
|
||||
SharedPreferences settings =
|
||||
/* Bug 713464: This method is still called from Gecko side.
|
||||
Earlier we had an option to run Firefox in a language other than system's language.
|
||||
However, this is not supported as of now.
|
||||
Gecko resets the locale to en-US by calling this function with an empty string.
|
||||
This affects GeckoPreferences activity in multi-locale builds.
|
||||
|
||||
//We're not using this, not need to save it (see bug 635342)
|
||||
SharedPreferences settings =
|
||||
GeckoApp.mAppContext.getPreferences(Activity.MODE_PRIVATE);
|
||||
settings.edit().putString(GeckoApp.mAppContext.getPackageName() + ".locale",
|
||||
localeCode).commit();
|
||||
*/
|
||||
Locale locale;
|
||||
int index;
|
||||
if ((index = localeCode.indexOf('-')) != -1 ||
|
||||
@ -1169,6 +1174,7 @@ public class GeckoAppShell
|
||||
Configuration config = res.getConfiguration();
|
||||
config.locale = locale;
|
||||
res.updateConfiguration(config, res.getDisplayMetrics());
|
||||
*/
|
||||
}
|
||||
|
||||
public static int[] getSystemColors() {
|
||||
|
Loading…
Reference in New Issue
Block a user