From e0c22690f12938ee906c463109bc581d6de59b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 19 Jun 2013 16:02:30 +0000 Subject: [PATCH] Be case insensitive when looking for language catalogs on Windows. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/translation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/translation.cpp b/src/common/translation.cpp index e9bbd0e4eb..2bf6b2151f 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -155,13 +155,13 @@ wxString GetPreferredUILanguage(const wxArrayString& available) { wxString lang(*j); lang.Replace("-", "_"); - if ( available.Index(lang) != wxNOT_FOUND ) + if ( available.Index(lang, /*bCase=*/false) != wxNOT_FOUND ) return lang; size_t pos = lang.find('_'); if ( pos != wxString::npos ) { lang = lang.substr(0, pos); - if ( available.Index(lang) != wxNOT_FOUND ) + if ( available.Index(lang, /*bCase=*/false) != wxNOT_FOUND ) return lang; } }