diff options
Diffstat (limited to 'kmyfirewall/core/iptchain.cpp')
-rw-r--r-- | kmyfirewall/core/iptchain.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kmyfirewall/core/iptchain.cpp b/kmyfirewall/core/iptchain.cpp index 14c4f1c..f5dfd0c 100644 --- a/kmyfirewall/core/iptchain.cpp +++ b/kmyfirewall/core/iptchain.cpp @@ -140,7 +140,7 @@ IPTRule* IPTChain::addRule( const TQString& rule_name, KMFError *err, int index TQString tmp_name = m_ruleset.at( i ) ->name(); if ( tmp_name == name ) { err->setErrType(KMFError::NORMAL); - err->setErrMsg( i18n( "<qt><p>Unable to add rule: <b>%1</b> into chain: <b>%2</b>.<br>There is already a rule defined with that name. Please try again with another name (must be unique in that chain).</p></qt>" ).tqarg( tmp_name ).tqarg( NetfilterObject::name() ) ); + err->setErrMsg( i18n( "<qt><p>Unable to add rule: <b>%1</b> into chain: <b>%2</b>.<br>There is already a rule defined with that name. Please try again with another name (must be unique in that chain).</p></qt>" ).arg( tmp_name ).arg( NetfilterObject::name() ) ); return 0; } } @@ -158,7 +158,7 @@ IPTRule* IPTChain::addRule( const TQString& rule_name, KMFError *err, int index } else { if ( index < 0 || index > (int) chainRuleset().count() - -1 ) { err->setErrType(KMFError::FATAL); - err->setErrMsg( i18n("Cannot insert rule at %1 This is a bug ;-(").tqarg( index ) ); + err->setErrMsg( i18n("Cannot insert rule at %1 This is a bug ;-(").arg( index ) ); return 0; } kdDebug() << "IPTChain::addRule: inserting rule at: " << index << endl; @@ -182,7 +182,7 @@ KMFError* IPTChain::delRule( IPTRule* rule ) { rule->deleteLater(); rule = 0; m_err->setErrType( KMFError::FATAL ); - const TQString& msg = i18n( "Sorry, can't find Rule: %1 in the Ruleset of this chain." ).tqarg( rule->name() ); + const TQString& msg = i18n( "Sorry, can't find Rule: %1 in the Ruleset of this chain." ).arg( rule->name() ); m_err->setErrMsg( msg ); return m_err; } @@ -192,7 +192,7 @@ KMFError* IPTChain::delRule( IPTRule* rule ) { return m_err; } else { m_err->setErrType( KMFError::FATAL ); - const TQString& msg = i18n( "Sorry, can't find Rule: %1 in the Ruleset of this chain." ).tqarg( rule->name() ); + const TQString& msg = i18n( "Sorry, can't find Rule: %1 in the Ruleset of this chain." ).arg( rule->name() ); m_err->setErrMsg( msg ); return m_err; } @@ -539,7 +539,7 @@ TQPtrList<TQStringList>& IPTChain::createIPTablesChainRules() { } kdDebug() << chain_log << endl; TQStringList* chainDefs = new TQStringList(); - TQString rule_name = i18n( "Chain: %1 Drop Logging" ).tqarg( name() ); + TQString rule_name = i18n( "Chain: %1 Drop Logging" ).arg( name() ); chainDefs->append( rule_name ); chainDefs->append( chain_log ); all_rules->append( chainDefs ); @@ -548,7 +548,7 @@ TQPtrList<TQStringList>& IPTChain::createIPTablesChainRules() { if ( has_default_target && !m_cmd_default_target.isEmpty() ) { TQString deftg = createIPTablesChainDefaultTarget(); TQStringList* chainDefs = new TQStringList(); - TQString rule_name = i18n( "Chain: %1 Default Target" ).tqarg( name() ); + TQString rule_name = i18n( "Chain: %1 Default Target" ).arg( name() ); chainDefs->append( rule_name ); chainDefs->append( deftg ); all_rules->append( chainDefs ); |