allow to translate property names

This commit is contained in:
wmayer
2016-12-29 14:20:55 +01:00
parent 8999391268
commit 5e9efe15c2
5 changed files with 32 additions and 6 deletions

View File

@@ -220,7 +220,7 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props)
App::Property* prop = jt->second.front();
const char* group = prop->getGroup();
bool isEmpty = (group == 0 || group[0] == '\0');
std::string grp = isEmpty ? "Base" : group;
std::string grp = isEmpty ? QT_TRANSLATE_NOOP("App::Property", "Base") : group;
propGroup[grp].push_back(jt->second);
}