summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n.cpp22
-rw-r--r--pages/recordings.ecpp27
2 files changed, 43 insertions, 6 deletions
diff --git a/i18n.cpp b/i18n.cpp
index b46aa8c..4b08300 100644
--- a/i18n.cpp
+++ b/i18n.cpp
@@ -201,6 +201,28 @@ const tI18nPhrase Phrases[] = {
"", // Dansk
"", //Czech
},
+ { "Save", // English
+ "Speichern", // Deutsch
+ "", // Slovenski
+ "", // Italiano
+ "", // Nederlands
+ "", // Português
+ "", // Français
+ "", // Norsk
+ "", // Finnish
+ "", // Polski
+ "", // Español
+ "", // Greek
+ "", // Svenska
+ "", // Românã
+ "", // Magyar
+ "", // Català
+ "", // Russian
+ "", // Hrvatski
+ "", // Eesti
+ "", // Dansk
+ "", //Czech
+ },
{ "Menu", // English
"Menü", // Deutsch
"", // Slovenski
diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp
index e307bed..4a8eb14 100644
--- a/pages/recordings.ecpp
+++ b/pages/recordings.ecpp
@@ -2,23 +2,29 @@
#include <sstream>
#include <vdr/plugin.h>
#include <vdr/config.h>
-#include <vdr/i18n.h>
+#include <tnt/savepoint.h>
+#include "exception.h"
#include "tools.h"
#include "recordings.h"
using namespace vdrlive;
</%pre>
+<%args>
+</%args>
+<%request scope="global">
+std::string pageTitle(tr("Recordings"));
+</%request>
<%request scope="page">
RecordingsTree recordingsTree;
</%request>
-<%args>
-</%args>
-<{
-}>
+<%cpp>
+try {
+ tnt::Savepoint spoint(reply);
+</%cpp>
<html>
<head>
- <title>VDR-Live - <$ tr("Recordings") $></title>
+ <title>VDR-Live - <$ pageTitle $></title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<script src="treeview.js" type="text/javascript" />
</head>
@@ -95,3 +101,12 @@ for (iter = recordingsTree.begin(path); iter != end; iter++) {
}>
</ul>
</%def>
+<%cpp>
+ spoint.commit();
+} catch ( HtmlError const& ex ) {
+ cxxtools::QueryParams param = qparam;
+ param.add( "errorTitle", ex.GetTitle() );
+ param.add( "errorMessage", ex.GetMessage() );
+ callComp( "error", request, reply, param );
+}
+</%cpp>