From 1c0bffe87f578403b130015f8fee5560cc075b34 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 18 Apr 2017 09:53:02 +0200 Subject: Fix translations Signed-off-by: Joas Schilling --- apps/files_external/lib/Controller/GlobalStoragesController.php | 2 +- apps/files_external/lib/Controller/StoragesController.php | 4 ++-- .../lib/Controller/UserGlobalStoragesController.php | 6 +++--- apps/files_external/lib/Controller/UserStoragesController.php | 2 +- apps/files_external/lib/Service/StoragesService.php | 8 ++++---- apps/updatenotification/lib/Notification/Notifier.php | 2 +- apps/user_ldap/js/wizard/wizardTabLoginFilter.js | 2 +- apps/user_ldap/templates/part.wizard-groupfilter.php | 2 +- apps/user_ldap/templates/part.wizard-loginfilter.php | 2 +- apps/user_ldap/templates/part.wizard-server.php | 4 ++-- apps/workflowengine/js/admin.js | 2 +- apps/workflowengine/js/filemimetypeplugin.js | 2 +- core/js/oc-dialogs.js | 2 +- core/js/setupchecks.js | 2 +- core/js/sharedialoglinkshareview.js | 2 +- core/js/tests/specs/setupchecksSpec.js | 2 +- lib/private/Encryption/Manager.php | 4 ++-- lib/private/Mail/EMailTemplate.php | 4 ++-- lib/private/Setup/OCI.php | 2 +- lib/private/Setup/PostgreSQL.php | 2 +- lib/private/legacy/util.php | 2 +- lib/public/Mail/IEMailTemplate.php | 2 +- settings/Activity/Provider.php | 6 +++--- settings/Controller/ChangePasswordController.php | 2 +- settings/js/apps.js | 2 +- settings/templates/admin/server.php | 2 +- tests/Settings/Mailer/NewUserMailHelperTest.php | 8 ++++---- tests/data/emails/new-account-email.html | 2 +- tests/data/emails/new-account-email.txt | 2 +- tests/lib/Encryption/ManagerTest.php | 4 ++-- tests/lib/Mail/EMailTemplateTest.php | 2 +- 31 files changed, 46 insertions(+), 46 deletions(-) diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php index c6a19004e8e..69056225f8a 100644 --- a/apps/files_external/lib/Controller/GlobalStoragesController.php +++ b/apps/files_external/lib/Controller/GlobalStoragesController.php @@ -170,7 +170,7 @@ class GlobalStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php index d962848bd78..dd2bf69a0a6 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -306,7 +306,7 @@ abstract class StoragesController extends Controller { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); @@ -331,7 +331,7 @@ abstract class StoragesController extends Controller { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php index 4acbc156261..22c9c867855 100644 --- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php +++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php @@ -122,7 +122,7 @@ class UserGlobalStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); @@ -162,7 +162,7 @@ class UserGlobalStoragesController extends StoragesController { } else { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" is not user editable', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" is not user editable', array($id)) ], Http::STATUS_FORBIDDEN ); @@ -170,7 +170,7 @@ class UserGlobalStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php index db078346313..724bdd01463 100644 --- a/apps/files_external/lib/Controller/UserStoragesController.php +++ b/apps/files_external/lib/Controller/UserStoragesController.php @@ -198,7 +198,7 @@ class UserStoragesController extends StoragesController { } catch (NotFoundException $e) { return new DataResponse( [ - 'message' => (string)$this->l10n->t('Storage with id "%i" not found', array($id)) + 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', array($id)) ], Http::STATUS_NOT_FOUND ); diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php index 43839a17d76..4e38ea96259 100644 --- a/apps/files_external/lib/Service/StoragesService.php +++ b/apps/files_external/lib/Service/StoragesService.php @@ -147,14 +147,14 @@ abstract class StoragesService { $mount = $this->dbConfig->getMountById($id); if (!is_array($mount)) { - throw new NotFoundException('Storage with id "' . $id . '" not found'); + throw new NotFoundException('Storage with ID "' . $id . '" not found'); } $config = $this->getStorageConfigFromDBMount($mount); if ($this->isApplicable($config)) { return $config; } else { - throw new NotFoundException('Storage with id "' . $id . '" not found'); + throw new NotFoundException('Storage with ID "' . $id . '" not found'); } } @@ -377,7 +377,7 @@ abstract class StoragesService { $existingMount = $this->dbConfig->getMountById($id); if (!is_array($existingMount)) { - throw new NotFoundException('Storage with id "' . $id . '" not found while updating storage'); + throw new NotFoundException('Storage with ID "' . $id . '" not found while updating storage'); } $oldStorage = $this->getStorageConfigFromDBMount($existingMount); @@ -456,7 +456,7 @@ abstract class StoragesService { $existingMount = $this->dbConfig->getMountById($id); if (!is_array($existingMount)) { - throw new NotFoundException('Storage with id "' . $id . '" not found'); + throw new NotFoundException('Storage with ID "' . $id . '" not found'); } $this->dbConfig->removeMount($id); diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php index bef57b0d867..e512825da04 100644 --- a/apps/updatenotification/lib/Notification/Notifier.php +++ b/apps/updatenotification/lib/Notification/Notifier.php @@ -98,7 +98,7 @@ class Notifier implements INotifier { } $notification->setParsedSubject($l->t('The update server could not be reached since %d days to check for new updates.', [$errors])) - ->setParsedMessage($l->t('Please check the nextcloud and server log files for errors.')); + ->setParsedMessage($l->t('Please check the Nextcloud and server log files for errors.')); } elseif ($notification->getObjectType() === 'core') { $this->updateAlreadyInstalledCheck($notification, $this->getCoreVersions()); diff --git a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js index d08a744f9ee..a2537539ede 100644 --- a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js +++ b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js @@ -160,7 +160,7 @@ OCA = OCA || {}; } else if(message === 'connection error') { message = t('user_ldap', 'A connection error to LDAP / AD occurred, please check host, port and credentials.'); } else if(message === 'missing placeholder') { - message = t('user_ldap', 'The %uid placeholder is missing. It will be replaced with the login name when querying LDAP / AD.'); + message = t('user_ldap', 'The "%uid" placeholder is missing. It will be replaced with the login name when querying LDAP / AD.'); } } OC.Notification.showTemporary(message, {isHTML: isHtml}); diff --git a/apps/user_ldap/templates/part.wizard-groupfilter.php b/apps/user_ldap/templates/part.wizard-groupfilter.php index 5c406450f6f..640b0bccb8a 100644 --- a/apps/user_ldap/templates/part.wizard-groupfilter.php +++ b/apps/user_ldap/templates/part.wizard-groupfilter.php @@ -53,7 +53,7 @@

diff --git a/apps/user_ldap/templates/part.wizard-loginfilter.php b/apps/user_ldap/templates/part.wizard-loginfilter.php index a13931d9327..779b3fdb9a1 100644 --- a/apps/user_ldap/templates/part.wizard-loginfilter.php +++ b/apps/user_ldap/templates/part.wizard-loginfilter.php @@ -9,7 +9,7 @@

diff --git a/apps/user_ldap/templates/part.wizard-server.php b/apps/user_ldap/templates/part.wizard-server.php index 56d351eb10b..f4f2abe0f91 100644 --- a/apps/user_ldap/templates/part.wizard-server.php +++ b/apps/user_ldap/templates/part.wizard-server.php @@ -25,7 +25,7 @@ + title="t('Add a new configuration'));?>">