mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
CComponentsItemBox: use also locales in overloaded methode addText()
This commit is contained in:
@@ -363,6 +363,7 @@ class CComponentsItemBox : public CComponentsContainer
|
|||||||
virtual bool addLogoOrText(int align, const std::string& logo, const std::string& text, size_t *index=NULL);
|
virtual bool addLogoOrText(int align, const std::string& logo, const std::string& text, size_t *index=NULL);
|
||||||
virtual void clearTitlebar();
|
virtual void clearTitlebar();
|
||||||
virtual void addText(const std::string& s_text, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
virtual void addText(const std::string& s_text, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
||||||
|
virtual void addText(neutrino_locale_t locale_text, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
||||||
virtual void addIcon(const std::string& s_icon_name, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
virtual void addIcon(const std::string& s_icon_name, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
||||||
virtual void addPicture(const std::string& s_picture_path, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
virtual void addPicture(const std::string& s_picture_path, const int align=CC_ALIGN_LEFT, size_t *index=NULL);
|
||||||
virtual void addClock(const int align=CC_ALIGN_RIGHT, size_t *index=NULL);
|
virtual void addClock(const int align=CC_ALIGN_RIGHT, size_t *index=NULL);
|
||||||
|
@@ -918,6 +918,11 @@ void CComponentsItemBox::addText(const std::string& s_text, const int align, siz
|
|||||||
addElement(align, CC_ITEMBOX_TEXT, s_text, index);
|
addElement(align, CC_ITEMBOX_TEXT, s_text, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CComponentsItemBox::addText(neutrino_locale_t locale_text, const int align, size_t *index)
|
||||||
|
{
|
||||||
|
addElement(align, CC_ITEMBOX_TEXT, g_Locale->getText(locale_text), index);
|
||||||
|
}
|
||||||
|
|
||||||
void CComponentsItemBox::addIcon(const std::string& s_icon_name, const int align, size_t *index)
|
void CComponentsItemBox::addIcon(const std::string& s_icon_name, const int align, size_t *index)
|
||||||
{
|
{
|
||||||
addElement(align, CC_ITEMBOX_ICON, s_icon_name, index);
|
addElement(align, CC_ITEMBOX_ICON, s_icon_name, index);
|
||||||
|
Reference in New Issue
Block a user