From 92613bd473ee262d157ce4d562a7c77ecf696daa Mon Sep 17 00:00:00 2001 From: chriszero Date: Sat, 28 Feb 2015 13:23:18 +0100 Subject: Added translation. de_DE --- plex.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plex.cpp') diff --git a/plex.cpp b/plex.cpp index a8ad435..e34cd0e 100644 --- a/plex.cpp +++ b/plex.cpp @@ -46,7 +46,7 @@ void cPlexBrowser::CreateMenu() for(std::vector::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( &(*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( &(*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"); } -- cgit v1.2.3