{
if (s == "") return s;
if (s == "All Weapons Arena") return _("All Weapons Arena");
- if (s == "Dev All Weapons Arena") return s; // development option, do not translate
- if (s == "Most Weapons Arena") return _("Most Weapons Arena");
if (s == "All Available Weapons Arena") return _("All Available Weapons Arena");
- if (s == "Dev All Available Weapons Arena") return s; // development option, do not translate
+ if (s == "Most Weapons Arena") return _("Most Weapons Arena");
if (s == "Most Available Weapons Arena") return _("Most Available Weapons Arena");
+ if (s == "Dev All Weapons Arena") return s; // development option, do not translate
+ if (s == "Dev All Available Weapons Arena") return s; // development option, do not translate
if (s == "No Weapons Arena") return _("No Weapons Arena");
int n = tokenizebyseparator(s, " & ");
LOG_INFO("^3Warning: ^7server sent an invalid weapon name\n");
wpn_list = cons_mid(wpn_list, " & ", wep.m_name);
}
- return sprintf(_("%s Arena"), wpn_list);
+ if (wpn_list != "")
+ return sprintf(_("%s Arena"), wpn_list);
+ else
+ return _("No Weapons Arena");
}
string GetVersionMessage(string hostversion, bool version_mismatch, bool version_check)
string s;
float n;
s = cvar_string("g_weaponarena");
- if(s == "0")
- return "";
- if(s == "all" || s == "1")
- return _("All Weapons Arena");
- if(s == "most")
- return _("Most Weapons Arena");
+ if(s == "0" || s == "") return "";
+ if(s == "all" || s == "1") return _("All Weapons Arena");
+ if(s == "all_available") return _("All Available Weapons Arena");
+ if(s == "most") return _("Most Weapons Arena");
+ if(s == "most_available") return _("Most Available Weapons Arena");
+ if(s == "devall") return "Dev All Weapons Arena"; // development option, do not translate
+ if(s == "devall_available") return "Dev All Available Weapons Arena"; // development option, do not translate
if(s == weaponarenastring_cvar)
return weaponarenastring;
s = cons_mid(s, " & ", wep.m_name);
}
}
- s = sprintf(_("%s Arena"), s);
+ if (s != "")
+ s = sprintf(_("%s Arena"), s);
+ else
+ s = _("No Weapons Arena");
strcpy(weaponarenastring, s);