diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-18 21:52:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-18 22:06:50 +0300 |
commit | 7272851afd9e3a8fcdb531900a8e5c43af417a4b (patch) | |
tree | 4c39553287cf3f6edc1d5ca620f3c4e780d69df6 /src/client.cpp | |
parent | e21479ccc48ed8383a6ab72f45c43e12e8dffa69 (diff) | |
download | ManaVerse-7272851afd9e3a8fcdb531900a8e5c43af417a4b.tar.gz ManaVerse-7272851afd9e3a8fcdb531900a8e5c43af417a4b.tar.bz2 ManaVerse-7272851afd9e3a8fcdb531900a8e5c43af417a4b.tar.xz ManaVerse-7272851afd9e3a8fcdb531900a8e5c43af417a4b.zip |
Add parameter for button name in okdialog.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp index 04b8746b2..23595b3f8 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1382,8 +1382,10 @@ int Client::gameExec() BLOCK_START("Client::gameExec STATE_LOGIN_ERROR") logger->log1("State: LOGIN ERROR"); // TRANSLATORS: error dialog header - mCurrentDialog = new OkDialog(_("Error"), - errorMessage, DialogType::ERROR, + mCurrentDialog = new OkDialog(_("Error"), errorMessage, + // TRANSLATORS: ok dialog button + _("OK"), + DialogType::ERROR, true, true, nullptr, 260); mCurrentDialog->addActionListener(&loginListener); mCurrentDialog = nullptr; // OkDialog deletes itself @@ -1394,8 +1396,10 @@ int Client::gameExec() BLOCK_START("Client::gameExec STATE_ACCOUNTCHANGE_ERROR") logger->log1("State: ACCOUNT CHANGE ERROR"); // TRANSLATORS: error dialog header - mCurrentDialog = new OkDialog(_("Error"), - errorMessage, DialogType::ERROR, + mCurrentDialog = new OkDialog(_("Error"), errorMessage, + // TRANSLATORS: ok dialog button + _("OK"), + DialogType::ERROR, true, true, nullptr, 260); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself @@ -1451,6 +1455,8 @@ int Client::gameExec() mCurrentDialog = new OkDialog(_("Password Change"), // TRANSLATORS: password change message text _("Password changed successfully!"), + // TRANSLATORS: ok dialog button + _("OK"), DialogType::ERROR, true, true, nullptr, 260); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself @@ -1475,7 +1481,10 @@ int Client::gameExec() // TRANSLATORS: email change message header mCurrentDialog = new OkDialog(_("Email Change"), // TRANSLATORS: email change message text - _("Email changed successfully!"), DialogType::ERROR, + _("Email changed successfully!"), + // TRANSLATORS: ok dialog button + _("OK"), + DialogType::ERROR, true, true, nullptr, 260); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself |