diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-28 14:26:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-28 14:26:12 +0000 |
commit | c69a4eeaf118719b3cc7d8e762696e131fe969f2 (patch) | |
tree | 8c64c438b1c22bf11e106166a8d55337e35bad0b /plugins/TabSRMM | |
parent | c6818f5cbc529c51c0f8f1a392ddd5eccbc326e1 (diff) |
+ translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@210 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/include/translator.h | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 16 | ||||
-rw-r--r-- | plugins/TabSRMM/src/translator.cpp | 2 |
3 files changed, 13 insertions, 9 deletions
diff --git a/plugins/TabSRMM/include/translator.h b/plugins/TabSRMM/include/translator.h index e248a319f8..98a5b80031 100644 --- a/plugins/TabSRMM/include/translator.h +++ b/plugins/TabSRMM/include/translator.h @@ -281,7 +281,9 @@ public: GEN_TASKBAR_STRING_USERS = 232,
GEN_AEROPEEK_NOHPP = 233,
GEN_STRING_WARNING_TITLE = 234,
- STR_LAST = 235
+ GEN_IP_CLIENT = 235,
+ GEN_IP_CLIENT_UNKNOWN = 236,
+ STR_LAST = 237
};
enum {
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index 6f4f000ad0..044266b1a1 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -495,14 +495,13 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem) clr = m_ipConfig.clrs[IPFONTID_UIN];
if (tszUin[0]) {
- SIZE sUIN;
- TCHAR temp[256];
- DBVARIANT dbv = {0};
- if(0 == M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
- mir_sntprintf(temp, 256, _T(" Client: %s"), dbv.ptszVal);
+ TCHAR temp[256];
+ DBVARIANT dbv = {0};
+ if ( !M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
+ mir_sntprintf(temp, SIZEOF(temp), CTranslator::get(CTranslator::GEN_IP_CLIENT), dbv.ptszVal);
::DBFreeVariant(&dbv);
}
- else mir_sntprintf(temp, 256, _T(" Client not cached yet"));
+ else mir_sntprintf(temp, SIZEOF(temp), CTranslator::get(CTranslator::GEN_IP_CLIENT_UNKNOWN));
if (m_dat->idle) {
time_t diff = time(NULL) - m_dat->idle;
@@ -510,9 +509,10 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem) int i_mins = (diff - i_hrs * 3600) / 60;
mir_sntprintf(szBuf, safe_sizeof(szBuf), CTranslator::get(CTranslator::GEN_IP_IDLENOTICE), tszUin, i_hrs, i_mins);
}
- else _tcscpy_s (szBuf,256,tszUin);
+ else _tcscpy_s (szBuf, 256, tszUin);
+ _tcscat_s(szBuf, 256, temp);
- _tcscat_s (szBuf,256,temp);
+ SIZE sUIN;
::GetTextExtentPoint32(hdc, szBuf, lstrlen(szBuf), &sUIN);
mapRealRect(rcItem, m_rcUIN, sUIN);
CSkin::RenderText(hdc, m_dat->hThemeIP, szBuf, &rcItem, DT_SINGLELINE | DT_VCENTER, CSkin::m_glowSize, clr);
diff --git a/plugins/TabSRMM/src/translator.cpp b/plugins/TabSRMM/src/translator.cpp index 1e801152ea..6c413fedc2 100644 --- a/plugins/TabSRMM/src/translator.cpp +++ b/plugins/TabSRMM/src/translator.cpp @@ -317,6 +317,8 @@ wchar_t* CTranslator::m_strings[STR_LAST] = { LPGENT("Previews not availble when using History++ plugin for message log display."), /* GEN_AEROPEEK_NOHPP */
LPGENT("TabSRMM warning message"), /* GEN_STRING_WARNING_TITLE */
+ LPGENT(" Client: %s"), /* GEN_IP_CLIENT */
+ LPGENT(" Client not cached yet"), /* GEN_IP_CLIENT_UNKNOWN */
};
/*
|