summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-04-30 15:09:57 +0200
committerJosJuice <josjuice@gmail.com>2017-04-30 15:09:57 +0200
commitf92331b9253746d49d10dfd0abf054c8dc59e373 (patch)
tree98306caa5c98bb4a4074da62626641468582cd2c /Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp
parentfcc2ed4550ad12ce77bb78a4207e35e70d4af3c6 (diff)
Mark "Host Code:" and "IP Address:" as translatable
Also remove some spaces before colons.
Diffstat (limited to 'Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp')
-rw-r--r--Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp b/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp
index 8202c5b9a8..9b2ab5d3f1 100644
--- a/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp
+++ b/Source/Core/DolphinWX/NetPlay/NetPlaySetupFrame.cpp
@@ -174,15 +174,16 @@ wxNotebook* NetPlaySetupFrame::CreateNotebookGUI(wxWindow* parent)
// connect tab
{
- m_ip_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Host Code :"));
- m_connect_ip_text = new wxTextCtrl(connect_tab, wxID_ANY, "127.0.0.1");
- m_connect_hashcode_text = new wxTextCtrl(connect_tab, wxID_ANY, "00000000");
+ // The text of these three controls will be set by OnDirectTraversalChoice
+ m_ip_lbl = new wxStaticText(connect_tab, wxID_ANY, "");
+ m_connect_ip_text = new wxTextCtrl(connect_tab, wxID_ANY);
+ m_connect_hashcode_text = new wxTextCtrl(connect_tab, wxID_ANY);
// Will be overridden by OnDirectTraversalChoice, but is necessary
// so that both inputs do not take up space
m_connect_hashcode_text->Hide();
- m_client_port_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Port :"));
+ m_client_port_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Port:"));
m_connect_port_text = new wxTextCtrl(connect_tab, wxID_ANY,
std::to_string(NetPlayHostConfig::DEFAULT_LISTEN_PORT));
@@ -436,7 +437,7 @@ void NetPlaySetupFrame::OnDirectTraversalChoice(wxCommandEvent& event)
// Traversal
// client tab
{
- m_ip_lbl->SetLabelText("Host Code: ");
+ m_ip_lbl->SetLabelText(_("Host Code:"));
m_client_port_lbl->Hide();
m_connect_port_text->Hide();
}
@@ -461,7 +462,7 @@ void NetPlaySetupFrame::OnDirectTraversalChoice(wxCommandEvent& event)
// Direct
// Client tab
{
- m_ip_lbl->SetLabelText("IP Address :");
+ m_ip_lbl->SetLabelText(_("IP Address:"));
std::string address;
netplay_section.Get("Address", &address, "127.0.0.1");