diff options
author | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2011-02-11 22:31:46 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-02-11 22:44:52 +0100 |
commit | 9ffb94a275c285bb70d9e21037c882956bb6001e (patch) | |
tree | 92d8a0d02def8c7ec4bd93b3512317c996a13d8e /pages | |
parent | 2e2f11b1a0435ca6c43614d63a0a63c823981589 (diff) | |
download | vdr-plugin-live-9ffb94a275c285bb70d9e21037c882956bb6001e.tar.gz vdr-plugin-live-9ffb94a275c285bb70d9e21037c882956bb6001e.tar.bz2 |
Unified date formatting and added recording duration format into translations.
Diffstat (limited to 'pages')
-rw-r--r-- | pages/recordings.ecpp | 13 |
1 files changed, 5 insertions, 8 deletions
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<string, int>(day.length() - 1) + ".25em;"); - string duration(LiveSetup().GetShowRecDuration() ? "(" + lexical_cast<string, int>(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 + "<br />" + hint; </%cpp> @@ -284,15 +286,10 @@ for (recIter = recItems.begin(); recIter != recItems.end(); ++recIter) { string shortDescr; string archived; </%args> -<%cpp> - // TRANSLATORS: strftime format string for recording start info: day, date, hour. - // xgettext:no-c-format - char const * recFormatStr( tr("%a %x %X") ); -</%cpp> <div class="recording_item"> <div class="recording_imgs"><%cpp> reply.out() << StringRepeat(level + 1, "<img src=\"img/transparent.png\" alt=\"\" width=\"16px\" height=\"16px\" />"); </%cpp><%cpp> if (!archived.empty()) { </%cpp><img src="<$ LiveSetup().GetThemedLink("img", "on_dvd.png") $>" alt="on_dvd" <& tooltip.hint text=(archived) &> /><%cpp> } else { </%cpp><input type="checkbox" name="deletions" value="<$ id $>" /><%cpp> } </%cpp></div> <div class="recording_spec"> - <div class="recording_day"><$ FormatDateTime(recFormatStr, startTime) $></div> + <div class="recording_day"><$ FormatDateTime(tr("%a,"), startTime) + string(" ") + FormatDateTime(tr("%b %d %y"), startTime) + string(" ") + FormatDateTime(tr("%I:%M %p"), startTime) $></div> <div class="recording_duration"><$ duration $></div> <div class="recording_name"><a <& tooltip.hint text=(hint) &><& tooltip.display domId=(id) &>><$ name $><br /><%cpp>if ((name != shortDescr) && (!shortDescr.empty())) {</%cpp><span><$ shortDescr $></span><%cpp> } else { </%cpp><span> </span><%cpp> } </%cpp></a></div> </div> |