Hardcode example categories to make them easier to translate

master
Marius Kintel 2015-03-05 14:49:19 -05:00
parent 66230e2680
commit a4bbf2063b
1 changed files with 1 additions and 11 deletions

View File

@ -106,17 +106,7 @@ QStringList UIUtils::exampleCategories()
{
// categories in File menu item - Examples
QStringList categories;
ptree *pt = examplesTree();
if (pt) {
BOOST_FOREACH(const ptree::value_type &v, *pt) {
// v.first is the name of the child.
// v.second is the child tree.
categories << QString::fromStdString(v.first);
}
}
// FIXME: How do we get these translated if we read them from JSON?
// categories << N_("Basics") << N_("Functions") << N_("Shapes") << N_("Extrusion") << N_("Advanced");
categories << N_("Basics") << N_("Functions") << N_("Shapes") << N_("Extrusion") << N_("Advanced") << N_("Old");
return categories;
}