summaryrefslogtreecommitdiffstats
path: root/ui/base/l10n/l10n_util_android.h
blob: 467bf178b913c5ee5d6303a6a25bef5bfbe1e5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_BASE_L10N_L10N_UTIL_ANDROID_H_
#define UI_BASE_L10N_L10N_UTIL_ANDROID_H_

#include <jni.h>

#include <string>

#include "base/strings/string16.h"
#include "ui/base/ui_export.h"

namespace l10n_util {

// Return the current default locale of the device.
UI_EXPORT std::string GetDefaultLocale();

UI_EXPORT string16 GetDisplayNameForLocale(const std::string& locale,
                                           const std::string& display_locale);

UI_EXPORT bool RegisterLocalizationUtil(JNIEnv* env);

}  // namespace l10n_util

#endif  // UI_BASE_L10N_L10N_UTIL_ANDROID_H_