diff options
author | alanwww1 <attila.jakosa@gmail.com> | 2012-05-18 00:29:22 +0200 |
---|---|---|
committer | alanwww1 <attila.jakosa@gmail.com> | 2012-05-18 00:29:22 +0200 |
commit | a6302e3c9c4a10a085b2a0bc353f675388e774b4 (patch) | |
tree | 786b23fed6285e5b7bf22e19739b524e1acd25f7 | |
parent | 1ac987828972e16b0f0c9c64aac24de6f21efd60 (diff) |
[gettext] fixed old bug at comparing fallback language pathnames case sensitive
-rw-r--r-- | xbmc/guilib/LocalizeStrings.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/guilib/LocalizeStrings.cpp b/xbmc/guilib/LocalizeStrings.cpp index cd4d0c0380..ed3317a23a 100644 --- a/xbmc/guilib/LocalizeStrings.cpp +++ b/xbmc/guilib/LocalizeStrings.cpp @@ -62,12 +62,12 @@ bool CLocalizeStrings::LoadSkinStrings(const CStdString& path, const CStdString& CStdString encoding; if (!LoadStr2Mem(path, encoding)) { - if (path == fallbackPath) // no fallback, nothing to do + if (path.Equals(fallbackPath)) // no fallback, nothing to do return false; } // load the fallback - if (path != fallbackPath) + if (!path.Equals(fallbackPath)) LoadStr2Mem(fallbackPath, encoding); return true; @@ -280,12 +280,12 @@ uint32_t CLocalizeStrings::LoadBlock(const CStdString &id, const CStdString &pat bool success = LoadStr2Mem(path, encoding, offset); if (!success) { - if (path == fallbackPath) // no fallback, nothing to do + if (path.Equals(fallbackPath)) // no fallback, nothing to do return 0; } // load the fallback - if (path != fallbackPath) + if (!path.Equals(fallbackPath)) success |= LoadStr2Mem(fallbackPath, encoding, offset); return success ? offset : 0; |