michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko; michael@0: michael@0: import java.util.Locale; michael@0: michael@0: import android.content.Context; michael@0: import android.content.res.Configuration; michael@0: import android.content.res.Resources; michael@0: michael@0: public interface LocaleManager { michael@0: void initialize(Context context); michael@0: String getAndApplyPersistedLocale(Context context); michael@0: void correctLocale(Context context, Resources resources, Configuration newConfig); michael@0: void updateConfiguration(Context context, Locale locale); michael@0: String setSelectedLocale(Context context, String localeCode); michael@0: boolean systemLocaleDidChange(); michael@0: }