Skip to content

Commit c49b780

Browse files
committed
Fix translation of <template> in <clock> markup.
1 parent fe354d9 commit c49b780

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mythtv/libs/libmythui/mythuiclock.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ bool MythUIClock::ParseElement(
8686
element.tagName() == "template")
8787
{
8888
QString format = parseText(element);
89+
format = qApp->translate("ThemeUI", format.toUtf8(), NULL,
90+
QCoreApplication::UnicodeUTF8);
8991
format.replace("%TIME%", m_TimeFormat, Qt::CaseInsensitive);
9092
format.replace("%DATE%", m_DateFormat, Qt::CaseInsensitive);
9193
format.replace("%SHORTDATE%", m_ShortDateFormat, Qt::CaseInsensitive);

0 commit comments

Comments
 (0)