Commit f938a9be authored by Yuri Chornoivan's avatar Yuri Chornoivan

Make effect names translatable in menus and in settings panel

parent 27f98f31
Pipeline #6200 passed with stage
in 20 minutes and 9 seconds
......@@ -138,7 +138,7 @@ void EffectTreeModel::reloadAssetMenu(QMenu *effectsMenu, KActionCategory *effec
effectsMenu->addMenu(catMenu);
for (int j = 0; j < item->childCount(); j++) {
std::shared_ptr<TreeItem> child = item->child(j);
QAction *a = new QAction(child->dataColumn(nameCol).toString(), catMenu);
QAction *a = new QAction(i18n(child->dataColumn(nameCol).toString().toUtf8().data()), catMenu);
const QString id = child->dataColumn(idCol).toString();
a->setData(id);
catMenu->addAction(a);
......
......@@ -57,7 +57,7 @@ CollapsibleEffectView::CollapsibleEffectView(const std::shared_ptr<EffectItemMod
, m_regionEffect(false)
{
QString effectId = effectModel->getAssetId();
QString effectName = EffectsRepository::get()->getName(effectId);
QString effectName = i18n(EffectsRepository::get()->getName(effectId).toUtf8().data());
if (effectId == QLatin1String("region")) {
m_regionEffect = true;
decoframe->setObjectName(QStringLiteral("decoframegroup"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment