Skip to content

Commit

Permalink
Fix translation of schedule filter entries
Browse files Browse the repository at this point in the history
This commit uses 'QCoreApplication::translate' to translate the entries
of the schedule filter list as this allows to pass a translation context
which is needed to find the translations of these entries.
  • Loading branch information
hambre authored and linuxdude42 committed Sep 26, 2023
1 parent e66e173 commit c37aaa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/programs/mythfrontend/scheduleeditor.cpp
Expand Up @@ -2247,8 +2247,8 @@ void FilterOptMixin::Load(void)
{
while (query.next())
{
m_descriptions << QObject::tr(query.value(1).toString()
.toUtf8().constData());
m_descriptions << QCoreApplication::translate("SchedFilterEditor",
query.value(1).toString().toUtf8().constData());
}
}
m_loaded = true;
Expand Down

0 comments on commit c37aaa5

Please sign in to comment.