i18n.h revision 4a5e2dc747d50c653511c68ccb2cfbfb740bd5a7
1// Copyright (c) 2010 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 BASE_WIN_I18N_H_
6#define BASE_WIN_I18N_H_
7#pragma once
8
9#include <string>
10#include <vector>
11
12#include "base/basictypes.h"
13
14namespace base {
15namespace win {
16namespace i18n {
17
18// Adds to |languages| the list of user preferred UI languages from MUI, if
19// available, falling-back on the user default UI language otherwise.  Returns
20// true if at least one language is added.
21bool GetUserPreferredUILanguageList(std::vector<std::wstring>* languages);
22
23// Adds to |languages| the list of thread, process, user, and system preferred
24// UI languages from MUI, if available, falling-back on the user default UI
25// language otherwise.  Returns true if at least one language is added.
26bool GetThreadPreferredUILanguageList(std::vector<std::wstring>* languages);
27
28}  // namespace i18n
29}  // namespace win
30}  // namespace base
31
32#endif  // BASE_WIN_I18N_H_
33