diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2008-08-13 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:56 +0300 |
commit | 173c07e166fdf6fcd20f18ea73008f1b628945df (patch) | |
tree | 13ebea85cdc4c16ae93714ff0627ee9f91ad7e08 /CPP/7zip/UI/FileManager/LangUtils.cpp | |
parent | 3901bf0ab88106a5b031cba7bc18d60cdebf7eef (diff) |
4.59 beta
Diffstat (limited to 'CPP/7zip/UI/FileManager/LangUtils.cpp')
-rwxr-xr-x | CPP/7zip/UI/FileManager/LangUtils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CPP/7zip/UI/FileManager/LangUtils.cpp b/CPP/7zip/UI/FileManager/LangUtils.cpp index bf75df00..0591c73c 100755 --- a/CPP/7zip/UI/FileManager/LangUtils.cpp +++ b/CPP/7zip/UI/FileManager/LangUtils.cpp @@ -27,13 +27,13 @@ void ReloadLang() if (!g_LangID.IsEmpty() && g_LangID != L"-") { UString langPath = g_LangID; - if (langPath.Find('\\') < 0) + if (langPath.Find(WCHAR_PATH_SEPARATOR) < 0) { - if (langPath.Find('.') < 0) + if (langPath.Find(L'.') < 0) langPath += L".txt"; UString folderPath; if (GetProgramFolderPath(folderPath)) - langPath = folderPath + UString(L"Lang\\") + langPath; + langPath = folderPath + UString(L"Lang" WSTRING_PATH_SEPARATOR) + langPath; } g_Lang.Open(langPath); } @@ -94,12 +94,12 @@ void LoadLangs(CObjectVector<CLangEx> &langs) UString folderPath; if (!::GetProgramFolderPath(folderPath)) return; - folderPath += L"Lang\\"; + folderPath += L"Lang" WSTRING_PATH_SEPARATOR; NWindows::NFile::NFind::CEnumeratorW enumerator(folderPath + L"*.txt"); NWindows::NFile::NFind::CFileInfoW fileInfo; while (enumerator.Next(fileInfo)) { - if (fileInfo.IsDirectory()) + if (fileInfo.IsDir()) continue; CLangEx lang; UString filePath = folderPath + fileInfo.Name; |