Permalink
Browse files

Fix translation of <template> in <clock> markup.

  • Loading branch information...
1 parent fe354d9 commit c49b78049f5846e5f78b9037b5f04ccbb7c014b0 @stuartm stuartm committed Apr 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythui/mythuiclock.cpp
@@ -86,6 +86,8 @@ bool MythUIClock::ParseElement(
element.tagName() == "template")
{
QString format = parseText(element);
+ format = qApp->translate("ThemeUI", format.toUtf8(), NULL,
+ QCoreApplication::UnicodeUTF8);
format.replace("%TIME%", m_TimeFormat, Qt::CaseInsensitive);
format.replace("%DATE%", m_DateFormat, Qt::CaseInsensitive);
format.replace("%SHORTDATE%", m_ShortDateFormat, Qt::CaseInsensitive);

0 comments on commit c49b780

Please sign in to comment.