~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/myththemedmenu.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-10-02 00:23:18 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20091002002318-5qu2fr0gxl59egft
Tags: 0.22.0~trunk22167-0ubuntu1
* New upstream checkout (r22167).
  - Fixes some segfaults.

Show diffs side-by-side

added added

removed removed

Lines of Context:
548
548
            }
549
549
            else if (info.tagName() == "description")
550
550
            {
551
 
                description = getFirstText(info);
 
551
                if ((description.isNull() || description.isEmpty()) &&
 
552
                    info.attribute("lang","").isEmpty())
 
553
                {
 
554
                    description = qApp->translate("ThemeUI",
 
555
                                            qPrintable(getFirstText(info)));
 
556
                }
 
557
                else if (info.attribute("lang","").toLower() ==
 
558
                         GetMythUI()->GetLanguageAndVariant())
 
559
                {
 
560
                    description = getFirstText(info);
 
561
                }
 
562
                else if (info.attribute("lang","").toLower() ==
 
563
                         GetMythUI()->GetLanguage())
 
564
                {
 
565
                    description = getFirstText(info);
 
566
                }
552
567
            }
553
568
            else if (info.tagName() == "password")
554
569
            {