mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-14 12:58:39 +03:00
fix: comment translation reload on language change
This commit is contained in:
parent
a06b940916
commit
03c5db3c91
@ -486,11 +486,14 @@ void AdministrativeTemplatesSnapIn::setMenuItemNames()
|
||||
|
||||
void AdministrativeTemplatesSnapIn::onRetranslateUI(const std::string &locale)
|
||||
{
|
||||
QString localeName = QString::fromStdString(locale);
|
||||
d->localeName = locale;
|
||||
d->policyBundleLoad();
|
||||
setMenuItemNames();
|
||||
d->filterDialog->onLanguageChanged();
|
||||
d->updateFilter();
|
||||
d->machineCommentsModel->load(d->machineCommentsPath + "/comment.cmtx", localeName);
|
||||
d->userCommentsModel->load(d->userCommentsPath + "/comment.cmtx", localeName);
|
||||
setRootNode(static_cast<QAbstractItemModel *>(d->filterModel.get()));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user