mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Add a little hack to make it so panic alerts and questions can be translated if they are in the wxWidgets portion of the code, as well as make a few strings in the config dialog translatable.
Add Hungarian translations by Delirious. Update Italian translations by RebuMan. Update German translations by JackyCola and LucasX. Update Greek translations by Gpower2. Update Frensh translations by Pascal. Make sure the game list is refreshed when the GC language is changed. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6826 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
49a89c1739
commit
a4dd8c41a8
33 changed files with 11860 additions and 3540 deletions
|
@ -40,16 +40,16 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, const s
|
|||
switch (error)
|
||||
{
|
||||
case CON_ERR_SERVER_FULL :
|
||||
PanicAlert("The server is full!");
|
||||
PanicAlert("%s", _wxt("The server is full!"));
|
||||
break;
|
||||
case CON_ERR_VERSION_MISMATCH :
|
||||
PanicAlert("The server and client's NetPlay versions are incompatible!");
|
||||
PanicAlert("%s", _wxt("The server and client's NetPlay versions are incompatible!"));
|
||||
break;
|
||||
case CON_ERR_GAME_RUNNING :
|
||||
PanicAlert("The server responded: the game is currently running!");
|
||||
PanicAlert("%s", _wxt("The server responded: the game is currently running!"));
|
||||
break;
|
||||
default :
|
||||
PanicAlert("The server sent an unknown error message!");
|
||||
PanicAlert("%s", _wxt("The server sent an unknown error message!"));
|
||||
break;
|
||||
}
|
||||
m_socket.Close();
|
||||
|
@ -77,7 +77,7 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, const s
|
|||
}
|
||||
}
|
||||
else
|
||||
PanicAlert("Failed to Connect!");
|
||||
PanicAlert("%s", _wxt("Failed to Connect!"));
|
||||
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,7 @@ unsigned int NetPlayClient::OnData(sf::Packet& packet)
|
|||
|
||||
case NP_MSG_DISABLE_GAME :
|
||||
{
|
||||
PanicAlert("Other client disconnected while game is running!! NetPlay is disabled. You manually stop the game.");
|
||||
PanicAlert("%s", _wxt("Other client disconnected while game is running!! NetPlay is disabled. You manually stop the game."));
|
||||
CritLocker game_lock(m_crit.game); // lock game state
|
||||
m_is_running = false;
|
||||
NetPlay_Disable();
|
||||
|
@ -229,7 +229,7 @@ unsigned int NetPlayClient::OnData(sf::Packet& packet)
|
|||
break;
|
||||
|
||||
default :
|
||||
PanicAlert("Unknown message received with id : %d", mid);
|
||||
PanicAlert(_wxt("Unknown message received with id : %d"), mid);
|
||||
break;
|
||||
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ void NetPlayClient::Entry()
|
|||
m_is_running = false;
|
||||
NetPlay_Disable();
|
||||
AppendChatGUI("< LOST CONNECTION TO SERVER >");
|
||||
PanicAlert("Lost connection to server!");
|
||||
PanicAlert("%s", _wxt("Lost connection to server!"));
|
||||
m_do_loop = false;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue