diff options
author | krzys-h <krzys_h@interia.pl> | 2013-03-29 10:03:35 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-03-29 10:03:35 +0100 |
commit | 8777c126de292ca3591ffc8af820638643a19ba2 (patch) | |
tree | eaae9cf6838f10dd4ef4138e2677cc68e5023e11 /src/ui/displayinfo.cpp | |
parent | 85dcc51434629adab3d523d3e1ec3cf1173002ec (diff) | |
download | colobot-8777c126de292ca3591ffc8af820638643a19ba2.tar.gz colobot-8777c126de292ca3591ffc8af820638643a19ba2.tar.bz2 colobot-8777c126de292ca3591ffc8af820638643a19ba2.zip |
Added SatCom translations
Diffstat (limited to 'src/ui/displayinfo.cpp')
-rw-r--r-- | src/ui/displayinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/displayinfo.cpp b/src/ui/displayinfo.cpp index 974cd60..fcc77db 100644 --- a/src/ui/displayinfo.cpp +++ b/src/ui/displayinfo.cpp @@ -989,9 +989,9 @@ void ObjectWrite(FILE* file, ObjectList list[], int i) strcat(line, res); strcat(line, "\\u "); - p = const_cast<char*>(GetHelpFilename(list[i].type)); + p = const_cast<char*>(GetHelpFilename(list[i].type).c_str()); if ( p[0] == 0 ) return; - strcat(line, p+5); // skip "help\" + strcat(line, p+7); // skip "help\?\" p = strstr(line, ".txt"); if ( p != 0 ) *p = 0; strcat(line, ";\n"); @@ -1012,7 +1012,7 @@ void CDisplayInfo::CreateObjectsFile() CInstanceManager* iMan = CInstanceManager::GetInstancePointer(); - file = fopen("help\\objects.txt", "w"); + file = fopen((std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("objects.txt")).c_str(), "w"); if ( file == 0 ) return; list[0].total = 0; // empty list |