summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/displayinfo.cpp6
-rw-r--r--src/ui/edit.cpp2
-rw-r--r--src/ui/maindialog.cpp4
-rw-r--r--src/ui/studio.cpp2
4 files changed, 7 insertions, 7 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
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp
index e4bb3a3..e60a040 100644
--- a/src/ui/edit.cpp
+++ b/src/ui/edit.cpp
@@ -786,7 +786,7 @@ void CEdit::HyperJump(std::string name, std::string marker)
if ( name[0] == '%' ) {
filename = GetProfile().GetUserBasedPath(name, "") + ".txt";
} else {
- filename = "/help/" + name + ".txt";
+ filename = std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + "/" + name + std::string(".txt");
}
if ( ReadText(filename) )
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index ced4324..9060e8b 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -1819,7 +1819,7 @@ pos.y -= 0.048f;
pe->SetHighlightCap(false);
pe->SetFontType(Gfx::FONT_COURIER);
pe->SetFontSize(Gfx::FONT_SIZE_SMALL);
- pe->ReadText("help/authors.txt");
+ pe->ReadText(std::string("help/") + m_app->GetLanguageChar() + std::string("/authors.txt"));
pos.x = 80.0f/640.0f;
pos.y = 140.0f/480.0f;
@@ -1831,7 +1831,7 @@ pos.y -= 0.048f;
pe->SetHighlightCap(false);
pe->SetFontType(Gfx::FONT_COURIER);
pe->SetFontSize(Gfx::FONT_SIZE_SMALL);
- pe->ReadText("help/licences.txt");
+ pe->ReadText(std::string("help/") + m_app->GetLanguageChar() + std::string("/licences.txt"));
// #endif
/* TODO: #if _SCHOOL
#if _CEEBOTDEMO
diff --git a/src/ui/studio.cpp b/src/ui/studio.cpp
index da18d83..29dfebf 100644
--- a/src/ui/studio.cpp
+++ b/src/ui/studio.cpp
@@ -500,7 +500,7 @@ void CStudio::SearchToken(CEdit* edit)
}
token[i] = 0;
- m_helpFilename = std::string(GetHelpFilename(token));
+ m_helpFilename = GetHelpFilename(token);
if ( m_helpFilename.length() == 0 )
{
for ( i=0 ; i<OBJECT_MAX ; i++ )