From 0837770aaae3ffa71600497809aa45d266f6574b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Jun 2012 16:59:11 +0000 Subject: class CTranslator removed from tabSRMM due its stupidity git-svn-id: http://svn.miranda-ng.org/main/trunk@302 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/globals.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src/globals.cpp') diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index 4894e29681..a92d20c92c 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -308,7 +308,7 @@ void CGlobals::reloadSettings(bool fReloadSkins) m_smcxicon = 16; m_smcyicon = 16; m_PasteAndSend = (int)M->GetByte("pasteandsend", 1); - m_szNoStatus = const_cast(CTranslator::get(CTranslator::GEN_NO_STATUS)); + m_szNoStatus = TranslateT("No status message"); m_LangPackCP = ServiceExists(MS_LANGPACK_GETCODEPAGE) ? CallService(MS_LANGPACK_GETCODEPAGE, 0, 0) : CP_ACP; m_visualMessageSizeIndicator = M->GetByte("msgsizebar", 0); m_autoSplit = M->GetByte("autosplit", 0); @@ -767,7 +767,7 @@ void CGlobals::RestoreUnreadMessageAlerts(void) cle.hContact = hContact; cle.hDbEvent = hDbEvent; - mir_sntprintf(toolTip, safe_sizeof(toolTip), CTranslator::get(CTranslator::GEN_STRING_MESSAGEFROM), + mir_sntprintf(toolTip, safe_sizeof(toolTip), TranslateT("Message from %s"), (TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM) hContact, GCDNF_TCHAR)); cle.ptszTooltip = toolTip; CallService(MS_CLIST_ADDEVENT, 0, (LPARAM) & cle); @@ -818,11 +818,11 @@ void CGlobals::logStatusChange(WPARAM wParam, const CContactCache *c) if (c->isValid()) { if (wStatus == ID_STATUS_OFFLINE) - mir_sntprintf(buffer, safe_sizeof(buffer), CTranslator::get(CTranslator::GEN_MSG_SIGNEDOFF)); + mir_sntprintf(buffer, safe_sizeof(buffer), TranslateT("signed off.")); else if (wOldStatus == ID_STATUS_OFFLINE) - mir_sntprintf(buffer, safe_sizeof(buffer), CTranslator::get(CTranslator::GEN_MSG_SIGNEDON), szNewStatus); + mir_sntprintf(buffer, safe_sizeof(buffer), TranslateT("signed on and is now %s."), szNewStatus); else - mir_sntprintf(buffer, safe_sizeof(buffer), CTranslator::get(CTranslator::GEN_MSG_CHANGEDSTATUS), szOldStatus, szNewStatus); + mir_sntprintf(buffer, safe_sizeof(buffer), TranslateT("changed status from %s to %s."), szOldStatus, szNewStatus); } char *szMsg = M->utf8_encodeT(buffer); -- cgit v1.2.3