summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/column_events.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-05 12:52:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-05 12:52:30 +0000
commit3576b67db9fa0a3d8d5c1747cc3560504d31d125 (patch)
treef6a6cb9916cbf1aab83bac572fec8822f6ad065e /plugins/HistoryStats/src/column_events.cpp
parent73e6231455372205e912963083624aaa371bab0b (diff)
- 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
Diffstat (limited to 'plugins/HistoryStats/src/column_events.cpp')
-rw-r--r--plugins/HistoryStats/src/column_events.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/plugins/HistoryStats/src/column_events.cpp b/plugins/HistoryStats/src/column_events.cpp
index 2186f8bb91..b0fee0204c 100644
--- a/plugins/HistoryStats/src/column_events.cpp
+++ b/plugins/HistoryStats/src/column_events.cpp
@@ -29,20 +29,20 @@ void ColEvents::impl_configWrite(SettingsTree& settings) const
void ColEvents::impl_configToUI(OptionsCtrl& Opt, OptionsCtrl::Item hGroup)
{
- m_hSource = Opt.insertCombo(hGroup, i18n(muT("Events to count")));
-
- static const mu_text* sourceTexts[] = {
- I18N(muT("URLs (incoming)")),
- I18N(muT("URLs (outgoing)")),
- I18N(muT("URLs (all)")),
- I18N(muT("Files (incoming)")),
- I18N(muT("Files (outgoing)")),
- I18N(muT("Files (all)")),
+ m_hSource = Opt.insertCombo(hGroup, TranslateT("Events to count"));
+
+ static const TCHAR* sourceTexts[] = {
+ LPGENT("URLs (incoming)"),
+ LPGENT("URLs (outgoing)"),
+ LPGENT("URLs (all)"),
+ LPGENT("Files (incoming)"),
+ LPGENT("Files (outgoing)"),
+ LPGENT("Files (all)"),
};
array_each_(i, sourceTexts)
{
- Opt.addComboItem(m_hSource, i18n(sourceTexts[i]));
+ Opt.addComboItem(m_hSource, TranslateTS(sourceTexts[i]));
}
Opt.setComboSelected(m_hSource, m_nSource);
@@ -55,23 +55,23 @@ void ColEvents::impl_configFromUI(OptionsCtrl& Opt)
void ColEvents::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) const
{
- static const mu_text* szShortDesc[] = {
- I18N(muT("URLs")),
- I18N(muT("Files")),
+ static const TCHAR* szShortDesc[] = {
+ LPGENT("URLs"),
+ LPGENT("Files"),
};
- static const mu_text* szSourceDesc[] = {
- I18N(muT("Incoming URLs")),
- I18N(muT("Outgoing URLs")),
- I18N(muT("URLs")),
- I18N(muT("Incoming files")),
- I18N(muT("Outgoing files")),
- I18N(muT("Files")),
+ static const TCHAR* szSourceDesc[] = {
+ LPGENT("Incoming URLs"),
+ LPGENT("Outgoing URLs"),
+ LPGENT("URLs"),
+ LPGENT("Incoming files"),
+ LPGENT("Outgoing files"),
+ LPGENT("Files"),
};
if (row == 1)
{
- writeRowspanTD(tos, getCustomTitle(i18n(szShortDesc[m_nSource / 3]), i18n(szSourceDesc[m_nSource])), row, 1, rowSpan);
+ writeRowspanTD(tos, getCustomTitle(TranslateTS(szShortDesc[m_nSource / 3]), TranslateTS(szSourceDesc[m_nSource])), row, 1, rowSpan);
}
}
@@ -86,7 +86,7 @@ void ColEvents::impl_outputRenderRow(ext::ostream& tos, const Contact& contact,
&Contact::getTotalFiles,
};
- tos << muT("<td class=\"num\">")
+ tos << _T("<td class=\"num\">")
<< utils::intToGrouped((contact.*getData[m_nSource])())
- << muT("</td>") << ext::endl;
+ << _T("</td>") << ext::endl;
}