l10n_util_android.h revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef UI_BASE_L10N_L10N_UTIL_ANDROID_H_
6#define UI_BASE_L10N_L10N_UTIL_ANDROID_H_
7
8#include <jni.h>
9
10#include <string>
11
12#include "base/string16.h"
13#include "ui/base/ui_export.h"
14
15namespace l10n_util {
16
17// Return the current default locale of the device.
18UI_EXPORT std::string GetDefaultLocale();
19
20UI_EXPORT string16 GetDisplayNameForLocale(const std::string& locale,
21                                           const std::string& display_locale);
22
23bool RegisterLocalizationUtil(JNIEnv* env);
24
25}  // namespace l10n_util
26
27#endif  // UI_BASE_L10N_L10N_UTIL_ANDROID_H_
28