diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/custommainmenuitem.cpp | 4 | ||||
-rw-r--r-- | src/i18n.cpp | 48 | ||||
-rw-r--r-- | src/i18n.h | 30 | ||||
-rw-r--r-- | src/menuorg.cpp | 7 |
4 files changed, 84 insertions, 5 deletions
diff --git a/src/custommainmenuitem.cpp b/src/custommainmenuitem.cpp index 15c8a14..68c9e95 100644 --- a/src/custommainmenuitem.cpp +++ b/src/custommainmenuitem.cpp @@ -24,12 +24,12 @@ CustomMainMenuItem::CustomMainMenuItem(cOsdItem* osdItem) { - _osdItem = osdItem; + _osdItem = osdItem; } bool CustomMainMenuItem::IsCustomMenuItem() { - return true; + return true; } bool CustomMainMenuItem::IsPluginMenuItem() diff --git a/src/i18n.cpp b/src/i18n.cpp new file mode 100644 index 0000000..4ab94b2 --- /dev/null +++ b/src/i18n.cpp @@ -0,0 +1,48 @@ +/* + * vdr-submenu - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 Thomas Creutz <thomas.creutz@gmx.de> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * $Id$ + * + */ + +#include "i18n.h" + +const tI18nPhrase Phrases[] = +{ + { + "failed to load XML file", + "Konnte XML Datei nicht laden", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + }, + { NULL } +}; diff --git a/src/i18n.h b/src/i18n.h new file mode 100644 index 0000000..722b16f --- /dev/null +++ b/src/i18n.h @@ -0,0 +1,30 @@ +/* + * vdr-submenu - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 Thomas Creutz <thomas.creutz@gmx.de> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * $Id$ + * + */ + +#ifndef _I18N__H +#define _I18N__H + +#include <vdr/i18n.h> + +extern const tI18nPhrase Phrases[]; + +#endif diff --git a/src/menuorg.cpp b/src/menuorg.cpp index 0663ca0..3e56982 100644 --- a/src/menuorg.cpp +++ b/src/menuorg.cpp @@ -12,6 +12,7 @@ #include <vector> #include "version.h" #include "menuorg.h" +#include "i18n.h" using namespace SubMenuPatch; @@ -22,7 +23,6 @@ MenuOrgPlugin::MenuOrgPlugin(void) // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! } - MenuOrgPlugin::~MenuOrgPlugin() { // Clean up after yourself! @@ -43,7 +43,7 @@ const char* MenuOrgPlugin::MainMenuEntry(void) { if(_subMenuProvider->getSomeError()) { - return tr("Failed to load XML File"); + return tr("failed to load XML file"); } else return NULL; @@ -64,7 +64,7 @@ bool MenuOrgPlugin::ProcessArgs(int argc, char *argv[]) bool MenuOrgPlugin::Initialize(void) { _subMenuProvider = new SubMenuProvider(); - // Initialize any background activities the plugin shall perform. + RegisterI18n(Phrases); return true; } @@ -112,6 +112,7 @@ cMenuSetupPage *MenuOrgPlugin::SetupMenu(void) bool MenuOrgPlugin::SetupParse(const char *Name, const char *Value) { // Parse your own setup parameters and store their values. + //TODO: move code for load the xml file to this position return false; } |