summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-26 12:43:27 +0000
committerrubidium <rubidium@openttd.org>2009-10-26 12:43:27 +0000
commit22db089c0df13de99b36c3349e306537bf616fb5 (patch)
tree0671707cf94aa90e44ff4ab097e3d127a34a22e2
parentfac3655a4c6b6b76567a3745ec5063d11d15b782 (diff)
downloadopenttd-22db089c0df13de99b36c3349e306537bf616fb5.tar.xz
(svn r17877) -Fix (r1322/r1174/r464): do not hardcode 'Ban' for GUI purposes, i.e. make it translatable
-rw-r--r--src/lang/english.txt1
-rw-r--r--src/network/network_gui.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 268b23fda..fd4c87ba5 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -1651,6 +1651,7 @@ STR_NETWORK_COMPANY_LIST_NEW_COMPANY :{WHITE}New comp
# Network client list
STR_NETWORK_CLIENTLIST_NONE :- None -
STR_NETWORK_CLIENTLIST_KICK :Kick
+STR_NETWORK_CLIENTLIST_BAN :Ban
STR_NETWORK_CLIENTLIST_GIVE_MONEY :Give money
STR_NETWORK_CLIENTLIST_SPEAK_TO_ALL :Speak to all
STR_NETWORK_CLIENTLIST_SPEAK_TO_COMPANY :Speak to company
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index def03c98c..cb770ffd0 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1817,7 +1817,7 @@ struct NetworkClientListPopupWindow : Window {
GetString(this->action[i], STR_NETWORK_CLIENTLIST_KICK, lastof(this->action[i]));
this->proc[i++] = &ClientList_Kick;
- seprintf(this->action[i], lastof(this->action[i]), "Ban"); // XXX GetString?
+ GetString(this->action[i], STR_NETWORK_CLIENTLIST_BAN, lastof(this->action[i]));
this->proc[i++] = &ClientList_Ban;
}