diff options
-rw-r--r-- | i18n.cpp | 22 | ||||
-rw-r--r-- | pages/recordings.ecpp | 27 |
2 files changed, 43 insertions, 6 deletions
@@ -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> |