summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/column_rank.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_rank.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_rank.cpp')
-rw-r--r--plugins/HistoryStats/src/column_rank.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/plugins/HistoryStats/src/column_rank.cpp b/plugins/HistoryStats/src/column_rank.cpp
index ae44689be9..d65e730be9 100644
--- a/plugins/HistoryStats/src/column_rank.cpp
+++ b/plugins/HistoryStats/src/column_rank.cpp
@@ -8,9 +8,7 @@
void ColRank::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) const
{
if (row == 1)
- {
- writeRowspanTD(tos, getCustomTitle(i18n(muT("Rank")), i18n(muT("Rank"))), row, 1, rowSpan);
- }
+ writeRowspanTD(tos, getCustomTitle(TranslateT("Rank"), TranslateT("Rank")), row, 1, rowSpan);
}
void ColRank::impl_outputBegin()
@@ -21,13 +19,9 @@ void ColRank::impl_outputBegin()
void ColRank::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display)
{
if (display == asContact)
- {
- tos << muT("<td class=\"num\">")
- << utils::htmlEscape(ext::str(ext::kformat(i18n(muT("#{rank}."))) % muT("#{rank}") * (m_nNextRank++)))
- << muT("</td>") << ext::endl;
- }
- else
- {
- tos << muT("<td>&nbsp;</td>");
- }
+ tos << _T("<td class=\"num\">")
+ << utils::htmlEscape(ext::str(ext::kformat(TranslateT("#{rank}.")) % _T("#{rank}") * (m_nNextRank++)))
+ << _T("</td>") << ext::endl;
+ else
+ tos << _T("<td>&nbsp;</td>");
}