Rename translation methods to be not one letter.

It fixes several warnings, when the name was shadowed by a local "p".
This commit is contained in:
Alexey Sokolov
2016-09-12 00:01:45 +01:00
parent 187f617bbc
commit cc653efb6b
12 changed files with 198 additions and 194 deletions

View File

@@ -47,27 +47,27 @@ void CClient::UserCommand(CString& sLine) {
HelpUser(sLine.Token(1));
} else if (sCommand.Equals("LISTNICKS")) {
if (!m_pNetwork) {
PutStatus(
t("You must be connected with a network to use this command"));
PutStatus(t_s(
"You must be connected with a network to use this command"));
return;
}
CString sChan = sLine.Token(1);
if (sChan.empty()) {
PutStatus(t("Usage: ListNicks <#chan>"));
PutStatus(t_s("Usage: ListNicks <#chan>"));
return;
}
CChan* pChan = m_pNetwork->FindChan(sChan);
if (!pChan) {
PutStatus(f("You are not on [{1}]")(sChan));
PutStatus(t_f("You are not on [{1}]")(sChan));
return;
}
if (!pChan->IsOn()) {
PutStatus(f("You are not on [{1}] (trying)")(sChan));
PutStatus(t_f("You are not on [{1}] (trying)")(sChan));
return;
}
@@ -76,7 +76,7 @@ void CClient::UserCommand(CString& sLine) {
const CString& sPerms = (pIRCSock) ? pIRCSock->GetPerms() : "";
if (msNicks.empty()) {
PutStatus(f("No nicks on [{1}]")(sChan));
PutStatus(t_f("No nicks on [{1}]")(sChan));
return;
}