diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-10 23:08:35 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-11 08:43:59 -0700 |
commit | 1ea7d80aff0961e6f55ee467b8cbe26d146828f8 (patch) | |
tree | 4e635e72541c3df3493a2a5871348f02b9f48bfe /src/gui | |
parent | 4a41ce55224ad7b54c6b5ea78126d8d314f5ef41 (diff) | |
download | mana-1ea7d80aff0961e6f55ee467b8cbe26d146828f8.tar.gz mana-1ea7d80aff0961e6f55ee467b8cbe26d146828f8.tar.bz2 mana-1ea7d80aff0961e6f55ee467b8cbe26d146828f8.tar.xz mana-1ea7d80aff0961e6f55ee467b8cbe26d146828f8.zip |
Don't make log statements translatable
The log is mainly used to aid the developers, hence shouldn't be
translated to the user's local language. Also introduces unnecessary
work for all translators.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/register.cpp | 2 | ||||
-rw-r--r-- | src/gui/setup_video.cpp | 4 | ||||
-rw-r--r-- | src/gui/skill.cpp | 2 | ||||
-rw-r--r-- | src/gui/updatewindow.cpp | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp index 50182de1..fd7df18d 100644 --- a/src/gui/register.cpp +++ b/src/gui/register.cpp @@ -153,7 +153,7 @@ void RegisterDialog::action(const gcn::ActionEvent &event) else if (event.getId() == "register" && canSubmit()) { const std::string user = mUserField->getText(); - logger->log(_("RegisterDialog::register Username is %s"), user.c_str()); + logger->log("RegisterDialog::register Username is %s", user.c_str()); std::string errorMsg; int error = 0; diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 48bf63e7..bf5682e6 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -90,9 +90,9 @@ ModeListModel::ModeListModel() /* Check which modes are available */ if (modes == (SDL_Rect **)0) { - logger->log(_("No modes available")); + logger->log("No modes available"); } else if (modes == (SDL_Rect **)-1) { - logger->log(_("All resolutions available")); + logger->log("All resolutions available"); } else { //logger->log("Available Modes"); for (int i = 0; modes[i]; ++i) { diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index 6c0414f3..42ac4d86 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -269,7 +269,7 @@ static void initSkillinfo(void) if (!root || !xmlStrEqual(root->name, BAD_CAST "skills")) { - logger->log(_("Error loading skills file: %s"), SKILLS_FILE); + logger->log("Error loading skills file: %s", SKILLS_FILE); skill_db.resize(2, emptySkillInfo); skill_db[1].name = "Basic"; skill_db[1].modifiable = true; diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 5a6f3f28..a25d57d4 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -76,7 +76,7 @@ std::vector<std::string> loadTextFile(const std::string &fileName) std::ifstream fin(fileName.c_str()); if (!fin) { - logger->log(_("Couldn't load text file: %s"), fileName.c_str()); + logger->log("Couldn't load text file: %s", fileName.c_str()); return lines; } @@ -194,7 +194,7 @@ void UpdaterWindow::loadNews() { if (!mMemoryBuffer) { - logger->log(_("Couldn't load news")); + logger->log("Couldn't load news"); return; } @@ -411,7 +411,7 @@ void UpdaterWindow::download() if (!mThread) { - logger->log(_("Unable to create mThread")); + logger->log("Unable to create mThread"); mDownloadStatus = UPDATE_ERROR; } } @@ -505,7 +505,7 @@ void UpdaterWindow::logic() } else { - logger->log(_("%s already here"), mCurrentFile.c_str()); + logger->log("%s already here", mCurrentFile.c_str()); } mLineIndex++; } |