Skip to content

Commit

Permalink
Fix the context of some strings are remove concaternations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Riendeau committed Jul 2, 2012
1 parent ea6ec5b commit c46be30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mythtv/libs/libmythtv/profilegroup.cpp
Expand Up @@ -45,7 +45,7 @@ ProfileGroup::ProfileGroup()
addChild(is_default = new Is_default(*this));

ConfigurationGroup* profile = new VerticalConfigurationGroup(false);
profile->setLabel(QObject::tr("ProfileGroup"));
profile->setLabel(tr("ProfileGroup"));
profile->addChild(name = new Name(*this));
CardInfo *cardInfo = new CardInfo(*this);
profile->addChild(cardInfo);
Expand Down Expand Up @@ -101,7 +101,7 @@ void ProfileGroup::fillSelections(SelectSetting* setting)
}

if (!tid.isEmpty())
setting->addSelection(QObject::tr("Transcoders"), tid);
setting->addSelection(tr("Transcoders"), tid);
}

QString ProfileGroup::getName(int group)
Expand Down Expand Up @@ -166,7 +166,7 @@ void ProfileGroupEditor::open(int id) {
}
else
{
pgName = QString(QObject::tr("New Profile Group Name"));
pgName = tr("New Profile Group Name");
profilegroup->setName(pgName);
newgroup = true;
}
Expand Down Expand Up @@ -234,7 +234,7 @@ void ProfileGroupEditor::Load(void)
{
listbox->clearSelections();
ProfileGroup::fillSelections(listbox);
listbox->addSelection(QObject::tr("(Create new profile group)"), "0");
listbox->addSelection(tr("(Create new profile group)"), "0");
}

DialogCode ProfileGroupEditor::exec(void)
Expand Down Expand Up @@ -286,14 +286,14 @@ void ProfileGroupEditor::callDelete(void)

if (result.exec() && result.next())
{
QString message = QObject::tr("Delete profile group:") +
QString("\n'%1'?").arg(ProfileGroup::getName(id));
QString message = QString(tr("Delete profile group:\n'%1'?"))
.arg(ProfileGroup::getName(id));

DialogCode value = MythPopupBox::Show2ButtonPopup(
GetMythMainWindow(),
"", message,
QObject::tr("Yes, delete group"),
QObject::tr("No, Don't delete group"), kDialogCodeButton1);
tr("Yes, delete group"),
tr("No, Don't delete group"), kDialogCodeButton1);

if (kDialogCodeButton0 == value)
{
Expand Down
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/profilegroup.h
Expand Up @@ -2,6 +2,7 @@
#define PROFILEGROUP_H

#include <QString>
#include <QCoreApplication>

#include "mythtvexp.h"
#include "settings.h"
Expand All @@ -28,6 +29,8 @@ class ProfileGroupStorage : public SimpleDBStorage

class ProfileGroup : public ConfigurationWizard
{
Q_DECLARE_TR_FUNCTIONS(ProfileGroup)

friend class ProfileGroupEditor;
protected:
class ID : public AutoIncrementDBSetting
Expand Down

0 comments on commit c46be30

Please sign in to comment.