From 3576b67db9fa0a3d8d5c1747cc3560504d31d125 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 5 Mar 2014 12:52:30 +0000 Subject: - adaptation for standard Windows ways of handling Unicode; - obsoleted code removed; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@8407 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/column_nick.cpp | 49 +++++++++++++------------------- 1 file changed, 20 insertions(+), 29 deletions(-) (limited to 'plugins/HistoryStats/src/column_nick.cpp') diff --git a/plugins/HistoryStats/src/column_nick.cpp b/plugins/HistoryStats/src/column_nick.cpp index f61744a545..d0ba71a9ae 100644 --- a/plugins/HistoryStats/src/column_nick.cpp +++ b/plugins/HistoryStats/src/column_nick.cpp @@ -35,8 +35,8 @@ void ColNick::impl_configWrite(SettingsTree& settings) const void ColNick::impl_configToUI(OptionsCtrl& Opt, OptionsCtrl::Item hGroup) { - /**/m_hDetail = Opt.insertCheck(hGroup, i18n(muT("First/last message time (tooltip)"))); - /**/m_hContactCount = Opt.insertCheck(hGroup, i18n(muT("Show countact count for omitted/totals (tooltip)"))); + m_hDetail = Opt.insertCheck(hGroup, TranslateT("First/last message time (tooltip)")); + m_hContactCount = Opt.insertCheck(hGroup, TranslateT("Show countact count for omitted/totals (tooltip)")); Opt.checkItem(m_hDetail , m_bDetail ); Opt.checkItem(m_hContactCount, m_bContactCount); @@ -52,18 +52,18 @@ void ColNick::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) c { if (row == 1) { - writeRowspanTD(tos, getCustomTitle(i18n(muT("Nick")), i18n(muT("Nick"))), row, 1, rowSpan); + writeRowspanTD(tos, getCustomTitle(TranslateT("Nick"), TranslateT("Nick")), row, 1, rowSpan); } } void ColNick::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display) { - tos << muT(""); - } - else - { - tos << muT(">"); + tos << _T(" title=\"") << strTooltip << _T("\">"); } + else tos << _T(">"); if (display == asContact) - { - tos << utils::htmlEscape(contact.getNick()) << muT("") << ext::endl; - } + tos << utils::htmlEscape(contact.getNick()) << _T("") << ext::endl; else if (display == asOmitted) - { - tos << i18n(muT("Omitted")) << muT("") << ext::endl; - } + tos << TranslateT("Omitted") << _T("") << ext::endl; else - { - tos << i18n(muT("Totals")) << muT("") << ext::endl; - } + tos << TranslateT("Totals") << _T("") << ext::endl; } -- cgit v1.2.3