Skip to content

Commit

Permalink
Translation context change and removal of concatenated string.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Riendeau committed Jul 19, 2013
1 parent ff20c84 commit 1912ef7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 10 additions & 5 deletions mythtv/libs/libmythtv/channelgroupsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ void ChannelGroupStorage::Save(QString destination)

class ChannelCheckBox : public CheckBoxSetting, public ChannelGroupStorage
{
Q_DECLARE_TR_FUNCTIONS(ChannelCheckBox)

public:
ChannelCheckBox(const ChannelGroupConfig& _parent, const uint chanid, const QString channum,
const QString channame, const QString grpname):
CheckBoxSetting(this),
ChannelGroupStorage(this, chanid, grpname)
{
setLabel(QString("%1 %2").arg(channum).arg(channame));
setHelpText(QObject::tr("Select/Unselect channels for this channel group"));
//: %1 is the channel number, %2 is the channel name
setLabel(tr("%1 %2", "Channel number with channel name")
.arg(channum).arg(channame));
setHelpText(tr("Select/Unselect channels for this channel group"));
};
};

Expand All @@ -106,9 +110,10 @@ ChannelGroupConfig::ChannelGroupConfig(QString _name)
do
{
columns = new HorizontalConfigurationGroup(false,false,false,false);
columns->setLabel(getName() + " " +
QObject::tr("Channel Group - Page ") + QString("%1").arg(p) +
QObject::tr("of") + QString("%1").arg(pages));
columns->setLabel(tr("%1 Channel Group - Page %2 of %3")
.arg(getName())
.arg(p)
.arg(pages));

for (j = 0; ((j < 3) && (it < chanlist.end())); ++j)
{
Expand Down
6 changes: 6 additions & 0 deletions mythtv/libs/libmythtv/channelgroupsettings.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#ifndef CHANNELGROUPSETTINGS_H
#define CHANNELGROUPSETTINGS_H

// Qt headers
#include <QCoreApplication>

// MythTV headers
#include "mythtvexp.h"
#include "settings.h"

class MTV_PUBLIC ChannelGroupConfig: public ConfigurationWizard
{
Q_DECLARE_TR_FUNCTIONS(ChannelGroupConfig)

public:
ChannelGroupConfig(QString _name);
QString getName(void) const { return name; }
Expand Down

0 comments on commit 1912ef7

Please sign in to comment.