Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5095)

Unified Diff: chrome/common/l10n_util_win.cc

Issue 45054: Block Oriya locale on Windows XP.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/l10n_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/l10n_util_win.cc
===================================================================
--- chrome/common/l10n_util_win.cc (revision 12453)
+++ chrome/common/l10n_util_win.cc (working copy)
@@ -5,6 +5,8 @@
#include "chrome/common/l10n_util.h"
#include "chrome/common/l10n_util_win.h"
+#include "base/win_util.h"
+
namespace l10n_util {
int GetExtendedStyles() {
@@ -31,4 +33,10 @@
}
}
+bool IsLocaleSupportedByOS(const std::wstring& locale) {
+ // Block Oriya on Windows XP.
+ return !(LowerCaseEqualsASCII(locale, "or") &&
+ win_util::GetWinVersion() < win_util::WINVERSION_VISTA);
+}
+
} // namespace l10n_util
« no previous file with comments | « chrome/common/l10n_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698