summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n-generated.h81
-rw-r--r--pages/recordings.ecpp13
-rw-r--r--po/ca_ES.po14
-rw-r--r--po/cs_CZ.po14
-rw-r--r--po/da_DK.po14
-rw-r--r--po/de_DE.po14
-rw-r--r--po/el_GR.po14
-rw-r--r--po/es_ES.po14
-rw-r--r--po/et_EE.po14
-rw-r--r--po/fi_FI.po20
-rw-r--r--po/fr_FR.po18
-rw-r--r--po/hr_HR.po14
-rw-r--r--po/hu_HU.po14
-rw-r--r--po/it_IT.po14
-rw-r--r--po/lt_LT.po14
-rw-r--r--po/nl_NL.po14
-rw-r--r--po/nn_NO.po14
-rw-r--r--po/pl_PL.po14
-rw-r--r--po/pt_PT.po14
-rw-r--r--po/ro_RO.po14
-rw-r--r--po/ru_RU.po14
-rw-r--r--po/sl_SI.po14
-rw-r--r--po/sv_SE.po14
-rw-r--r--po/tr_TR.po14
-rw-r--r--tools.cpp11
-rw-r--r--tools.h2
26 files changed, 277 insertions, 148 deletions
diff --git a/i18n-generated.h b/i18n-generated.h
index 8f5ce71..0ac38a6 100644
--- a/i18n-generated.h
+++ b/i18n-generated.h
@@ -264,7 +264,7 @@ const tI18nPhrase Phrases[] = {
"",
"%A, %x",
"",
- "%A, %x",
+ "%A %x",
"",
"",
"",
@@ -5121,6 +5121,41 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
+ { "%a,",
+ "%a,",
+ "",
+ "%a,",
+ "",
+ "",
+ "%a,",
+ "",
+ "%a",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+#if VDRVERSNUM >= 10302
+ "",
+#endif
+#if VDRVERSNUM >= 10307
+ "",
+#endif
+#if VDRVERSNUM >= 10313
+ "",
+#endif
+#if VDRVERSNUM >= 10316
+ "",
+#endif
+#if VDRVERSNUM >= 10342
+ "",
+#endif
+#if VDRVERSNUM >= 10502
+ "",
+#endif
+ },
{ "%b %d %y",
"%d.%m.%y",
"",
@@ -5934,7 +5969,7 @@ const tI18nPhrase Phrases[] = {
"",
"%A, %d.%m.%Y",
"",
- "%A, %d.%m.%Y",
+ "%A %d.%m.%Y",
"",
"",
"",
@@ -7956,15 +7991,15 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
- { "Sort by name",
- "Sortiere nach Name",
+ { "(%d')",
"",
"",
"",
"",
"",
"",
- "Järjestä nimen mukaan",
+ "",
+ "%d'",
"",
"",
"",
@@ -7991,15 +8026,15 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
- { "Sort by date",
- "Sortiere nach Datum",
+ { "Sort by name",
+ "Sortiere nach Name",
"",
"",
"",
"",
"",
"",
- "Järjestä päivämäärän mukaan",
+ "Järjestä nimen mukaan",
"",
"",
"",
@@ -8026,15 +8061,15 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
- { "Delete this recording from hard disc!",
- "Diese Aufnahme von der Festplatte löschen!",
+ { "Sort by date",
+ "Sortiere nach Datum",
"",
- "Elimina questa registrazione dal disco fisso!",
"",
"",
"",
"",
- "Poista tallenne kovalevyltä!",
+ "",
+ "Järjestä päivämäärän mukaan",
"",
"",
"",
@@ -8061,15 +8096,15 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
- { "play this recording.",
- "Diese Aufnahme abspielen.",
+ { "Delete this recording from hard disc!",
+ "Diese Aufnahme von der Festplatte löschen!",
"",
- "Riproduci questa registrazione",
+ "Elimina questa registrazione dal disco fisso!",
"",
"",
- "lire cette enregistrement.",
"",
- "Toista tallenne",
+ "",
+ "Poista tallenne kovalevyltä!",
"",
"",
"",
@@ -8096,15 +8131,15 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
- { "%a %x %X",
- "%a, %d.%m.%Y %H:%M",
- "",
- "",
+ { "play this recording.",
+ "Diese Aufnahme abspielen.",
"",
+ "Riproduci questa registrazione",
"",
"",
+ "lire cette enregistrement.",
"",
- "%a %x %X",
+ "Toista tallenne",
"",
"",
"",
@@ -10064,7 +10099,7 @@ const tI18nPhrase Phrases[] = {
"",
"%A, %x",
"",
- "%a, %x",
+ "%a %x",
"",
"",
"",
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>&nbsp;</span><%cpp> } </%cpp></a></div>
</div>
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 41a06bf..8a3485c 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -457,6 +457,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -700,6 +704,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -712,11 +721,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index fce915b..788e5bb 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/da_DK.po b/po/da_DK.po
index 5b9cec4..19aa10e 100644
--- a/po/da_DK.po
+++ b/po/da_DK.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/de_DE.po b/po/de_DE.po
index 3ce26f1..8062ca0 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -457,6 +457,10 @@ msgstr "Fehler beim Zugriffschutz für die Programminfos"
msgid "Error aquiring schedules"
msgstr "Fehler beim Zugriff auf Programinfos"
+#, no-c-format
+msgid "%a,"
+msgstr "%a,"
+
msgid "%b %d %y"
msgstr "%d.%m.%y"
@@ -700,6 +704,11 @@ msgstr "Keine Aufnahmen vorhanden"
msgid "Delete selected"
msgstr "Ausgewähle löschen"
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr "Sortiere nach Name"
@@ -712,11 +721,6 @@ msgstr "Diese Aufnahme von der Festplatte löschen!"
msgid "play this recording."
msgstr "Diese Aufnahme abspielen."
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr "%a, %d.%m.%Y %H:%M"
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr "Konnte Kanal nicht finden oder keine Kanäle verfügbar. Ist die Anfrage korrekt?"
diff --git a/po/el_GR.po b/po/el_GR.po
index 5a307b2..2497bdc 100644
--- a/po/el_GR.po
+++ b/po/el_GR.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/es_ES.po b/po/es_ES.po
index 5b84d12..2fdb91c 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/et_EE.po b/po/et_EE.po
index 098b55e..b9a1f62 100644
--- a/po/et_EE.po
+++ b/po/et_EE.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/fi_FI.po b/po/fi_FI.po
index 2b72a66..f3a0ab4 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -38,7 +38,7 @@ msgstr "Ylläpidon salasana"
#, c-format
msgid "%A, %x"
-msgstr "%A, %x"
+msgstr "%A %x"
msgid "Searchtimer"
msgstr "Hakuajastimet"
@@ -455,6 +455,10 @@ msgstr "Ohjelmatietojen lukitus epäonnistui!"
msgid "Error aquiring schedules"
msgstr "Ohjelmatietojen haku epäonnistui!"
+#, no-c-format
+msgid "%a,"
+msgstr "%a"
+
msgid "%b %d %y"
msgstr "%d.%m.%y"
@@ -525,7 +529,7 @@ msgid "Now"
msgstr "Nyt"
msgid "%A, %b %d %Y"
-msgstr "%A, %d.%m.%Y"
+msgstr "%A %d.%m.%Y"
msgid "Time"
msgstr "Ajankohta"
@@ -698,6 +702,11 @@ msgstr "Tallenteita ei löydy"
msgid "Delete selected"
msgstr "Poista valitut"
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr "%d'"
+
msgid "Sort by name"
msgstr "Järjestä nimen mukaan"
@@ -710,11 +719,6 @@ msgstr "Poista tallenne kovalevyltä!"
msgid "play this recording."
msgstr "Toista tallenne"
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr "%a %x %X"
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr "Kanavaa ei löydy. Kirjoititko varmasti oikein?"
@@ -882,7 +886,7 @@ msgstr "VLC:n URL"
#, c-format
msgid "%a, %x"
-msgstr "%a, %x"
+msgstr "%a %x"
msgid "What's running on"
msgstr "Menossa"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 342d6ac..1c28fc3 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -474,6 +474,10 @@ msgstr "Erreur lors de l'acquisition du verrouillage de programmation de recherc
msgid "Error aquiring schedules"
msgstr "Erreur lors de l'acquisition de programmation"
+#, no-c-format
+msgid "%a,"
+msgstr "%a,"
+
msgid "%b %d %y"
msgstr "%d.%m.%y"
@@ -719,6 +723,11 @@ msgstr "Pas d'enregistrement"
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -731,11 +740,6 @@ msgstr ""
msgid "play this recording."
msgstr "lire cette enregistrement."
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr "N'a pas pu trouver la chaîne. Votre requête est t'elle corrête? "
@@ -977,7 +981,3 @@ msgstr ""
#, fuzzy
#~ msgid "File"
#~ msgstr "Titre"
-
-#, fuzzy
-#~ msgid "%A, %B %d %Y"
-#~ msgstr "%A, %d.%m.%Y"
diff --git a/po/hr_HR.po b/po/hr_HR.po
index 827da04..7e3a62f 100644
--- a/po/hr_HR.po
+++ b/po/hr_HR.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/hu_HU.po b/po/hu_HU.po
index 4d15ae3..368573c 100644
--- a/po/hu_HU.po
+++ b/po/hu_HU.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/it_IT.po b/po/it_IT.po
index 32295e4..0616d18 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -461,6 +461,10 @@ msgstr "Errore acquisizione blocco programmi"
msgid "Error aquiring schedules"
msgstr "Errore acquisizione programmi"
+#, no-c-format
+msgid "%a,"
+msgstr "%a,"
+
msgid "%b %d %y"
msgstr "%b %d %y"
@@ -704,6 +708,11 @@ msgstr "Nessuna registrazione trovata"
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -716,11 +725,6 @@ msgstr "Elimina questa registrazione dal disco fisso!"
msgid "play this recording."
msgstr "Riproduci questa registrazione"
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr "Impossibile trovare canale o canali disponibili. Hai digitato correttamente la richiesta?"
diff --git a/po/lt_LT.po b/po/lt_LT.po
index f5fecd9..76c512a 100644
--- a/po/lt_LT.po
+++ b/po/lt_LT.po
@@ -456,6 +456,10 @@ msgstr "Negali gauti programų užrakto"
msgid "Error aquiring schedules"
msgstr "Negauna programų aprašų"
+#, no-c-format
+msgid "%a,"
+msgstr "%a,"
+
msgid "%b %d %y"
msgstr "%b %d %y"
@@ -699,6 +703,11 @@ msgstr "Įrašų nėra"
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr "Ištrinti šį įrašą iš disko!"
msgid "play this recording."
msgstr "groti šį įrašą."
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr "Kanalas nerastas arba jo iš vis nėra. Gal klaidingai įvedėte paieškos frazę?"
diff --git a/po/nl_NL.po b/po/nl_NL.po
index 6ea7947..7daef7c 100644
--- a/po/nl_NL.po
+++ b/po/nl_NL.po
@@ -471,6 +471,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -715,6 +719,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -727,11 +736,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/nn_NO.po b/po/nn_NO.po
index 51278a1..2e1e224 100644
--- a/po/nn_NO.po
+++ b/po/nn_NO.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/pl_PL.po b/po/pl_PL.po
index a61bd9b..8d5b787 100644
--- a/po/pl_PL.po
+++ b/po/pl_PL.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 135d479..abd5cd9 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/ro_RO.po b/po/ro_RO.po
index c0021ef..749af5c 100644
--- a/po/ro_RO.po
+++ b/po/ro_RO.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/ru_RU.po b/po/ru_RU.po
index 52e8e3c..a814da5 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -455,6 +455,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -698,6 +702,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -710,11 +719,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/sl_SI.po b/po/sl_SI.po
index 08a3a2c..ad6dc90 100644
--- a/po/sl_SI.po
+++ b/po/sl_SI.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/sv_SE.po b/po/sv_SE.po
index 669d58f..cd6089c 100644
--- a/po/sv_SE.po
+++ b/po/sv_SE.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/po/tr_TR.po b/po/tr_TR.po
index cc63bfc..64937b8 100644
--- a/po/tr_TR.po
+++ b/po/tr_TR.po
@@ -456,6 +456,10 @@ msgstr ""
msgid "Error aquiring schedules"
msgstr ""
+#, no-c-format
+msgid "%a,"
+msgstr ""
+
msgid "%b %d %y"
msgstr ""
@@ -699,6 +703,11 @@ msgstr ""
msgid "Delete selected"
msgstr ""
+#. TRANSLATORS: recording duration format
+#, c-format
+msgid "(%d')"
+msgstr ""
+
msgid "Sort by name"
msgstr ""
@@ -711,11 +720,6 @@ msgstr ""
msgid "play this recording."
msgstr ""
-#. TRANSLATORS: strftime format string for recording start info: day, date, hour.
-#, no-c-format
-msgid "%a %x %X"
-msgstr ""
-
msgid "Couldn't find channel or no channels available. Maybe you mistyped your request?"
msgstr ""
diff --git a/tools.cpp b/tools.cpp
index a1ed4ee..35c14e8 100644
--- a/tools.cpp
+++ b/tools.cpp
@@ -51,6 +51,17 @@ istream& operator>>( istream& is, tChannelID& ret )
namespace vdrlive {
+ string FormatDuration( char const* format, int duration )
+ {
+ char result[ 32 ];
+ if ( snprintf(result, sizeof(result), format, duration) < 0 ) {
+ ostringstream builder;
+ builder << "cannot represent duration " << duration << " as requested";
+ throw runtime_error( builder.str() );
+ }
+ return result;
+ }
+
string FormatDateTime( char const* format, time_t time )
{
struct tm tm_r;
diff --git a/tools.h b/tools.h
index 272dce8..61cce8b 100644
--- a/tools.h
+++ b/tools.h
@@ -24,6 +24,8 @@ std::ostream& operator<<( std::ostream& os, tChannelID const& id )
namespace vdrlive {
+ std::string FormatDuration( char const* format, int duration );
+
std::string FormatDateTime( char const* format, time_t time );
std::string StringReplace( std::string const& text, std::string const& substring, std::string const& replacement );