From 6bb89e771743fc4576a62185d144cf0c34dc06cc Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 9 Jan 2014 09:57:08 +0100 Subject: [PATCH] added german translation thanks to @chris68 PR #1338 --- framework/yii/messages/de/yii.php | 104 ++++++++++++++++++++++++++++ framework/yii/messages/pt-BR/yii.php | 8 +-- framework/yii/messages/ru/yii.php | 10 +-- framework/yii/validators/ImageValidator.php | 8 +-- 4 files changed, 117 insertions(+), 13 deletions(-) create mode 100644 framework/yii/messages/de/yii.php diff --git a/framework/yii/messages/de/yii.php b/framework/yii/messages/de/yii.php new file mode 100644 index 0000000..1127d31 --- /dev/null +++ b/framework/yii/messages/de/yii.php @@ -0,0 +1,104 @@ + 'Die Datei "{file}" ist zu groß. Es {limit, plural, one{ist} other{sind}} maximal {limit, number} {limit, plural, one{Byte} other{Bytes}} erlaubt.', + 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Das Bild "{file}" ist zu groß. Es darf maximal {limit, number} Pixel hoch sein.', + 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Das Bild "{file}" ist zu groß. Es darf maximal {limit, number} Pixel breit sein.', + 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'Die Datei "{file}" ist zu klein. Es {limit, plural, one{ist} other{sind}} mindestens {limit, number} {limit, plural, one{Byte} other{Bytes}} erforderlich.', + 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Das Bild "{file}" ist zu klein. Es muss mindestens {limit, number} Pixel hoch sein.', + 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Das Bild "{file}" ist zu klein. Es muss mindestens {limit, number} Pixel breit sein.', + 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => 'Sie können maximal {limit, plural, one{eine Datei} other{# Dateien}} hochladen.', + '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute} muss mindestens {min, number} Zeichen enthalten.', + '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute} darf maximal {max, number} Zeichen enthalten.', + '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute} muss aus genau {length, number} Zeichen bestehen.', + '(not set)' => '(nicht gesetzt)', + 'An internal server error occurred.' => 'Es ist ein interner Serverfehler aufgetreten.', + 'Are you sure to delete this item?' => 'Wollen Sie den Eintrag wirklich löschen?', + 'Compile Error' => 'Fehler beim Compilieren', + 'Compile Warning' => 'Warnung beim Compilieren', + 'Core Error' => 'Fehler aus dem Systemkern', + 'Core Warning' => 'Warnung aus dem Systemkern', + 'Database Exception' => 'Fehler beim Zugriff auf die Datenbank', + 'Delete' => 'Löschen', + 'Deprecated' => 'Überholt', + 'Error' => 'Fehler', + 'Exception' => 'Ausnahmefehler', + 'Fatal Error' => 'Fataler Fehler', + 'File upload failed.' => 'Das Hochladen der Datei ist gescheitert.', + 'Home' => 'Home', + 'Invalid Call' => 'Ungültiger Aufruf', + 'Invalid Configuration' => 'Ungültige Konfiguration', + 'Invalid Parameter' => 'Ungültiger Parameter', + 'Invalid Route' => 'Ungültige Routing-Einstellung', + 'Invalid data received for parameter "{param}".' => 'Ungültige Daten erhalten für Parameter"{param}".', + 'Login Required' => 'Anmeldung erforderlich', + 'Missing required arguments: {params}' => 'Pflichtargumente fehlen: {params}', + 'Missing required parameters: {params}' => 'Pflichtparameter fehlen: {params}', + 'No' => 'Nein', + 'No help for unknown command "{command}".' => 'Es gibt keine Hilfe für den unbekannten Befehl "{command}".', + 'No help for unknown sub-command "{command}".' => 'Es gibt keine Hilfe für den unbekannten Unterbefehl "{command}".', + 'No results found.' => 'Keine Ergebnisse gefunden', + 'Not Supported' => 'Nicht unterstützt', + 'Notice' => 'Hinweis', + 'Only files with these extensions are allowed: {extensions}.' => 'Es sind nur Dateien mit folgenden Dateierweiterungen erlaubt: {extensions}.', + 'Only files with these mimeTypes are allowed: {mimeTypes}.' => 'Es sind nur Dateien mit folgenden MIME-Typen erlaubt: {mimeTypes}.', + 'Page not found.' => 'Seite nicht gefunden.', + 'Parse Error' => 'Fehler beim Parsen', + 'Please fix the following errors:' => 'Bitte korrigieren Sie die folgenden Fehler:', + 'Please upload a file.' => 'Bitte laden Sie eine Datei hoch.', + 'Recoverable Error' => 'Behebbarer Fehler', + 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => 'Zeige {begin, number}-{end, number} von {totalCount, number} {totalCount, plural, one{Eintrag} other{Einträgen}}.', + 'Stale Object Exception' => 'Ausnahme Stale Object', + 'Strict' => 'Strikt', + 'The file "{file}" is not an image.' => 'Die Datei "{file}" ist kein Bild.', + 'The format of {attribute} is invalid.' => 'Das Format von {attribute} ist ungültig.', + 'The verification code is incorrect.' => 'Der Prüfcode ist falsch.', + 'Total {count, number} {count, plural, one{item} other{items}}.' => 'Insgesamt {count, number} {count, plural, one{Eintrag} other{Einträge}}.', + 'Unable to verify your data submission.' => 'Es ist nicht möglich, Ihre Dateneingabe zu prüfen.', + 'Unknown Class' => 'Unbekannte Klasse', + 'Unknown Method' => 'Unbekannte Methode', + 'Unknown Property' => 'Unbekannte Eigenschaft', + 'Unknown command "{command}".' => 'Unbekannter Befehl "{command}".', + 'Unknown option: --{name}' => 'Unbekannte Option: --{name}', + 'Update' => 'Aktualisieren', + 'User Error' => 'Benutzerfehler', + 'User Warning' => 'Benutzerwarnung', + 'View' => 'Sicht', + 'Warning' => 'Warnung', + 'Yes' => 'Ja', + 'You are not allowed to perform this action.' => 'Sie dürfen diese Aktion nicht durchführen.', + '{attribute} "{value}" has already been taken.' => '{attribute} "{value}" wird bereits verwendet.', + '{attribute} cannot be blank.' => '{attribute} darf nicht leer sein.', + '{attribute} is invalid.' => '{attribute} ist ungültig.', + '{attribute} is not a valid URL.' => '{attribute} ist keine gültige URL.', + '{attribute} is not a valid email address.' => '{attribute} ist keine gültige Emailadresse.', + '{attribute} must be "{requiredValue}".' => '{attribute} muss den Wert {requiredValue} haben.', + '{attribute} must be a number.' => '{attribute} muss eine Zahl sein.', + '{attribute} must be a string.' => '{attribute} muss eine Zeichenkette sein.', + '{attribute} must be an integer.' => '{attribute} muss eine Ganzzahl sein.', + '{attribute} must be either "{true}" or "{false}".' => '{attribute} muss entweder "{true}" oder "{false}" sein.', + '{attribute} must be greater than "{compareValue}".' => '{attribute} muss größer als "{compareValue}" sein.', + '{attribute} must be greater than or equal to "{compareValue}".' => '{attribute} muss größer oder gleich "{compareValue}" sein.', + '{attribute} must be less than "{compareValue}".' => '{attribute} muss kleiner als "{compareValue}" sein.', + '{attribute} must be less than or equal to "{compareValue}".' => '{attribute} muss kleiner oder gleich "{compareValue}" sein.', + '{attribute} must be no greater than {max}.' => '{attribute} darf nicht größer als {max} sein.', + '{attribute} must be no less than {min}.' => '{attribute} darf nicht kleiner als {max} sein.', + '{attribute} must be repeated exactly.' => '{attribute} muss genau wiederholt werden.', + '{attribute} must not be equal to "{compareValue}".' => '{attribute} darf nicht "{compareValue}" sein.', +); diff --git a/framework/yii/messages/pt-BR/yii.php b/framework/yii/messages/pt-BR/yii.php index 075c972..82588c0 100644 --- a/framework/yii/messages/pt-BR/yii.php +++ b/framework/yii/messages/pt-BR/yii.php @@ -64,11 +64,11 @@ return array ( 'Strict' => 'Strict', 'The file "{file}" is not an image.' => 'O arquivo “{file}” não é uma imagem.', 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'O arquivo “{file}” é grande demais. Seu tamanho não pode exceder {limit, number} {limit, plural, one{byte} other{bytes}}.', - 'The file "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é grande demais. A altura não pode ser maior do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', - 'The file "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é grande demais. A largura não pode ser maior do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é grande demais. A altura não pode ser maior do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é grande demais. A largura não pode ser maior do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'O arquivo “{file}” é pequeno demais. Seu tamanho não pode ser menor do que {limit, number} {limit, plural, one{byte} other{bytes}}.', - 'The file "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é pequeno demais. A altura não pode ser menor do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', - 'The file "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é pequeno demais. A largura não pode ser menor do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é pequeno demais. A altura não pode ser menor do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é pequeno demais. A largura não pode ser menor do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', 'The format of {attribute} is invalid.' => 'O formato de “{attribute}” é inválido.', 'The verification code is incorrect.' => 'O código de verificação está incorreto.', 'Unknown Class' => 'Unknown Class', diff --git a/framework/yii/messages/ru/yii.php b/framework/yii/messages/ru/yii.php index d9b3836..094410a 100644 --- a/framework/yii/messages/ru/yii.php +++ b/framework/yii/messages/ru/yii.php @@ -33,7 +33,7 @@ return array ( 'the input value' => 'введённое значение', '(not set)' => '(не задано)', 'An internal server error occurred.' => 'Возникла внутренняя ошибка сервера.', - 'Are you sure to delete this item?' => 'Вы уверены, что хотите удалить этот элемент ?', + 'Are you sure to delete this item?' => 'Вы уверены, что хотите удалить этот элемент?', 'Compile Error' => 'Compile Error', 'Compile Warning' => 'Compile Warning', 'Core Error' => 'Core Error', @@ -64,11 +64,11 @@ return array ( 'Strict' => 'Strict', 'The file "{file}" is not an image.' => 'Файл «{file}» не является изображением.', 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'Файл «{file}» слишком большой. Размер не должен превышать {limit, number} {limit, plural, one{# байт} few{# байта} many{# байт} other{# байта}}.', - 'The file "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком большой. Высота не должна превышать {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', - 'The file "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком большой. Ширина не должна превышать {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', + 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком большой. Высота не должна превышать {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', + 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком большой. Ширина не должна превышать {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'Файл «{file}» слишком маленький. Размер должен быть более {limit, number} {limit, plural, one{# байт} few{# байта} many{# байт} other{# байта}}.', - 'The file "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком маленький. Высота должна быть более {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', - 'The file "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком маленький. Ширина должна быть более {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', + 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком маленький. Высота должна быть более {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', + 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Файл «{file}» слишком маленький. Ширина должна быть более {limit, number} {limit, plural, one{# пиксель} few{# пикселя} many{# пикселей} other{# пикселя}}.', 'The format of {attribute} is invalid.' => 'Неверный формат значения «{attribute}».', 'The verification code is incorrect.' => 'Неправильный проверочный код.', 'Unknown Class' => 'Unknown Class', diff --git a/framework/yii/validators/ImageValidator.php b/framework/yii/validators/ImageValidator.php index d36002a..52fb235 100644 --- a/framework/yii/validators/ImageValidator.php +++ b/framework/yii/validators/ImageValidator.php @@ -120,16 +120,16 @@ class ImageValidator extends FileValidator $this->notImage = Yii::t('yii', 'The file "{file}" is not an image.'); } if ($this->underWidth === null) { - $this->underWidth = Yii::t('yii', 'The file "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); + $this->underWidth = Yii::t('yii', 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); } if ($this->underHeight === null) { - $this->underHeight = Yii::t('yii', 'The file "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); + $this->underHeight = Yii::t('yii', 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); } if ($this->overWidth === null) { - $this->overWidth = Yii::t('yii', 'The file "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); + $this->overWidth = Yii::t('yii', 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); } if ($this->overHeight === null) { - $this->overHeight = Yii::t('yii', 'The file "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); + $this->overHeight = Yii::t('yii', 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.'); } if ($this->wrongMimeType === null) { $this->wrongMimeType = Yii::t('yii', 'Only files with these mimeTypes are allowed: {mimeTypes}.');