OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Language.h File Reference
Include dependency graph for C4Language.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4LanguageInfo
 
class  C4Language
 

Functions

const char * LoadResStr (const char *id)
 
const char * LoadResStrNoAmp (const char *id)
 

Variables

const int C4MaxLanguageInfo = 1024
 
C4Language Languages
 

Function Documentation

const char* LoadResStr ( const char *  id)
inline

Definition at line 83 of file C4Language.h.

References C4LangStringTable::GetSystemStringTable(), and C4LangStringTable::Translate().

Referenced by C4GameLobby::Countdown::Abort(), C4MainMenu::ActivateClient(), C4MainMenu::ActivateDisplay(), C4MainMenu::ActivateGoals(), C4MainMenu::ActivateHost(), C4MainMenu::ActivateHostility(), C4MainMenu::ActivateMain(), C4Object::ActivateMenu(), C4Player::ActivateMenuTeamSelection(), C4MainMenu::ActivateNewPlayer(), C4MainMenu::ActivateObserver(), C4MainMenu::ActivateOptions(), C4MainMenu::ActivateRules(), C4MainMenu::ActivateSavegame(), C4MainMenu::ActivateSurrender(), C4GUI::ComboBox_FillCB::AddEntry(), C4Network2::AllowJoin(), C4MusicFile::Announce(), C4PlayerInfoList::AssignPlayerIDs(), C4ChatControl::C4ChatControl(), C4ClientPlayerInfos::C4ClientPlayerInfos(), C4GameOptionButtons::C4GameOptionButtons(), C4GameOverDlg::C4GameOverDlg(), C4LeagueSignupDialog::C4LeagueSignupDialog(), C4Network2StartWaitDlg::C4Network2StartWaitDlg(), C4Network2Stats::C4Network2Stats(), C4PortraitSelDlg::C4PortraitSelDlg(), C4StartupAboutDlg::C4StartupAboutDlg(), C4StartupMainDlg::C4StartupMainDlg(), C4StartupNetDlg::C4StartupNetDlg(), C4StartupOptionsDlg::C4StartupOptionsDlg(), C4StartupPlrPropertiesDlg::C4StartupPlrPropertiesDlg(), C4StartupPlrSelDlg::C4StartupPlrSelDlg(), C4StartupScenSelDlg::C4StartupScenSelDlg(), C4ScenarioListLoader::Scenario::CanOpen(), C4Game::CanQuickSave(), C4StartupPlrSelDlg::CheckPlayerName(), C4Application::Clear(), C4Game::Clear(), C4Console::CloseGame(), C4PlayerInfoCore::CompileFunc(), C4Object::CompileFunc(), C4Game::CompileRuntimeData(), ConsoleDlgProc(), ConstructionCheck(), C4StartupPlrSelDlg::PlayerListItem::ContextMenu(), C4ConsoleGUI::CreateConsoleWindow(), C4Network2::CreateDynamic(), C4MapFolderData::CreateGUIElements(), C4GUI::InfoDialog::CreateSubComponents(), C4MaterialMap::CrossMapMaterials(), C4FileSelDlg::DefaultListItem::DefaultListItem(), C4StartupScenSelDlg::DeleteConfirm(), C4EditCursor::DoContextMenu(), C4Game::DoGameOver(), C4Application::DoInit(), C4Network2::DoLobby(), C4StartupNetDlg::DoOK(), C4StartupScenSelDlg::DoOK(), C4MainMenu::DoRefillInternal(), C4ObjectMenu::DoRefillInternal(), C4StartupNetDlg::DoRefresh(), C4Startup::DoStartup(), C4DownloadDlg::DownloadFile(), C4StartupMainDlg::DrawElement(), C4Viewport::DrawMenu(), C4Game::DropDef(), C4Game::DropFile(), C4EditCursor::EditingOK(), C4Player::Eliminate(), C4Startup::EnsureLoaded(), C4Game::Evaluate(), C4Object::ExecLife(), C4StartupNetListEntry::Execute(), C4GUI::ExpandHotkeyMarkup(), C4Command::Fail(), C4Network2::FinalInit(), C4GraphicsSystem::FlashMessageOnOff(), FullScreenWinProc(), C4LeagueClient::GetAuthReply(), C4GameLobby::C4PacketCountdown::GetCountdownMsg(), C4EditCursorSelection::GetDataString(), C4Object::GetDataString(), C4StartupPlrSelDlg::PlayerListItem::GetDelWarning(), C4ControlVote::getDesc(), C4Network2Status::getDescription(), C4ControlVote::getDescWarning(), C4Network2Reference::getGameGoalString(), C4GameParameters::GetGameGoalString(), C4ScenarioListLoader::Scenario::GetOpenText(), C4ScenarioListLoader::Folder::GetOpenText(), C4ScenarioListLoader::Scenario::GetOpenTooltip(), C4ScenarioListLoader::Folder::GetOpenTooltip(), C4TeamList::GetScriptPlayerName(), C4Network2Res::GetStandalone(), C4LeagueClient::GetStartReply(), C4ScenarioListLoader::Scenario::GetTypeName(), C4ScenarioListLoader::SubFolder::GetTypeName(), C4ScenarioListLoader::RegularFolder::GetTypeName(), C4AchievementGraphics::Init(), C4LoaderScreen::Init(), C4ViewportWindow::Init(), C4GraphicsResource::Init(), C4Game::Init(), C4Game::InitControl(), C4Game::InitDefs(), C4FileSelDlg::InitElements(), C4FontLoader::InitFont(), C4MusicSystem::InitForScenario(), C4Game::InitGame(), C4Network2::InitLeague(), C4Game::InitMaterialTexture(), C4GameRes::InitNetwork(), C4Game::InitNetworkFromAddress(), C4Game::InitNetworkFromReference(), C4Game::InitNetworkHost(), C4Game::InitPlayers(), C4GameControl::InitReplay(), C4Game::InitScriptEngine(), C4GUI::InputDialog::InputDialog(), C4PlayerList::Join(), C4Network2IRCClient::Join(), C4StartupScenSelDlg::KeyCheat(), C4StartupScenSelDlg::KeyDelete(), C4Network2::LeagueEnd(), C4Network2::LeagueNotifyDisconnect(), C4Network2::LeaguePlrAuth(), C4Network2::LeaguePlrAuthCheck(), C4Network2::LeagueShowError(), C4Network2::LeagueStart(), C4Network2::LeagueUpdate(), C4Network2::LeagueUpdateProcessReply(), C4Network2::LeagueWaitNotBusy(), C4EditCursor::LeftButtonDown(), C4Object::Lift(), C4DefList::Load(), C4ParticleDef::Load(), C4Surface::Load(), C4GameParameters::Load(), C4Game::LoadAdditionalSystemGroup(), C4KeyboardInput::LoadCustomConfig(), C4Extra::LoadDef(), C4GraphicsResource::LoadFile(), LoadResStrNoAmp(), LoadResStrW(), C4Game::LoadScenarioComponents(), C4PlayerInfoList::LocalJoinUnjoinedPlayersInQueue(), LogFatal(), C4GameLobby::MainDlg::MainDlg(), C4MainMenu::MenuCommand(), C4GUI::MessageDialog::MessageDialog(), ObjectComDig(), C4GameOptionButtons::OnBtnComment(), C4GameOptionButtons::OnBtnPassword(), C4StartupNetDlg::OnChatTitleChange(), C4ChatDlg::OnChatTitleChange(), C4GameLobby::MainDlg::OnClientAddPlayer(), C4Network2::OnClientDisconnect(), C4StartupPlrPropertiesDlg::OnClosed(), C4GameOptionButtons::OnCommentSet(), C4ChatControl::OnConnectBtn(), C4GUI::Edit::OnContext(), C4StartupPlrSelDlg::OnDelBtn(), C4StartupPlrSelDlg::OnDelBtnConfirm(), C4StartupMainDlg::OnEditorBtn(), C4Network2::OnGameSynchronized(), C4DownloadDlg::OnIdle(), C4StartupNetListEntry::OnReference(), C4GameLobby::MainDlg::OnRightTabContext(), C4GameLobby::Countdown::OnSec1Timer(), C4Game::OpenScenario(), C4Network2::OpenSurrenderDialog(), C4Network2::OpenVoteDialog(), C4Network2Res::OptimizeStandalone(), C4Application::PreInit(), C4Game::PreInit(), C4MessageInput::ProcessCommand(), C4MessageInput::ProcessInput(), C4ChatControl::ProcessInput(), C4GUI::ProgressDialog::ProgressDialog(), C4Object::Promote(), C4Object::Push(), C4Network2::QueryClientPassword(), C4Game::QuickSave(), C4PlayerInfoList::RecreatePlayerFiles(), C4PlayerInfoList::RecreatePlayers(), C4GraphicsResource::RegisterGlobalGraphics(), C4GroupSet::RegisterParentFolders(), C4PlayerList::RemoveAtClient(), C4PlayerList::RemoveAtRemoteClient(), C4PlayerList::RemoveLocal(), C4PlayerInfoList::RemoveUnassociatedPlayers(), C4ScenarioListLoader::Entry::RenameTo(), C4PlayerInfoList::RestoreSavegameInfos(), C4GameResList::RetrieveFiles(), C4Network2::RetrieveRes(), C4Network2::RetrieveScenario(), C4GameSave::Save(), C4Player::Save(), C4Config::Save(), C4GameSaveSavegame::SaveComponents(), C4StartupOptionsDlg::SaveConfig(), C4Console::SaveGame(), C4Console::SaveScenario(), C4GraphicsSystem::SaveScreenshot(), C4GUI::InputDialog::SetCustomEdit(), C4Player::SetHostility(), C4ToolsDlg::SetLandscapeMode(), C4StartupNetListEntry::SetReference(), C4StartupNetListEntry::SetRefQuery(), C4StartupPlrSelDlg::PlayerListItem::SetSelectionInfo(), C4GUI::Dialog::SetTitle(), C4ScenarioListLoader::Entry::SetTitleInGroup(), C4GUI::Screen::ShowErrorMessage(), C4DownloadDlg::ShowModal(), C4Game::SlowDown(), C4Game::SpeedUp(), C4GameLobby::MainDlg::Start(), C4Record::Start(), C4Player::Surrender(), C4PlayerList::SynchronizeLocalFiles(), C4Game::ToggleDebugMode(), C4MusicSystem::ToggleOnOff(), C4GraphicsSystem::ToggleShow8BitSurface(), C4GraphicsSystem::ToggleShowAction(), C4GraphicsSystem::ToggleShowVertices(), C4EditCursor::ToolFailure(), C4StartupPlrSelDlg::PlayerListItem::UpdateCore(), C4ConsoleGUI::State::UpdateMenuText(), C4Console::UpdateNetMenu(), C4StartupMainDlg::UpdateParticipants(), C4Console::UpdatePlayerMenu(), C4EditCursor::UpdateStatusBar(), C4Network2ClientDlg::UpdateText(), C4ChatControl::UpdateTitle(), C4Console::UpdateViewportMenu(), C4DownloadDlg::UserClose(), C4FileSelDlg::UserClose(), C4LeagueSignupDialog::UserClose(), C4ChatControl::UserQueryQuit(), C4FullScreen::ViewportCheck(), ViewportWinProc(), C4Network2::Vote(), C4GameSave::WriteDescDate(), C4GameSave::WriteDescDefinitions(), C4GameSave::WriteDescEngine(), C4GameSave::WriteDescGameTime(), C4GameSave::WriteDescLeague(), C4GameSave::WriteDescNetworkClients(), and C4GameSave::WriteDescPlayers().

84 {
85  try
86  {
88  }
90  {
91  return id;
92  }
93 }
const std::string & Translate(const std::string &text) const
static C4LangStringTable & GetSystemStringTable()

Here is the call graph for this function:

const char* LoadResStrNoAmp ( const char *  id)

Definition at line 23 of file StdResStr2.cpp.

References LoadResStr().

Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), and C4StartupScenSelDlg::DoOK().

24 {
25  const char * str = LoadResStr(id);
26  char * cpd = strResult;
27  for (const char * cps = str; *cps; ++cps, ++cpd)
28  {
29  if (*cps == '&')
30  --cpd;
31  else
32  *cpd = *cps;
33  }
34  *cpd = 0;
35  return strResult;
36 }
const char * LoadResStr(const char *id)
Definition: C4Language.h:83

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int C4MaxLanguageInfo = 1024

Definition at line 26 of file C4Language.h.