Make deck editor filter translatable ; extracted new translations; Fix #3488 (#3490)

* Fix #3488 ; extracted new translations

* Make operators translatable, too
This commit is contained in:
ctrlaltca 2019-01-08 03:50:36 +01:00 committed by Zach H
parent 463ef13fe0
commit 4eda7cda9e
7 changed files with 1216 additions and 1019 deletions

View file

@ -54,18 +54,14 @@ public:
{
return (parent() != NULL) ? parent()->childIndex(this) : -1;
}
virtual QString text() const
virtual const QString text() const
{
return QString(textCStr());
return QString("");
}
virtual bool isLeaf() const
{
return false;
}
virtual const char *textCStr() const
{
return "";
}
virtual void nodeChanged() const
{
if (parent() != NULL)
@ -126,7 +122,7 @@ public:
const FilterItemList *findTypeList(CardFilter::Type type) const;
FilterItemList *typeList(CardFilter::Type type);
FilterTreeNode *parent() const;
const char *textCStr() const
const QString text() const
{
return CardFilter::attrName(attr);
}
@ -154,7 +150,7 @@ public:
}
int termIndex(const QString &term) const;
FilterTreeNode *termNode(const QString &term);
const char *textCStr() const
const QString text() const
{
return CardFilter::typeName(type);
}
@ -190,14 +186,10 @@ public:
{
return p;
}
QString text() const
const QString text() const
{
return term;
}
const char *textCStr() const
{
return term.toStdString().c_str();
}
bool isLeaf() const
{
return true;
@ -263,9 +255,9 @@ public:
FilterTreeNode *termNode(CardFilter::Attr attr, CardFilter::Type type, const QString &term);
FilterTreeNode *termNode(const CardFilter *f);
FilterTreeNode *attrTypeNode(CardFilter::Attr attr, CardFilter::Type type);
const char *textCStr() const
const QString text() const
{
return "root";
return QString("root");
}
int index() const
{