mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
Fix some more strings.
This commit is contained in:
parent
4d8a939291
commit
08aa827366
@ -417,7 +417,7 @@ QBtCommandLineParameters parseCommandLine(const QStringList &args)
|
|||||||
else if (arg == WEBUI_PORT_OPTION) {
|
else if (arg == WEBUI_PORT_OPTION) {
|
||||||
result.webUiPort = WEBUI_PORT_OPTION.value(arg);
|
result.webUiPort = WEBUI_PORT_OPTION.value(arg);
|
||||||
if ((result.webUiPort < 1) || (result.webUiPort > 65535))
|
if ((result.webUiPort < 1) || (result.webUiPort > 65535))
|
||||||
throw CommandLineParameterError(QObject::tr("%1 must specify the correct port (1 to 65535).")
|
throw CommandLineParameterError(QObject::tr("%1 must specify a valid port (1 to 65535).")
|
||||||
.arg(QLatin1String("--webui-port")));
|
.arg(QLatin1String("--webui-port")));
|
||||||
}
|
}
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
@ -525,9 +525,9 @@ QString makeUsage(const QString &prgName)
|
|||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
stream << SHOW_VERSION_OPTION.usage() << wrapText(QObject::tr("Display program version and exit")) << '\n';
|
stream << SHOW_VERSION_OPTION.usage() << wrapText(QObject::tr("Display program version and exit")) << '\n';
|
||||||
#endif
|
#endif
|
||||||
stream << SHOW_HELP_OPTION.usage() << wrapText(QObject::tr("Displays this help message and exit")) << '\n';
|
stream << SHOW_HELP_OPTION.usage() << wrapText(QObject::tr("Display this help message and exit")) << '\n';
|
||||||
stream << WEBUI_PORT_OPTION.usage(QObject::tr("port"))
|
stream << WEBUI_PORT_OPTION.usage(QObject::tr("port"))
|
||||||
<< wrapText(QObject::tr("Changes the Web UI port"))
|
<< wrapText(QObject::tr("Change the Web UI port"))
|
||||||
<< '\n';
|
<< '\n';
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
stream << NO_SPLASH_OPTION.usage() << wrapText(QObject::tr("Disable splash screen")) << '\n';
|
stream << NO_SPLASH_OPTION.usage() << wrapText(QObject::tr("Disable splash screen")) << '\n';
|
||||||
@ -545,7 +545,7 @@ QString makeUsage(const QString &prgName)
|
|||||||
stream << PORTABLE_OPTION.usage()
|
stream << PORTABLE_OPTION.usage()
|
||||||
<< wrapText(QObject::tr("Shortcut for --profile=<exe dir>/profile --relative-fastresume")) << '\n';
|
<< wrapText(QObject::tr("Shortcut for --profile=<exe dir>/profile --relative-fastresume")) << '\n';
|
||||||
stream << Option::padUsageText(QObject::tr("files or URLs"))
|
stream << Option::padUsageText(QObject::tr("files or URLs"))
|
||||||
<< wrapText(QObject::tr("Downloads the torrents passed by the user")) << '\n'
|
<< wrapText(QObject::tr("Download the torrents passed by the user")) << '\n'
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
stream << wrapText(QObject::tr("Options when adding new torrents:"), 0) << '\n';
|
stream << wrapText(QObject::tr("Options when adding new torrents:"), 0) << '\n';
|
||||||
@ -553,13 +553,13 @@ QString makeUsage(const QString &prgName)
|
|||||||
stream << PAUSED_OPTION.usage() << wrapText(QObject::tr("Add torrents as started or paused")) << '\n';
|
stream << PAUSED_OPTION.usage() << wrapText(QObject::tr("Add torrents as started or paused")) << '\n';
|
||||||
stream << SKIP_HASH_CHECK_OPTION.usage() << wrapText(QObject::tr("Skip hash check")) << '\n';
|
stream << SKIP_HASH_CHECK_OPTION.usage() << wrapText(QObject::tr("Skip hash check")) << '\n';
|
||||||
stream << CATEGORY_OPTION.usage(QObject::tr("name"))
|
stream << CATEGORY_OPTION.usage(QObject::tr("name"))
|
||||||
<< wrapText(QObject::tr("Assign torrents to category. If the category doesn\'t exist, it will be "
|
<< wrapText(QObject::tr("Assign torrents to category. If the category doesn't exist, it will be "
|
||||||
"created.")) << '\n';
|
"created.")) << '\n';
|
||||||
stream << SEQUENTIAL_OPTION.usage() << wrapText(QObject::tr("Download files in sequential order")) << '\n';
|
stream << SEQUENTIAL_OPTION.usage() << wrapText(QObject::tr("Download files in sequential order")) << '\n';
|
||||||
stream << FIRST_AND_LAST_OPTION.usage()
|
stream << FIRST_AND_LAST_OPTION.usage()
|
||||||
<< wrapText(QObject::tr("Download first and last pieces first")) << '\n';
|
<< wrapText(QObject::tr("Download first and last pieces first")) << '\n';
|
||||||
stream << SKIP_DIALOG_OPTION.usage()
|
stream << SKIP_DIALOG_OPTION.usage()
|
||||||
<< wrapText(QObject::tr("Specifies whether the \"Add New Torrent\" dialog opens when adding a "
|
<< wrapText(QObject::tr("Specify whether the \"Add New Torrent\" dialog opens when adding a "
|
||||||
"torrent.")) << '\n';
|
"torrent.")) << '\n';
|
||||||
stream << '\n';
|
stream << '\n';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user