From f5f819f598fdc541f5cdafc208c05bb8c839550f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 29 Mar 2012 13:13:33 +0400 Subject: [PATCH] gui/bouquetlist.cpp: use locals for HD and other bouquets --- src/gui/bouquetlist.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp index 62774d385..8650ff7b3 100644 --- a/src/gui/bouquetlist.cpp +++ b/src/gui/bouquetlist.cpp @@ -81,7 +81,15 @@ CBouquetList::~CBouquetList() CBouquet* CBouquetList::addBouquet(CZapitBouquet * zapitBouquet) { int BouquetKey= Bouquets.size();//FIXME not used ? - CBouquet* tmp = new CBouquet(BouquetKey, zapitBouquet->bFav ? g_Locale->getText(LOCALE_FAVORITES_BOUQUETNAME) : zapitBouquet->Name.c_str(), zapitBouquet->bLocked); + const char * bname; + if (zapitBouquet->bFav) + bname = g_Locale->getText(LOCALE_FAVORITES_BOUQUETNAME); + else if (zapitBouquet->bOther) + bname = g_Locale->getText(LOCALE_BOUQUETNAME_OTHER); + else + bname = zapitBouquet->Name.c_str(); + + CBouquet* tmp = new CBouquet(BouquetKey, bname, zapitBouquet->bLocked); tmp->zapitBouquet = zapitBouquet; Bouquets.push_back(tmp); return tmp;