From 0b3368c1675e774954068de6427d0fad282a9293 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jan 2011 22:34:12 +0200 Subject: Add new strings to translations (from inventory). Rebuild lang files. Update russian translation. --- src/gui/widgets/inventoryfilter.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/inventoryfilter.cpp') diff --git a/src/gui/widgets/inventoryfilter.cpp b/src/gui/widgets/inventoryfilter.cpp index aa2f2a5e4..7de7457ea 100644 --- a/src/gui/widgets/inventoryfilter.cpp +++ b/src/gui/widgets/inventoryfilter.cpp @@ -33,10 +33,15 @@ InventoryFilter::InventoryFilter(std::string group, int height, int spacing): void InventoryFilter::add(std::string tag) { - if (tag.empty()) + add(tag, tag); +} + +void InventoryFilter::add(std::string text, std::string tag) +{ + if (text.empty() || tag.empty()) return; - RadioButton *radio = new RadioButton(tag, mGroup, mCount == 0); + RadioButton *radio = new RadioButton(text, mGroup, mCount == 0); radio->adjustSize(); radio->setActionEventId(mActionEventId + tag); radio->addActionListener(this); -- cgit v1.2.3-60-g2f50