summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-04-18 13:43:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-04-18 13:43:29 +0200
commit7aef23e97f156f2b1601125e5e39080bb269c9a0 (patch)
tree638380d19cf81d855f680c013d581cf740ed0e27
parente6592e620190aecc24fe4f2ac2c701d41bd009f0 (diff)
downloadvdr-7aef23e97f156f2b1601125e5e39080bb269c9a0.tar.gz
vdr-7aef23e97f156f2b1601125e5e39080bb269c9a0.tar.bz2
Implemented default sort mode for recordings
-rw-r--r--HISTORY8
-rw-r--r--MANUAL5
-rw-r--r--config.c5
-rw-r--r--config.h3
-rw-r--r--menu.c20
-rw-r--r--po/ar.po11
-rw-r--r--po/ca_ES.po11
-rw-r--r--po/cs_CZ.po11
-rw-r--r--po/da_DK.po11
-rw-r--r--po/de_DE.po11
-rw-r--r--po/el_GR.po11
-rw-r--r--po/es_ES.po11
-rw-r--r--po/et_EE.po11
-rw-r--r--po/fi_FI.po11
-rw-r--r--po/fr_FR.po11
-rw-r--r--po/hr_HR.po11
-rw-r--r--po/hu_HU.po11
-rw-r--r--po/it_IT.po11
-rw-r--r--po/lt_LT.po11
-rw-r--r--po/mk_MK.po11
-rw-r--r--po/nl_NL.po11
-rw-r--r--po/nn_NO.po11
-rw-r--r--po/pl_PL.po11
-rw-r--r--po/pt_PT.po11
-rw-r--r--po/ro_RO.po11
-rw-r--r--po/ru_RU.po11
-rw-r--r--po/sk_SK.po11
-rw-r--r--po/sl_SI.po11
-rw-r--r--po/sr_RS.po11
-rw-r--r--po/sv_SE.po11
-rw-r--r--po/tr_TR.po11
-rw-r--r--po/uk_UA.po11
-rw-r--r--po/zh_CN.po11
-rw-r--r--recording.c6
34 files changed, 306 insertions, 49 deletions
diff --git a/HISTORY b/HISTORY
index b259e399..b1683a1e 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8596,7 +8596,7 @@ Video Disk Recorder Revision History
- Bumped all version numbers to 2.2.0.
- Official release.
-2015-04-11: Version 2.3.1
+2015-04-18: Version 2.3.1
- The new function cOsd::MaxPixmapSize() can be called to determine the maximum size
a cPixmap may have on the current OSD. The 'osddemo' example has been modified
@@ -8625,3 +8625,9 @@ Video Disk Recorder Revision History
- The script that gets called for recordings is now also called right before a
recording is edited, with the first parameter being "editing" (suggested by
Dieter Ferdinand).
+- The new setup option "OSD/Default sort mode for recordings" can be used to define
+ how recordings shall be sorted by default (either by time or by name, with "by time"
+ being the default). If a particular sort mode has been selected for a folder by
+ pressing '0', the default no longer applies to that folder. Repeating timers no
+ longer write a ".sort" file into a recordings folder to have the recordings sorted
+ by time.
diff --git a/MANUAL b/MANUAL
index 3c4003ed..5a3e7fcb 100644
--- a/MANUAL
+++ b/MANUAL
@@ -654,6 +654,11 @@ Version 2.2
plain recordings. Set this option to "no" if you want folders
to be interspersed with recordings when sorted alphabetically.
+ Default sort mode for recordings = by time
+ Controls whether recordings are sorted by time or by name.
+ If a particular sort mode has been selected for a folder by
+ pressing '0', the default no longer applies to that folder.
+
Number keys for characters = yes
Controls whether the number keys can be used to enter
characters in a text input field. You may want to set this
diff --git a/config.c b/config.c
index 9c6b71e5..cfeda521 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 3.10 2015/02/10 12:24:13 kls Exp $
+ * $Id: config.c 4.1 2015/04/18 13:09:31 kls Exp $
*/
#include "config.h"
@@ -427,6 +427,7 @@ cSetup::cSetup(void)
RecordingDirs = 1;
FoldersInTimerMenu = 1;
AlwaysSortFoldersFirst = 1;
+ DefaultSortModeRec = rsmTime;
NumberKeysForChars = 1;
ColorKey0 = 0;
ColorKey1 = 1;
@@ -649,6 +650,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "RecordingDirs")) RecordingDirs = atoi(Value);
else if (!strcasecmp(Name, "FoldersInTimerMenu")) FoldersInTimerMenu = atoi(Value);
else if (!strcasecmp(Name, "AlwaysSortFoldersFirst")) AlwaysSortFoldersFirst = atoi(Value);
+ else if (!strcasecmp(Name, "DefaultSortModeRec")) DefaultSortModeRec = atoi(Value);
else if (!strcasecmp(Name, "NumberKeysForChars")) NumberKeysForChars = atoi(Value);
else if (!strcasecmp(Name, "ColorKey0")) ColorKey0 = atoi(Value);
else if (!strcasecmp(Name, "ColorKey1")) ColorKey1 = atoi(Value);
@@ -775,6 +777,7 @@ bool cSetup::Save(void)
Store("RecordingDirs", RecordingDirs);
Store("FoldersInTimerMenu", FoldersInTimerMenu);
Store("AlwaysSortFoldersFirst", AlwaysSortFoldersFirst);
+ Store("DefaultSortModeRec", DefaultSortModeRec);
Store("NumberKeysForChars", NumberKeysForChars);
Store("ColorKey0", ColorKey0);
Store("ColorKey1", ColorKey1);
diff --git a/config.h b/config.h
index bf102066..23c601b4 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 4.1 2015/02/21 14:59:27 kls Exp $
+ * $Id: config.h 4.2 2015/04/18 13:13:15 kls Exp $
*/
#ifndef __CONFIG_H
@@ -301,6 +301,7 @@ public:
int RecordingDirs;
int FoldersInTimerMenu;
int AlwaysSortFoldersFirst;
+ int DefaultSortModeRec;
int NumberKeysForChars;
int ColorKey0, ColorKey1, ColorKey2, ColorKey3;
int VideoDisplayFormat;
diff --git a/menu.c b/menu.c
index 2b812dec..c5a25981 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.1 2015/03/09 11:50:26 kls Exp $
+ * $Id: menu.c 4.2 2015/04/18 13:20:41 kls Exp $
*/
#include "menu.h"
@@ -3006,6 +3006,7 @@ void cMenuSetupBase::Store(void)
class cMenuSetupOSD : public cMenuSetupBase {
private:
const char *useSmallFontTexts[3];
+ const char *recSortModeTexts[2];
const char *keyColorTexts[4];
int osdLanguageIndex;
int numSkins;
@@ -3058,6 +3059,8 @@ void cMenuSetupOSD::Set(void)
useSmallFontTexts[0] = tr("never");
useSmallFontTexts[1] = tr("skin dependent");
useSmallFontTexts[2] = tr("always");
+ recSortModeTexts[0] = tr("by name");
+ recSortModeTexts[1] = tr("by time");
keyColorTexts[0] = tr("Key$Red");
keyColorTexts[1] = tr("Key$Green");
keyColorTexts[2] = tr("Key$Yellow");
@@ -3091,6 +3094,7 @@ void cMenuSetupOSD::Set(void)
Add(new cMenuEditBoolItem(tr("Setup.OSD$Recording directories"), &data.RecordingDirs));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Folders in timer menu"), &data.FoldersInTimerMenu));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Always sort folders first"), &data.AlwaysSortFoldersFirst));
+ Add(new cMenuEditStraItem(tr("Setup.OSD$Default sort mode for recordings"), &data.DefaultSortModeRec, 2, recSortModeTexts));
Add(new cMenuEditBoolItem(tr("Setup.OSD$Number keys for characters"), &data.NumberKeysForChars));
Add(new cMenuEditStraItem(tr("Setup.OSD$Color key 0"), &data.ColorKey0, 4, keyColorTexts));
Add(new cMenuEditStraItem(tr("Setup.OSD$Color key 1"), &data.ColorKey1, 4, keyColorTexts));
@@ -4811,20 +4815,6 @@ cRecordControl::cRecordControl(cDevice *Device, cTimer *Timer, bool Pause)
if (!Timer && !cReplayControl::LastReplayed()) // an instant recording, maybe from cRecordControls::PauseLiveVideo()
cReplayControl::SetRecording(fileName);
Recordings.AddByName(fileName);
- if (Timer && !Timer->IsSingleEvent()) {
- char *Directory = strdup(fileName);
- // going up two directory levels to get the series folder
- if (char *p = strrchr(Directory, '/')) {
- while (p > Directory && *--p != '/')
- ;
- *p = 0;
- if (!HasRecordingsSortMode(Directory)) {
- dsyslog("setting %s to be sorted by time", Directory);
- SetRecordingsSortMode(Directory, rsmTime);
- }
- }
- free(Directory);
- }
return;
}
else
diff --git a/po/ar.po b/po/ar.po
index 8b76c169..8d803e3f 100644
--- a/po/ar.po
+++ b/po/ar.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2008-10-16 11:16-0400\n"
"Last-Translator: Osama Alrawab <alrawab@hotmail.com>\n"
"Language-Team: Arabic <ar@li.org>\n"
@@ -851,6 +851,12 @@ msgstr "متوقف على نوع الثوب"
msgid "always"
msgstr "دائما"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "عرص على الشاشة"
@@ -938,6 +944,9 @@ msgstr "Folders in timer menu"
msgid "Setup.OSD$Always sort folders first"
msgstr "قم دائما بسرد المجلدات اولا"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Number keys for characters"
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 6530159f..6d64ec56 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2008-03-02 19:02+0100\n"
"Last-Translator: Luca Olivetti <luca@ventoso.org>\n"
"Language-Team: Catalan <vdr@linuxtv.org>\n"
@@ -850,6 +850,12 @@ msgstr "depn de l'aparena"
msgid "always"
msgstr "sempre"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "Informaci en pantalla"
@@ -937,6 +943,9 @@ msgstr "Carpetes en men temporitzadors"
msgid "Setup.OSD$Always sort folders first"
msgstr "Sempre ordenar primer carpetes"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Tecles numriques per a carcters"
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index 581ac955..dd166692 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2010-05-06 11:00+0200\n"
"Last-Translator: Aleš Juřík <ajurik@quick.cz>\n"
"Language-Team: Czech <vdr@linuxtv.org>\n"
@@ -850,6 +850,12 @@ msgstr "podle vzhledu"
msgid "always"
msgstr "vždy"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -937,6 +943,9 @@ msgstr "Složky v menu časovače"
msgid "Setup.OSD$Always sort folders first"
msgstr "Adresáře řadit vždy na začátek"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Psát písmena pomocí číselných kláves"
diff --git a/po/da_DK.po b/po/da_DK.po
index 3fb738e6..092ea3bd 100644
--- a/po/da_DK.po
+++ b/po/da_DK.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Mogens Elneff <mogens@elneff.dk>\n"
"Language-Team: Danish <vdr@linuxtv.org>\n"
@@ -847,6 +847,12 @@ msgstr "skin afhngig"
msgid "always"
msgstr "altid"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -934,6 +940,9 @@ msgstr ""
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr ""
diff --git a/po/de_DE.po b/po/de_DE.po
index 500360c1..98e9a593 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-10 13:45+0100\n"
"Last-Translator: Klaus Schmidinger <vdr@tvdr.de>\n"
"Language-Team: German <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "je nach Oberflche"
msgid "always"
msgstr "immer"
+msgid "by name"
+msgstr "nach Namen"
+
+msgid "by time"
+msgstr "nach Zeit"
+
msgid "OSD"
msgstr "OSD"
@@ -935,6 +941,9 @@ msgstr "Verzeichnisse im Timer-Men"
msgid "Setup.OSD$Always sort folders first"
msgstr "Verzeichnisse immer zuerst einsortieren"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Nummerntasten fr Zeichen"
diff --git a/po/el_GR.po b/po/el_GR.po
index b7972b04..8e287ae5 100644
--- a/po/el_GR.po
+++ b/po/el_GR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Dimitrios Dimitrakos <mail@dimitrios.de>\n"
"Language-Team: Greek <vdr@linuxtv.org>\n"
@@ -847,6 +847,12 @@ msgstr " "
msgid "always"
msgstr ""
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -934,6 +940,9 @@ msgstr ""
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr ""
diff --git a/po/es_ES.po b/po/es_ES.po
index 9b657b30..9258c903 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-19 23:00+0100\n"
"Last-Translator: Gabriel Bonich <gbonich@gmail.com>\n"
"Language-Team: Spanish <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "segn skin"
msgid "always"
msgstr "siempre"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "Mens en pantalla"
@@ -935,6 +941,9 @@ msgstr "Carpetas en men timers"
msgid "Setup.OSD$Always sort folders first"
msgstr "Siempre ordenar primero carpetas"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Teclas numricas para caracteres"
diff --git a/po/et_EE.po b/po/et_EE.po
index 1dfa11f6..46719885 100644
--- a/po/et_EE.po
+++ b/po/et_EE.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Arthur Konovalov <artlov@gmail.com>\n"
"Language-Team: Estonian <vdr@linuxtv.org>\n"
@@ -847,6 +847,12 @@ msgstr "kestast sõltuv"
msgid "always"
msgstr "alati"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "Ekraanikuva"
@@ -934,6 +940,9 @@ msgstr "Kaustad taimeri menüüs"
msgid "Setup.OSD$Always sort folders first"
msgstr "Sorteerida kaustad alati ette"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Teksti sisestamine numbriklahvidega"
diff --git a/po/fi_FI.po b/po/fi_FI.po
index cd3edfa8..0400bd58 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2007-08-15 15:52+0200\n"
"Last-Translator: Matti Lehtimäki <matti.lehtimaki@gmail.com>\n"
"Language-Team: Finnish <vdr@linuxtv.org>\n"
@@ -851,6 +851,12 @@ msgstr "ulkoasun mukaan"
msgid "always"
msgstr "aina"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "Kuvaruutunäyttö"
@@ -938,6 +944,9 @@ msgstr "Näytä kansiot ajastinvalikossa"
msgid "Setup.OSD$Always sort folders first"
msgstr "Näytä kansiot ensin"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Käytä numeronäppäimiä tekstisyötteessä"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 29c59aef..66ee284e 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -18,7 +18,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-18 20:16+0100\n"
"Last-Translator: Bernard Jaulin <bernard.jaulin@gmail.com>\n"
"Language-Team: French <vdr@linuxtv.org>\n"
@@ -858,6 +858,12 @@ msgstr "dépendant du skin"
msgid "always"
msgstr "toujours"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "Affichage à l'écran"
@@ -945,6 +951,9 @@ msgstr "Dossiers dans menu programmation"
msgid "Setup.OSD$Always sort folders first"
msgstr "Toujours trier les dossiers en premier"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Touches numériques pour caractères"
diff --git a/po/hr_HR.po b/po/hr_HR.po
index ba56f66d..8143fd68 100644
--- a/po/hr_HR.po
+++ b/po/hr_HR.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2008-03-17 19:00+0100\n"
"Last-Translator: Adrian Caval <anrxc@sysphere.org>\n"
"Language-Team: Croatian <vdr@linuxtv.org>\n"
@@ -849,6 +849,12 @@ msgstr "ovisno o povrini"
msgid "always"
msgstr "uvijek"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -936,6 +942,9 @@ msgstr ""
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr ""
diff --git a/po/hu_HU.po b/po/hu_HU.po
index 1604d725..657eb2f2 100644
--- a/po/hu_HU.po
+++ b/po/hu_HU.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-13 09:36+0200\n"
"Last-Translator: István Füley <ifuley@tigercomp.ro>\n"
"Language-Team: Hungarian <vdr@linuxtv.org>\n"
@@ -852,6 +852,12 @@ msgstr "Menü nézetétől függően"
msgid "always"
msgstr "mindig"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -939,6 +945,9 @@ msgstr "Könyvtárválasztás az időzítő menüben"
msgid "Setup.OSD$Always sort folders first"
msgstr "Könyvtárakat rendezd előre"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Betűk a számgombokon"
diff --git a/po/it_IT.po b/po/it_IT.po
index e2b45261..68bf20a8 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-12 19:31+0100\n"
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
"Language-Team: Italian <vdr@linuxtv.org>\n"
@@ -853,6 +853,12 @@ msgstr "in base allo stile interfaccia"
msgid "always"
msgstr "sempre"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -940,6 +946,9 @@ msgstr "Cartelle nel menu timer"
msgid "Setup.OSD$Always sort folders first"
msgstr "Ordina sempre per prima le cartelle"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Tasti numerici per i caratteri"
diff --git a/po/lt_LT.po b/po/lt_LT.po
index 3f9fb38e..b6120d7d 100644
--- a/po/lt_LT.po
+++ b/po/lt_LT.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-11 14:02+0200\n"
"Last-Translator: Valdemaras Pipiras <varas@ambernet.lt>\n"
"Language-Team: Lithuanian <vdr@linuxtv.org>\n"
@@ -847,6 +847,12 @@ msgstr "priklauso nuo stiliaus"
msgid "always"
msgstr "visada"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD (ekrano užsklanda)"
@@ -934,6 +940,9 @@ msgstr "Katalogai esantys laikmačių meniu"
msgid "Setup.OSD$Always sort folders first"
msgstr "Visada pirmiau rūšiuoti katalogus"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Skaičių mygtukai simboliams"
diff --git a/po/mk_MK.po b/po/mk_MK.po
index d4797402..d057053f 100644
--- a/po/mk_MK.po
+++ b/po/mk_MK.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-08 15:18+0100\n"
"Last-Translator: Dimitar Petrovski <dimeptr@gmail.com>\n"
"Language-Team: Macedonian <en@li.org>\n"
@@ -848,6 +848,12 @@ msgstr "зависно од фасада"
msgid "always"
msgstr "секогаш"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -935,6 +941,9 @@ msgstr "Директориуми во менито за тајмер"
msgid "Setup.OSD$Always sort folders first"
msgstr "Секогаш сортирај прво папки"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Нумерички копчиња за букви"
diff --git a/po/nl_NL.po b/po/nl_NL.po
index 97ccc137..cde5c7c5 100644
--- a/po/nl_NL.po
+++ b/po/nl_NL.po
@@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-10 19:43+0100\n"
"Last-Translator: Erik Oomen <oomen.e@gmail.com>\n"
"Language-Team: Dutch <vdr@linuxtv.org>\n"
@@ -853,6 +853,12 @@ msgstr "skin afhankelijk"
msgid "always"
msgstr "altijd"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -940,6 +946,9 @@ msgstr "Mappen in timermenu"
msgid "Setup.OSD$Always sort folders first"
msgstr "Altijd mappen eerst sorteren"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Nummertoetsen voor karakters"
diff --git a/po/nn_NO.po b/po/nn_NO.po
index 081702a1..4381253f 100644
--- a/po/nn_NO.po
+++ b/po/nn_NO.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Truls Slevigen <truls@slevigen.no>\n"
"Language-Team: Norwegian Nynorsk <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr ""
msgid "always"
msgstr ""
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -935,6 +941,9 @@ msgstr ""
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr ""
diff --git a/po/pl_PL.po b/po/pl_PL.po
index 7993f872..cf11689b 100644
--- a/po/pl_PL.po
+++ b/po/pl_PL.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-12 00:59+0100\n"
"Last-Translator: Tomasz Maciej Nowak <tmn505@gmail.com>\n"
"Language-Team: Polish <vdr@linuxtv.org>\n"
@@ -850,6 +850,12 @@ msgstr "zal. od skrki"
msgid "always"
msgstr "zawsze"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -937,6 +943,9 @@ msgstr "Katalogi w menu timera"
msgid "Setup.OSD$Always sort folders first"
msgstr "Sortuj najpierw katalogi"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Klawisze numeryczne dla liter"
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 6d08aa1c..17faaf0e 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2010-03-28 22:49+0100\n"
"Last-Translator: Cris Silva <hudokkow@gmail.com>\n"
"Language-Team: Portuguese <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "dependente do tema"
msgid "always"
msgstr "sempre"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -935,6 +941,9 @@ msgstr "Pastas no menu de gravaes"
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Teclas numricas para caracteres"
diff --git a/po/ro_RO.po b/po/ro_RO.po
index ea1892a3..1a16a04d 100644
--- a/po/ro_RO.po
+++ b/po/ro_RO.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-11 22:26+0100\n"
"Last-Translator: Lucian Muresan <lucianm@users.sourceforge.net>\n"
"Language-Team: Romanian <vdr@linuxtv.org>\n"
@@ -849,6 +849,12 @@ msgstr "dependent de skin"
msgid "always"
msgstr "întotdeauna"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -936,6 +942,9 @@ msgstr "Directoare în meniul de timer-e"
msgid "Setup.OSD$Always sort folders first"
msgstr "Sortează întotdeauna directoarele la început"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Caractere pe tastele numerice"
diff --git a/po/ru_RU.po b/po/ru_RU.po
index 47be5b7a..4b5a8ba8 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2013-03-10 17:13+0100\n"
"Last-Translator: Oleg Roitburd <oroitburd@gmail.com>\n"
"Language-Team: Russian <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr " "
msgid "always"
msgstr ""
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr ""
@@ -935,6 +941,9 @@ msgstr " "
msgid "Setup.OSD$Always sort folders first"
msgstr " "
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr " "
diff --git a/po/sk_SK.po b/po/sk_SK.po
index 5fc4c04a..5c12570b 100644
--- a/po/sk_SK.po
+++ b/po/sk_SK.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-17 18:59+0100\n"
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
"Language-Team: Slovak <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "poda vzhadu"
msgid "always"
msgstr "vdy"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD (Menu na obrazovke)"
@@ -935,6 +941,9 @@ msgstr "Zloky v menu plnovaa"
msgid "Setup.OSD$Always sort folders first"
msgstr "Zloky vdy najprv usporiada"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Psa znaky selnmi tlaidlami"
diff --git a/po/sl_SI.po b/po/sl_SI.po
index 149e8aa1..60daa737 100644
--- a/po/sl_SI.po
+++ b/po/sl_SI.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2013-03-04 12:46+0100\n"
"Last-Translator: Matjaz Thaler <matjaz.thaler@guest.arnes.si>\n"
"Language-Team: Slovenian <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "odvisno od preobleke"
msgid "always"
msgstr "vedno"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -935,6 +941,9 @@ msgstr "Direktoriji v meniju urnika"
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "tevilo tipk za znake"
diff --git a/po/sr_RS.po b/po/sr_RS.po
index 72d6d9f0..8b4cee4d 100644
--- a/po/sr_RS.po
+++ b/po/sr_RS.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2013-03-16 15:05+0100\n"
"Last-Translator: Zoran Turalija <zoran.turalija@gmail.com>\n"
"Language-Team: Serbian <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "zavisi od stila (skin-a)"
msgid "always"
msgstr "uvek"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -935,6 +941,9 @@ msgstr "Direktorijumi u meniju tajmera"
msgid "Setup.OSD$Always sort folders first"
msgstr "Uvek sortiraj direktorijume prve"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Piite pomou numerikih dugmia (kao SMS)"
diff --git a/po/sv_SE.po b/po/sv_SE.po
index e7adfe40..5563fd20 100644
--- a/po/sv_SE.po
+++ b/po/sv_SE.po
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-12 21:58+0100\n"
"Last-Translator: Magnus Sirvi <sirwio@hotmail.com>\n"
"Language-Team: Swedish <vdr@linuxtv.org>\n"
@@ -852,6 +852,12 @@ msgstr "skin-beroende"
msgid "always"
msgstr "alltid"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -939,6 +945,9 @@ msgstr "Visa mappar i timermenyn"
msgid "Setup.OSD$Always sort folders first"
msgstr "Sortera alltid mappar frst"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Anvnd sifferknappar fr bokstavsinmatning"
diff --git a/po/tr_TR.po b/po/tr_TR.po
index 7c7f1179..0a255918 100644
--- a/po/tr_TR.po
+++ b/po/tr_TR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2008-02-28 00:33+0100\n"
"Last-Translator: Oktay Yolgeen <oktay_73@yahoo.de>\n"
"Language-Team: Turkish <vdr@linuxtv.org>\n"
@@ -847,6 +847,12 @@ msgstr "yzeye baimli"
msgid "always"
msgstr "hep"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "OSD"
@@ -934,6 +940,9 @@ msgstr ""
msgid "Setup.OSD$Always sort folders first"
msgstr ""
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr ""
diff --git a/po/uk_UA.po b/po/uk_UA.po
index e4c18fbe..287891b6 100644
--- a/po/uk_UA.po
+++ b/po/uk_UA.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2015-02-13 18:14+0100\n"
"Last-Translator: Yarema aka Knedlyk <yupadmin@gmail.com>\n"
"Language-Team: Ukrainian <vdr@linuxtv.org>\n"
@@ -848,6 +848,12 @@ msgstr "згідно зі стилем"
msgid "always"
msgstr "завжди"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "Меню"
@@ -935,6 +941,9 @@ msgstr "Теки в меню таймера"
msgid "Setup.OSD$Always sort folders first"
msgstr "Завжди сортувати теки першими"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "Кількість клавіш для символів"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 97dc7d6e..f1c3a218 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 2.2.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2015-03-09 12:50+0100\n"
+"POT-Creation-Date: 2015-04-18 15:43+0200\n"
"PO-Revision-Date: 2013-03-04 14:52+0800\n"
"Last-Translator: NFVDR <nfvdr@live.com>\n"
"Language-Team: Chinese (simplified) <nfvdr@live.com>\n"
@@ -849,6 +849,12 @@ msgstr "皮肤选择"
msgid "always"
msgstr "总是"
+msgid "by name"
+msgstr ""
+
+msgid "by time"
+msgstr ""
+
msgid "OSD"
msgstr "系统菜单设置"
@@ -936,6 +942,9 @@ msgstr "定时器菜单中的文件夹"
msgid "Setup.OSD$Always sort folders first"
msgstr "总是排序文件夹"
+msgid "Setup.OSD$Default sort mode for recordings"
+msgstr ""
+
msgid "Setup.OSD$Number keys for characters"
msgstr "数字键的字符"
diff --git a/recording.c b/recording.c
index 0164bb97..a28bb444 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 4.1 2015/04/11 10:44:38 kls Exp $
+ * $Id: recording.c 4.2 2015/04/18 13:14:55 kls Exp $
*/
#include "recording.h"
@@ -3020,7 +3020,7 @@ int ReadFrame(cUnbufferedFile *f, uchar *b, int Length, int Max)
// --- Recordings Sort Mode --------------------------------------------------
-eRecordingsSortMode RecordingsSortMode = rsmName;
+eRecordingsSortMode RecordingsSortMode = rsmTime;
bool HasRecordingsSortMode(const char *Directory)
{
@@ -3029,7 +3029,7 @@ bool HasRecordingsSortMode(const char *Directory)
void GetRecordingsSortMode(const char *Directory)
{
- RecordingsSortMode = rsmName;
+ RecordingsSortMode = eRecordingsSortMode(constrain(Setup.DefaultSortModeRec, 0, int(rsmTime)));
if (FILE *f = fopen(AddDirectory(Directory, SORTMODEFILE), "r")) {
char buf[8];
if (fgets(buf, sizeof(buf), f))