diff options
author | wr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b> | 2005-02-21 13:39:39 +0000 |
---|---|---|
committer | wr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b> | 2005-02-21 13:39:39 +0000 |
commit | fe019cb9e1bba281e2c402df7282c6ca39b4b222 (patch) | |
tree | 9e485953fe22e74f168d102f445763153a5dd630 | |
parent | 76e5306e64dd84a80f94f7c4b284363bd718f2e2 (diff) | |
download | vdr-plugin-muggle-fe019cb9e1bba281e2c402df7282c6ca39b4b222.tar.gz vdr-plugin-muggle-fe019cb9e1bba281e2c402df7282c6ca39b4b222.tar.bz2 |
show language names in locale language
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/branches/0.1.3-wr@508 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r-- | mg_actions.c | 3 | ||||
-rw-r--r-- | mg_db.c | 4 | ||||
-rw-r--r-- | mg_db.h | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/mg_actions.c b/mg_actions.c index 1f80325..95f821c 100644 --- a/mg_actions.c +++ b/mg_actions.c @@ -10,6 +10,7 @@ */ #include <stdio.h> +#include <libintl.h> #include <typeinfo> #include <string> @@ -329,6 +330,8 @@ mgEntry::MenuName(const unsigned int idx,const string value) } else if (selection()->inCollection()) asprintf(&result,"%4d %s%s",idx,value.c_str(),ct); + else if (selection()->isLanguagelist()) + asprintf(&result,"%s%s",dgettext("iso_639",value.c_str()),ct); else asprintf(&result,"%s%s",value.c_str(),ct); return result; @@ -1259,6 +1259,10 @@ mgSelection::UsedBefore(mgOrder *o,const mgKeyTypes kt,unsigned int level) const return false; } +bool mgSelection::isLanguagelist() const +{ + return (order.getKeyType(0) == keyLanguage); +} bool mgSelection::isCollectionlist () const { @@ -476,6 +476,10 @@ class mgSelection */ bool isCollectionlist () const; +/*! \brief true if this selection currently selects a list of languages + */ + bool isLanguagelist () const; + //! \brief true if we have entered a collection bool inCollection(const string Name="") const; |