This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smb4k@1239034 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
KMessageBox::error(this,i18n("The configuration could not be written, because one setting is incomplete:\n%1Please correct this issue.").arg(issues));
KMessageBox::error(this,i18n("The configuration could not be written, because one setting is incomplete:\n%1Please correct this issue.").tqarg(issues));
}
else
{
KMessageBox::error(this,i18n("The configuration could not be written, because %1 settings are incomplete:\n%1Please correct these issues.").arg(index).arg(issues));
KMessageBox::error(this,i18n("The configuration could not be written, because %1 settings are incomplete:\n%1Please correct these issues.").tqarg(index).tqarg(issues));
description->setText(i18n("Smb4K uses \"nmblookup\" by default to search for remote hosts. This method is very reliable but fails sometimes if your network neighborhood is configured uncommonly. In this case you should try to use \"smbclient\"."));
QLabel *filter_rules_label=new QLabel(i18n("The rules defined below will be added to the \"rsync\" command as they are. Thus, you have to start with the --filter=... argument."),filter_rules_box);
filter_rules_label->setTextFormat( Qt::RichText);
TQLabel *filter_rules_label=newTQLabel(i18n("The rules defined below will be added to the \"rsync\" command as they are. Thus, you have to start with the --filter=... argument."),filter_rules_box);
i18n("Remove entries from the configuration file"),
i18n("Depending on your choice under \"Programs\", all entries that were written by Smb4K will be removed either from /etc/super.tab or /etc/sudoers. Additionally, all your choices under \"Actions\" will be cleared."));
<label>The user ID that is to be used for mounting</label>
<whatsthis>Here you can enter the user ID (a number) that the files and directories of the mounted share will have. If you are using the CIFS file system and the remote server supports the CIFS Unix Extentions, this setting will be ignored.</whatsthis>
<label>The group ID that is to be used for mounting</label>
<whatsthis>Here you can enter the group ID (a number) that the files and directories of the mounted share will have. If you are using the CIFS file system and the remote server supports the CIFS Unix Extentions, this setting will be ignored.</whatsthis>
if(KMessageBox::warningContinueCancel((QWidget *)this,i18n("Up to KDE 3.3.x, KIO and Konqueror cannot handle CIFS shares. Konqueror will hang if you try to access it.\nDo you want to continue?"))==KMessageBox::Cancel)
if(KMessageBox::warningContinueCancel((TQWidget *)this,i18n("Up to KDE 3.3.x, KIO and Konqueror cannot handle CIFS shares. Konqueror will hang if you try to access it.\nDo you want to continue?"))==KMessageBox::Cancel)
KMessageBox::error(0,i18n("The share \"%1\" could not be mounted.\nDetailed information cannot be provided because there was no error message.").arg(text));
KMessageBox::error(0,i18n("The share \"%1\" could not be mounted.\nDetailed information cannot be provided because there was no error message.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The share \"%1\" could not be mounted.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The share \"%1\" could not be mounted.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
KMessageBox::error(0,i18n("The share \"%1\" could not be unmounted.\nDetailed information cannot be provided because there was no error message.").arg(text));
KMessageBox::error(0,i18n("The share \"%1\" could not be unmounted.\nDetailed information cannot be provided because there was no error message.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The share \"%1\" could not be unmounted.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The share \"%1\" could not be unmounted.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
}
break;
}
caseERROR_FILE_NOT_FOUND:
{
KMessageBox::error(0,i18n("The file \"%1\" could not be found.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be found.").tqarg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be read.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be read.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be read.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be read.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
KMessageBox::error(0,i18n("Either your PATH environment variable is not set properly or there are the following programs missing on your system:\n%1\nPlease correct this and restart Smb4K.").arg(text));
KMessageBox::error(0,i18n("Either your PATH environment variable is not set properly or there are the following programs missing on your system:\n%1\nPlease correct this and restart Smb4K.").tqarg(text));
break;
}
caseERROR_LOCKED:
{
KMessageBox::error(0,i18n("The file \"%1\" is currently being edited by user %2. To avoid any problems, access to this file is denied at the moment. Please try again later.").arg(text.section(":",1,1),text.section(":",0,0)));
KMessageBox::error(0,i18n("The file \"%1\" is currently being edited by user %2. To avoid any problems, access to this file is denied at the moment. Please try again later.").tqarg(text.section(":",1,1),text.section(":",0,0)));
break;
}
caseERROR_MKDIR_FAILED:
{
KMessageBox::error(0,i18n("The directory \"%1\" could not be created.").arg(text));
KMessageBox::error(0,i18n("The directory \"%1\" could not be created.").tqarg(text));
break;
}
caseERROR_WRITING_FILE:
{
KMessageBox::error(0,i18n("The file \"%1\" could not be written.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be written.").tqarg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be printed.\nDetailed information cannot be provided because there was no error message.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be printed.\nDetailed information cannot be provided because there was no error message.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be printed.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be printed.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
KMessageBox::error(0,i18n("The temporary directory \"%1\" could not be created.\nDetailed information cannot be provided because there was no error message.").arg(text));
KMessageBox::error(0,i18n("The temporary directory \"%1\" could not be created.\nDetailed information cannot be provided because there was no error message.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The temporary directory \"%1\" could not be created.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The temporary directory \"%1\" could not be created.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
KMessageBox::error(0,i18n("The temporary file \"%1\" could not be created.\nDetailed information cannot be provided because there was no error message.").arg(text));
KMessageBox::error(0,i18n("The temporary file \"%1\" could not be created.\nDetailed information cannot be provided because there was no error message.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The temporary file \"%1\" could not be created.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The temporary file \"%1\" could not be created.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
}
break;
}
caseERROR_DIRECTORY_NOT_FOUND:
{
KMessageBox::error(0,i18n("The directory \"%1\" could not be found.").arg(text));
KMessageBox::error(0,i18n("The directory \"%1\" could not be found.").tqarg(text));
break;
}
caseERROR_FILE_IS_IRREGULAR:
{
KMessageBox::error(0,i18n("The file \"%1\" is irregular. That means it is either a symlink, a fifo, or something similar. This could indicate that someone is trying to exploit your system. Please inform your system administrator.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" is irregular. That means it is either a symlink, a fifo, or something similar. This could indicate that someone is trying to exploit your system. Please inform your system administrator.").tqarg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be opened.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be opened.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be opened.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be opened.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
KMessageBox::error(0,i18n("The file \"%1\" could not be closed.").arg(text));
KMessageBox::error(0,i18n("The file \"%1\" could not be closed.").tqarg(text));
}
else
{
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be closed.\nRead the error message under \"Details\" to find out more.").arg(text),details);
KMessageBox::detailedError(0,i18n("The file \"%1\" could not be closed.\nRead the error message under \"Details\" to find out more.").tqarg(text),details);
}
break;
}
caseERROR_NET_COMMAND:
{
KMessageBox::error(0,i18n("The list of arguments for the \"net\" command could not be assembled.\nAt the moment it reads: %1").arg(text));
KMessageBox::error(0,i18n("The list of arguments for the \"net\" command could not be assembled.\nAt the moment it reads: %1").tqarg(text));
KMessageBox::information(0,i18n("The mimetype \"%1\" is not supported. Please convert the file to PostScript or PDF.").arg(text));
KMessageBox::information(0,i18n("The mimetype \"%1\" is not supported. Please convert the file to PostScript or PDF.").tqarg(text));
break;
}
caseINFO_DISABLE_SUID_FEATURE:
{
KMessageBox::information(0,i18n("You previously chose to use \"%1\", but now it is missing on your system. Smb4K will disable this feature.").arg(text));
KMessageBox::information(0,i18n("You previously chose to use \"%1\", but now it is missing on your system. Smb4K will disable this feature.").tqarg(text));
break;
}
caseINFO_BOOKMARK_LABEL_IN_USE:
{
KMessageBox::information(0,i18n("The label \"%1\" is used more than once. It will automatically be renamed for bookmark \"%2\" to avoid confusion.").arg(text,details));
KMessageBox::information(0,i18n("The label \"%1\" is used more than once. It will automatically be renamed for bookmark \"%2\" to avoid confusion.").tqarg(text,details));
intreturn_value=KMessageBox::warningContinueCancel(0,i18n("Smb4K now uses a different configuration system. Thus, your old settings are obsolete and you have to reconfigure the application.\nTo assure a clean transition, the current configuration file will be removed."));