diff options
author | Fabian Müller <fmueller@owncloud.com> | 2021-05-05 20:07:08 +0300 |
---|---|---|
committer | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2021-06-01 17:09:00 +0300 |
commit | 2344da3dea225c60a75233fedafc6ff5d04411cb (patch) | |
tree | 2b5b397e40f011bdf26fc1a2405a6bd8c3dd2a62 /src | |
parent | 345d05998e66f516e3ff2d310671120f0d1e69a9 (diff) |
Improve --language hint
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 6c63f90f6..da2575c28 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -623,7 +623,8 @@ void Application::parseOptions(const QStringList &options) if (it.hasNext() && !it.peekNext().startsWith(QLatin1String("--"))) { _userEnforcedLanguage = it.next(); } else { - showHint("--language expects a parameter"); + std::cerr << "Error: --language expects a locale as parameter (for example: --language en)" << std::endl; + _listAvailableTranslationsOnly = true; } } else if (option == QLatin1String("--list-languages")) { _listAvailableTranslationsOnly = true; |