i18n.h 1.1 KB

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