diff options
-rw-r--r-- | Makefile | 25 | ||||
-rw-r--r-- | plex.cpp | 10 | ||||
-rw-r--r-- | po/.gitignore | 7 | ||||
-rw-r--r-- | po/de_DE.po | 150 | ||||
-rw-r--r-- | translation.cpp | 30 |
5 files changed, 210 insertions, 12 deletions
@@ -82,8 +82,27 @@ override CFLAGS += $(_CFLAGS) $(DEFINES) $(INCLUDES) \ ### The object files (add further files here): -OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) -OBJS += $(patsubst %.cpp,%.o,$(wildcard *.cpp)) +OBJS = $(PLUGIN).o \ + Config.o \ + ControlServer.o \ + cPlexOsdItem.o \ + m3u8Parser.o \ + hlsPlayer.o \ + hlsPlayerControl.o \ + plexgdm.o \ + PlexHelper.o \ + Plexservice.o \ + PlexServer.o \ + PlexHTTPRequestHandler.o \ + PlexReqHandlerFactory.o \ + SubscriptionManager.o \ + user.o \ + XmlObject.o \ + MediaContainer.o \ + Directory.o \ + PVideo.o \ + Stream.o \ + Media.o \ SRCS = $(wildcard $(OBJS:.o=.c)) $(PLUGIN).cpp @@ -111,7 +130,7 @@ I18Npot = $(PODIR)/$(PLUGIN).pot %.mo: %.po msgfmt -c -o $@ $< -$(I18Npot): $(SRCS) +$(I18Npot): $(wildcard *.cpp) xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^` %.po: $(I18Npot) @@ -46,7 +46,7 @@ void cPlexBrowser::CreateMenu() for(std::vector<plexclient::Directory>::iterator it = pCont->m_vDirectories.begin(); it != pCont->m_vDirectories.end(); ++it) { plexclient::Directory *pDir = &(*it); - Add(new cPlexOsdItem( pDir->GetTitle().c_str(), pDir) ); + Add(new cPlexOsdItem( tr(pDir->GetTitle().c_str()), pDir) ); } } @@ -196,15 +196,15 @@ cPlayMenu::cPlayMenu(const char *title, int c0, int c1, int c2, int c3, int c4) //&(*it) auto s1 = std::make_shared<plexclient::Plexservice>( &(*it) ); s1->StartUri = "/library/sections"; - Add(new cPlexOsdItem(Poco::format("%s - Library", it->GetServerName()).c_str(), s1)); + Add(new cPlexOsdItem(Poco::format(tr("%s - Library"), it->GetServerName()).c_str(), s1)); auto s2 = std::make_shared<plexclient::Plexservice>( &(*it) ); s2->StartUri = "/video"; - Add(new cPlexOsdItem(Poco::format("%s - Video Channels", it->GetServerName()).c_str(), s2 )); + Add(new cPlexOsdItem(Poco::format(tr("%s - Video Channels"), it->GetServerName()).c_str(), s2 )); } if(Count() < 1) { - Add(new cPlexOsdItem("No Plex Media Server found."), false); + Add(new cPlexOsdItem(tr("No Plex Media Server found.")), false); } } @@ -332,7 +332,7 @@ cOsdObject *cMyPlugin::MainMenuAction(void) } if (ShowBrowser) { - return new cPlexBrowser("Browse Plex", pPlexService); + return new cPlexBrowser(tr("Browse Plex"), pPlexService); } return new cPlayMenu("Plex"); } diff --git a/po/.gitignore b/po/.gitignore index 5e7d273..0b97e36 100644 --- a/po/.gitignore +++ b/po/.gitignore @@ -1,4 +1,3 @@ -# Ignore everything in this directory -* -# Except this file -!.gitignore +# Ignore +*.pot +*~ diff --git a/po/de_DE.po b/po/de_DE.po new file mode 100644 index 0000000..082b262 --- /dev/null +++ b/po/de_DE.po @@ -0,0 +1,150 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Chris, 2015. +# Chris <zerov83@gmail.com>, 2015. +msgid "" +msgstr "" +"Project-Id-Version: vdr-plex 0.1.0\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2015-02-28 13:12+0100\n" +"PO-Revision-Date: 2015-02-28 12:58+0200\n" +"Last-Translator: Chris <zerov83@gmail.com>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Virtaal 0.7.1\n" + +msgid "Hide main menu entry" +msgstr "Verstecke Hauptmenüeintrag" + +msgid "Use custom transcoding profile" +msgstr "Benutze eigenes Transcoder Profil" + +msgid "Use Plex account" +msgstr "Nutze Plex-Account" + +msgid "Plex Username" +msgstr "Plex Benutzername" + +msgid "Plex Password" +msgstr "Plex Passwort" + +msgid "Current UUID" +msgstr "Aktuelle UUID" + +msgid "Stop" +msgstr "Stop" + +#, c-format +msgid "%s - Select Audio / Subtitle" +msgstr "%s - Wähle Ton / Untertitel" + +msgid "Audiostreams" +msgstr "Tonspuren" + +#, c-format +msgid "%s%s - %s %d Channels" +msgstr "%s%s - %s %d Kanäle" + +msgid "Subtitlestreams" +msgstr "Untertitelspuren" + +msgid "None" +msgstr "Leer" + +#, c-format +msgid "%s - Library" +msgstr "%s - Bilbliotek" + +#, c-format +msgid "%s - Video Channels" +msgstr "%s - Video Kanäle" + +msgid "No Plex Media Server found." +msgstr "Kein Plexmediaserver gefunden." + +msgid "Browse Plex" +msgstr "Durchsuche Plex" + +#, c-format +msgid "To start from %ld minutes, press Ok." +msgstr "Wiedergabe ab Minute %ld starten?" + +msgid "All Movies" +msgstr "Alle Filme" + +msgid "Unwatched" +msgstr "Ungesehen" + +msgid "Recently Released" +msgstr "Kürzlich veröffentlicht" + +msgid "Recently Added" +msgstr "Kürzlich hinzugefügt" + +msgid "Recently Viewed" +msgstr "Kürzlich angesehen" + +msgid "On Deck" +msgstr "Aktuell" + +msgid "By Collection" +msgstr "Nach Sammlung" + +msgid "By Genre" +msgstr "Nach Genre" + +msgid "By Year" +msgstr "Nach Jahr" + +msgid "By Decade" +msgstr "Nach Jahrzehnt" + +msgid "By Director" +msgstr "Nach Regisseur" + +msgid "By Starring Actor" +msgstr "Nach Hauptdarsteller" + +msgid "By Country" +msgstr "Nach Land" + +msgid "By Content Rating" +msgstr "Nach Altersfreigabe" + +msgid "By Rating" +msgstr "Nach Bewertung" + +msgid "By Resolution" +msgstr "Nach Auflösung" + +msgid "By First Letter" +msgstr "Nach Anfangsbuchstaben" + +msgid "By Folder" +msgstr "Nach Ordner" + +msgid "Search..." +msgstr "Suche..." + +msgid "Search Shows..." +msgstr "Suche Serie..." + +msgid "Search Episode..." +msgstr "Suche Folge..." + +msgid "All Shows" +msgstr "Alle Serien" + +msgid "Recently Aired" +msgstr "Kürzlich Ausgestrahlt" + +msgid "Recently Viewed Episodes" +msgstr "Kürzlich angesehene Folgen" + +msgid "Recently Viewed Shows" +msgstr "Kürzlich angesehene Serien" diff --git a/translation.cpp b/translation.cpp new file mode 100644 index 0000000..d20ad18 --- /dev/null +++ b/translation.cpp @@ -0,0 +1,30 @@ +/* + Static strings for translating the Plex menu + this file is just for xgettext, it must not be compiled +*/ + +trNOOP("All Movies"); +trNOOP("Unwatched"); +trNOOP("Recently Released"); +trNOOP("Recently Added"); +trNOOP("Recently Viewed"); +trNOOP("On Deck"); +trNOOP("By Collection"); +trNOOP("By Genre"); +trNOOP("By Year"); +trNOOP("By Decade"); +trNOOP("By Director"); +trNOOP("By Starring Actor"); +trNOOP("By Country"); +trNOOP("By Content Rating"); +trNOOP("By Rating"); +trNOOP("By Resolution"); +trNOOP("By First Letter"); +trNOOP("By Folder"); +trNOOP("Search..."); +trNOOP("Search Shows..."); +trNOOP("Search Episode..."); +trNOOP("All Shows"); +trNOOP("Recently Aired"); +trNOOP("Recently Viewed Episodes"); +trNOOP("Recently Viewed Shows");
\ No newline at end of file |