CComponentsItemBox: use also locales in overloaded methode addText()

Origin commit data
------------------
Commit: 2c5367bc59
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-04 (Tue, 04 Sep 2012)
This commit is contained in:
2012-09-04 09:45:32 +02:00
parent d8528eee79
commit 3a9fd29a20
2 changed files with 6 additions and 0 deletions

View File

@@ -918,6 +918,11 @@ void CComponentsItemBox::addText(const std::string& s_text, const int align, siz
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)
{
addElement(align, CC_ITEMBOX_ICON, s_icon_name, index);