mirror of https://github.com/vitalif/openscad
Hardcode example categories to make them easier to translate
parent
66230e2680
commit
a4bbf2063b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue