m_compiledScript.append(TQString("\n# Settup rules for zone %1 [%2/%3]\n").tqarg(zone->guiName()).tqarg(zone->address()->toString()).tqarg(zone->maskLength()));
m_compiledScript.append(TQString("\n# Settup rules for zone %1 [%2/%3]\n").arg(zone->guiName()).arg(zone->address()->toString()).arg(zone->maskLength()));
m_compiledScript.append(TQString("\n# Settup rules for zone %1 [%2/%3]\n").tqarg(zone->guiName()).tqarg(zone->address()->toString()).tqarg(zone->maskLength()));
m_compiledScript.append(TQString("\n# Settup rules for zone %1 [%2/%3]\n").arg(zone->guiName()).arg(zone->address()->toString()).arg(zone->maskLength()));
@ -140,7 +140,7 @@ IPTRule* IPTChain::addRule( const TQString& rule_name, KMFError *err, int index
TQStringtmp_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()));
return0;
}
}
@ -158,7 +158,7 @@ IPTRule* IPTChain::addRule( const TQString& rule_name, KMFError *err, int index
@ -75,7 +75,7 @@ The entries are written to the system's main log file
<property name="textFormat">
<enum>RichText</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -114,7 +114,7 @@ The entries are written to the system's main log file
<property name="text">
<string><p>The logprefix is a string that is prepended to the lines written to your log file to help you find the lines you need.</p></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop|AlignLeft</set>
</property>
<property name="vAlign" stdset="0">
@ -151,7 +151,7 @@ The entries are written to the system's main log file
<property name="text">
<string><p>Avoid "Denial of Service" attacks by limiting logging.</p></string>
KMessageBox::error(KApplication::kApplication()->mainWidget(),i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").tqarg(rulesetDoc()->target()->toFriendlyString()));
KMessageBox::error(KApplication::kApplication()->mainWidget(),i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").arg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->runCmd(cmd,Constants::StopFirewallJob_Name,i18n("Stop Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()),true);
execWidget()->runCmd(cmd,Constants::StopFirewallJob_Name,i18n("Stop Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()),true);
showOutput();
checkStatus();
}else{
setOutputWidget(execWidget());
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->runCmd(cmd,Constants::ShowConfigJob_Name,i18n("Show Table %1 on %2").tqarg(para).tqarg(rulesetDoc()->target()->toFriendlyString()),true);
execWidget()->runCmd(cmd,Constants::ShowConfigJob_Name,i18n("Show Table %1 on %2").arg(para).arg(rulesetDoc()->target()->toFriendlyString()),true);
showOutput();
}else{
setOutputWidget(execWidget());
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(KProcessWrapper::instance()->stdOut(),i18n("Show Table %1 on %2").tqarg(para).tqarg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(KProcessWrapper::instance()->stdOut(),i18n("Show Table %1 on %2").arg(para).arg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->runCmd(cmd,Constants::InstallFirewallJob_Name,i18n("Install Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()),true);
execWidget()->runCmd(cmd,Constants::InstallFirewallJob_Name,i18n("Install Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()),true);
showOutput();
checkStatus();
}else{
setOutputWidget(execWidget());
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->runCmd(cmd,Constants::UninstallFirewallJob_Name,i18n("Uninstall Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()),true);
execWidget()->runCmd(cmd,Constants::UninstallFirewallJob_Name,i18n("Uninstall Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()),true);
showOutput();
checkStatus();
}else{
setOutputWidget(execWidget());
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").tqarg(rulesetDoc()->target()->toFriendlyString()));
execWidget()->setText(i18n("Please wait while the scripts are uploaded and executed..."),i18n("Install Firewall on %1").arg(rulesetDoc()->target()->toFriendlyString()));
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").tqarg( para ).tqarg( rulesetDoc()->target()->toFriendlyString() ), true );
// execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
//
// } else {
// setOutputWidget( execWidget() );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").tqarg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
<string>Please set the default policy for your chain:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
@ -475,7 +475,7 @@
<property name="text">
<string>User defined chains do not have any "Default Policy" set because the packets return to the chain from which this chain is fed, right after the rule that fed the chain. If you want your user defined chains to act like built-in chains, enable the option "Define Default Policy" and set the policy to your needs.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
@ -496,7 +496,7 @@
<property name="text">
<string>The Default Policy decides what to do with Packets that do not match any of the rules defined for the Chain.</string>
KMessageBox::error(this,i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").tqarg(m_target->toFriendlyString()));
KMessageBox::error(this,i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").arg(m_target->toFriendlyString()));
KMessageBox::error(0,i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").tqarg(m_target->toFriendlyString()));
KMessageBox::error(0,i18n("<qt><p>Auto Confguration of: %1 could not determinate all needed setting. You'll need to configure the mmissing settings.</p></qt>").arg(m_target->toFriendlyString()));
@ -232,14 +232,14 @@ void KMFNetHostPropertiesWidget::slotHostLimitValueChanged( int ) {
if(m_cb_host_limit->isChecked()){
KMFUndoEngine::instance()->startTransaction(
m_host,
i18n("Change package limit for host %1 to %2/%3.").tqarg(m_host->guiName()).tqarg(m_sb_host_rate->value()).tqarg(m_cb_limit_host_interval->currentText())
i18n("Change package limit for host %1 to %2/%3.").arg(m_host->guiName()).arg(m_sb_host_rate->value()).arg(m_cb_limit_host_interval->currentText())
@ -255,14 +255,14 @@ void KMFNetHostPropertiesWidget::slotHostLimitScaleChanged( int ) {
if(m_cb_host_limit->isChecked()){
KMFUndoEngine::instance()->startTransaction(
m_host,
i18n("Change package limit for host %1 to %2/%3.").tqarg(m_host->guiName()).tqarg(m_sb_host_rate->value()).tqarg(m_cb_limit_host_interval->currentText())
i18n("Change package limit for host %1 to %2/%3.").arg(m_host->guiName()).arg(m_sb_host_rate->value()).arg(m_cb_limit_host_interval->currentText())
<string>Here you can configure several general options that your firewall has.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignCenter</set>
</property>
</widget>
@ -85,7 +85,7 @@
<property name="text">
<string>Enable the iptables you like to use in your firewall.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -264,7 +264,7 @@
<property name="text">
<string><b>Enable this if you compiled iptables as modules</b>. For details about the required modules, take a look at the iptables man page.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -283,7 +283,7 @@
<property name="text">
<string><b>Enable this if your host should act as a router</b>.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -294,7 +294,7 @@
<property name="text">
<string><b>Enable if you like to use Syn Cookies.</b> (needs support compiled in the kernel)</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -313,7 +313,7 @@
<property name="text">
<string><b>Enable</b> if you like to use <b>Reverse Parse Filtering</b>.</string>
<string>As Gentoo and Slackware are using non-standard SysV init system it is required to select your distibution in order to make the firewall install properly into your boot setup.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -71,7 +71,7 @@
<property name="text">
<string>Path to the defaul <b> runlevel</b> directoy:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -82,7 +82,7 @@
<property name="text">
<string>Path to the <b>init</b> directory:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -93,7 +93,7 @@
<property name="text">
<string>Path to the <b>modprobe</b> program:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -112,7 +112,7 @@
<property name="text">
<string>Path to the <b>iptables</b> binary:</string>
<string><b>ATTENTION: </b>Not All options are not always allowed! The program will attempt to check your settings, but as usual options may be accepted even if the configuration is not valid. If you get error messages at firewall startup, make sure that your configuration is valid. Have a look at the help or the "iptables" man page for more details.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
@ -117,7 +117,7 @@
<property name="text">
<string>The incoming interface is only valid in the INPUT and FORWARD chains, and chains that are fed only by them.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="wordwrap" stdset="0">
@ -231,7 +231,7 @@
<property name="text">
<string>Checking for the outgoing interface is only possible in the OUTPUT and FORWARD chains, and chains that are fed only by them.</string>