From 9ffb94a275c285bb70d9e21037c882956bb6001e Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Fri, 11 Feb 2011 22:31:46 +0200 Subject: Unified date formatting and added recording duration format into translations. --- pages/recordings.ecpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'pages') diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp index d213b54..f256a0b 100644 --- a/pages/recordings.ecpp +++ b/pages/recordings.ecpp @@ -182,9 +182,11 @@ else recItems.sort(RecordingsItemPtrCompare::ByAscendingName); for (recIter = recItems.begin(); recIter != recItems.end(); ++recIter) { RecordingsItemPtr recItem = *recIter; - string day(FormatDateTime("%a,", recItem->StartTime())); + // xgettext:no-c-format + string day(FormatDateTime(tr("%a,"), recItem->StartTime())); string dayLen(lexical_cast(day.length() - 1) + ".25em;"); - string duration(LiveSetup().GetShowRecDuration() ? "(" + lexical_cast(recItem->Duration()) + "')" : ""); + // TRANSLATORS: recording duration format + string duration(LiveSetup().GetShowRecDuration() ? FormatDuration(tr("(%d')"), recItem->Duration()) : ""); string shortDescr(recItem->RecInfo()->ShortText() ? recItem->RecInfo()->ShortText() : ""); string hint(tr("Click to view details.")); if (!shortDescr.empty()) hint = shortDescr + "
" + hint; @@ -284,15 +286,10 @@ for (recIter = recItems.begin(); recIter != recItems.end(); ++recIter) { string shortDescr; string archived; -<%cpp> - // TRANSLATORS: strftime format string for recording start info: day, date, hour. - // xgettext:no-c-format - char const * recFormatStr( tr("%a %x %X") ); -
<%cpp> reply.out() << StringRepeat(level + 1, "\"\""); <%cpp> if (!archived.empty()) { " alt="on_dvd" <& tooltip.hint text=(archived) &> /><%cpp> } else { <%cpp> }
-
<$ FormatDateTime(recFormatStr, startTime) $>
+
<$ FormatDateTime(tr("%a,"), startTime) + string(" ") + FormatDateTime(tr("%b %d %y"), startTime) + string(" ") + FormatDateTime(tr("%I:%M %p"), startTime) $>
<$ duration $>
-- cgit v1.2.3