diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-10-19 19:20:03 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-10-20 09:07:20 +0000 |
commit | b3109755e67ee514b09063f1edc5e0f1fb0af51c (patch) | |
tree | d1e37934815ea0302823e1c4e677a10bc2100dd2 | |
parent | 3f647a4bc594bdaeb5c9f33b717c69196a440c5d (diff) |
Tr: Fix some source texts
Don't use exclamation marks!
Add "the" articles (conforming to the other source texts).
Finish error sentences with dot.
Change-Id: I1faa547e2c3bae90ea900b781eccf327ea810326
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | share/qtcreator/translations/qtcreator_de.ts | 8 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_fr.ts | 8 | ||||
-rw-r--r-- | share/qtcreator/translations/qtcreator_zh_CN.ts | 4 | ||||
-rw-r--r-- | src/libs/extensionsystem/pluginmanager.cpp | 3 | ||||
-rw-r--r-- | src/plugins/docker/dockerdevice.cpp | 18 |
5 files changed, 15 insertions, 26 deletions
diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 57623ee8908..b16f1fe0ac9 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -28233,12 +28233,8 @@ zu deaktivieren, deaktiviert auch die folgenden Plugins: <translation>Hilfe > Plugins</translation> </message> <message> - <source>If you temporarily disable %1, the following plugins that depend on it are also disabled: %2. - -</source> - <translation>Wenn Sie %1 vorübergehend deaktivieren, werden die folgenden Plugins, die davon abhängen, auch deaktiviert: %2. - -</translation> + <source>If you temporarily disable %1, the following plugins that depend on it are also disabled: %2.</source> + <translation>Wenn Sie %1 vorübergehend deaktivieren, werden die folgenden Plugins, die davon abhängen, auch deaktiviert: %2.</translation> </message> <message> <source>Disable plugins permanently in %1.</source> diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index c050a6f3a0a..059f2e80e93 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -27836,12 +27836,8 @@ Raison : %3</translation> <translation>Aide > À propos des greffons</translation> </message> <message> - <source>If you temporarily disable %1, the following plugins that depend on it are also disabled: %2. - -</source> - <translation>Si vous désactivez temporairement %1, les greffons suivants qui en dépendent seront également désactivés : %2. - -</translation> + <source>If you temporarily disable %1, the following plugins that depend on it are also disabled: %2.</source> + <translation>Si vous désactivez temporairement %1, les greffons suivants qui en dépendent seront également désactivés : %2.</translation> </message> <message> <source>Disable plugins permanently in %1.</source> diff --git a/share/qtcreator/translations/qtcreator_zh_CN.ts b/share/qtcreator/translations/qtcreator_zh_CN.ts index 92175bdf0c5..ff7a8e061ce 100644 --- a/share/qtcreator/translations/qtcreator_zh_CN.ts +++ b/share/qtcreator/translations/qtcreator_zh_CN.ts @@ -18505,9 +18505,7 @@ Rebuilding the project might help.</source> <translation type="unfinished"></translation> </message> <message> - <source>If you temporarily disable %1, the following plugins that depend on it are also disabled: %2. - -</source> + <source>If you temporarily disable %1, the following plugins that depend on it are also disabled: %2.</source> <translation type="unfinished"></translation> </message> <message> diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index 84bea5b7bfa..1f86693f907 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -1540,8 +1540,7 @@ void PluginManagerPrivate::checkForProblematicPlugins() : Tr::tr("Help > About Plugins"); const QString otherPluginsText = Tr::tr("If you temporarily disable %1, the following plugins that depend on " - "it are also disabled: %2.\n\n") - .arg(spec->name(), dependentsList); + "it are also disabled: %2.").arg(spec->name(), dependentsList) + "\n\n"; const QString detailsText = (dependents.isEmpty() ? QString() : otherPluginsText) + Tr::tr("Disable plugins permanently in %1.").arg(pluginsMenu); const QString text = Tr::tr("The last time you started %1, it seems to have closed because " diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index c47de707914..386e0342fa6 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -220,7 +220,7 @@ DockerDeviceSettings::DockerDeviceSettings() }); cb(items); } else { - QStandardItem *errorItem = new QStandardItem(Tr::tr("Error!")); + QStandardItem *errorItem = new QStandardItem(Tr::tr("Error")); errorItem->setToolTip(result.error()); cb({errorItem}); } @@ -247,7 +247,7 @@ DockerDeviceSettings::DockerDeviceSettings() path = onDevicePath; } else { return make_unexpected( - Tr::tr("Path \"%1\" does not exist.").arg(onDevicePath.toUserOutput())); + Tr::tr("The path \"%1\" does not exist.").arg(onDevicePath.toUserOutput())); } } QString error; @@ -766,32 +766,32 @@ QStringList toMountArg(const DockerDevicePrivate::TemporaryMountInfo &mi) expected_str<void> isValidMountInfo(const DockerDevicePrivate::TemporaryMountInfo &mi) { if (mi.path.needsDevice()) - return make_unexpected(QString("Path \"%1\" is not local").arg(mi.path.toUserOutput())); + return make_unexpected(QString("The path \"%1\" is not local.").arg(mi.path.toUserOutput())); if (mi.path.isEmpty() && mi.containerPath.isEmpty()) - return make_unexpected(QString("Both paths are empty")); + return make_unexpected(QString("Both paths are empty.")); if (mi.path.isEmpty()) { - return make_unexpected(QString("Local path is empty, container path is \"%1\"") + return make_unexpected(QString("The local path is empty, the container path is \"%1\".") .arg(mi.containerPath.toUserOutput())); } if (mi.containerPath.isEmpty()) { return make_unexpected( - QString("Container path is empty, local path is \"%1\"").arg(mi.path.toUserOutput())); + QString("The container path is empty, the local path is \"%1\".").arg(mi.path.toUserOutput())); } if (!mi.path.isAbsolutePath() || !mi.containerPath.isAbsolutePath()) { - return make_unexpected(QString("Path \"%1\" or \"%2\" is not absolute") + return make_unexpected(QString("The path \"%1\" or \"%2\" is not absolute.") .arg(mi.path.toUserOutput()) .arg(mi.containerPath.toUserOutput())); } if (mi.containerPath.isRootPath()) - return make_unexpected(QString("Path \"%1\" is root").arg(mi.containerPath.toUserOutput())); + return make_unexpected(QString("The path \"%1\" is root.").arg(mi.containerPath.toUserOutput())); if (!mi.path.exists()) - return make_unexpected(QString("Path \"%1\" does not exist").arg(mi.path.toUserOutput())); + return make_unexpected(QString("The path \"%1\" does not exist.").arg(mi.path.toUserOutput())); return {}; } |