diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index 1f5694919..791bdf9e1 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -105,7 +105,7 @@ void CComponentsHeader::initVarHeader() cch_text_obj = NULL; cch_icon_name = NULL; cch_btn_obj = NULL; - cch_text = "header"; + cch_text = ""; cch_locale_text = NONEXISTANT_LOCALE; cch_col_text = COL_MENUHEAD; cch_items_y = 0; @@ -136,7 +136,7 @@ void CComponentsHeader::setHeaderText(const std::string& caption) void CComponentsHeader::setHeaderText(neutrino_locale_t caption_locale) { - cch_text = g_Locale->getText(caption_locale); + cch_locale_text = caption_locale; } void CComponentsHeader::setHeaderIcon(const char* icon_name) @@ -285,7 +285,10 @@ void CComponentsHeader::initCCHeaderText() //set header text properties if (cch_text_obj){ - cch_text_obj->setText(cch_text, CTextBox::AUTO_WIDTH, cch_font); + if (cch_locale_text != NONEXISTANT_LOCALE) + cch_text_obj->setText(cch_locale_text, CTextBox::AUTO_WIDTH, cch_font); + else + cch_text_obj->setText(cch_text, CTextBox::AUTO_WIDTH, cch_font); cch_text_obj->forceTextPaint(); //here required cch_text_obj->setDimensionsAll(cch_text_x, cch_items_y, width-cch_icon_w-fr_thickness, height-2*fr_thickness); cch_text_obj->setTextColor(cch_col_text);