Пример #1
0
 public function loadLocaleFromMemcache($locale)
 {
     $data = $this->memcached->get("trans.{$locale}", function ($memcache, $key, &$value) use($locale) {
         $value = $this->getDataToCache($locale);
         return true;
     });
     $ct = new MessageCatalogue($locale, $data['catalogue']);
     foreach ($data['fallbacks'] as $fallback => $fallbackMessages) {
         $ct->addFallbackCatalogue(new MessageCatalogue($fallback, $fallbackMessages));
     }
     $this->catalogues[$locale] = $ct;
 }
<?php

use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('af', array('validators' => array('This value should be false.' => 'Hierdie waarde moet vals wees.', 'This value should be true.' => 'Hierdie waarde moet waar wees.', 'This value should be of type {{ type }}.' => 'Hierdie waarde moet van die soort {{type}} wees.', 'This value should be blank.' => 'Hierdie waarde moet leeg wees.', 'The value you selected is not a valid choice.' => 'Die waarde wat jy gekies het is nie \'n geldige keuse nie.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'Jy moet ten minste {{ limit }} kies.|Jy moet ten minste {{ limit }} keuses kies.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'Jy moet by die meeste {{ limit }} keuse kies.|Jy moet by die meeste {{ limit }} keuses kies.', 'One or more of the given values is invalid.' => 'Een of meer van die gegewe waardes is ongeldig.', 'This field was not expected.' => 'Die veld is nie verwag nie.', 'This field is missing.' => 'Hierdie veld ontbreek.', 'This value is not a valid date.' => 'Hierdie waarde is nie \'n geldige datum nie.', 'This value is not a valid datetime.' => 'Hierdie waarde is nie \'n geldige datum en tyd nie.', 'This value is not a valid email address.' => 'Hierdie waarde is nie \'n geldige e-pos adres nie.', 'The file could not be found.' => 'Die lêer kon nie gevind word nie.', 'The file is not readable.' => 'Die lêer kan nie gelees word nie.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'Die lêer is te groot ({{ size }} {{ suffix }}). Toegelaat maksimum grootte is {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'Die MIME-tipe van die lêer is ongeldig ({{ type }}). Toegelaat MIME-tipes is {{ types }}.', 'This value should be {{ limit }} or less.' => 'Hierdie waarde moet {{ limit }} of minder wees.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'Hierdie waarde is te lank. Dit moet {{ limit }} karakter of minder wees.|Hierdie waarde is te lank. Dit moet {{ limit }} karakters of minder wees.', 'This value should be {{ limit }} or more.' => 'Hierdie waarde moet {{ limit }} of meer wees.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'Hierdie waarde is te kort. Dit moet {{ limit }} karakter of meer wees.|Hierdie waarde is te kort. Dit moet {{ limit }} karakters of meer wees.', 'This value should not be blank.' => 'Hierdie waarde moet nie leeg wees nie.', 'This value should not be null.' => 'Hierdie waarde moet nie nul wees nie.', 'This value should be null.' => 'Hierdie waarde moet nul wees.', 'This value is not valid.' => 'Hierdie waarde is nie geldig nie.', 'This value is not a valid time.' => 'Hierdie waarde is nie \'n geldige tyd nie.', 'This value is not a valid URL.' => 'Hierdie waarde is nie \'n geldige URL nie.', 'The two values should be equal.' => 'Die twee waardes moet gelyk wees.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'Die lêer is te groot. Toegelaat maksimum grootte is {{ limit }} {{ suffix }}.', 'The file is too large.' => 'Die lêer is te groot.', 'The file could not be uploaded.' => 'Die lêer kan nie opgelaai word nie.', 'This value should be a valid number.' => 'Hierdie waarde moet \'n geldige nommer wees.', 'This file is not a valid image.' => 'Hierdie lêer is nie \'n geldige beeld nie.', 'This is not a valid IP address.' => 'Hierdie is nie \'n geldige IP-adres nie.', 'This value is not a valid language.' => 'Hierdie waarde is nie \'n geldige taal nie.', 'This value is not a valid locale.' => 'Hierdie waarde is nie \'n geldige land instelling nie.', 'This value is not a valid country.' => 'Hierdie waarde is nie \'n geldige land nie.', 'This value is already used.' => 'Hierdie waarde word reeds gebruik.', 'The size of the image could not be detected.' => 'Die grootte van die beeld kon nie opgespoor word nie.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'Die beeld breedte is te groot ({{ width }}px). Toegelaat maksimum breedte is {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'Die beeld breedte is te klein ({{ width }}px). Minimum breedte verwag is {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'Die beeld hoogte is te groot ({{ height }}px). Toegelaat maksimum hoogte is {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'Die beeld hoogte is te klein ({{ height }}px). Minimum hoogte verwag is {{ min_height }}px.', 'This value should be the user\'s current password.' => 'Hierdie waarde moet die huidige wagwoord van die gebruiker wees.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'Hierdie waarde moet presies {{ limit }} karakter wees.|Hierdie waarde moet presies {{ limit }} karakters wees.', 'The file was only partially uploaded.' => 'Die lêer is slegs gedeeltelik opgelaai.', 'No file was uploaded.' => 'Geen lêer is opgelaai nie.', 'No temporary folder was configured in php.ini.' => 'Geen tydelike lêer is ingestel in php.ini nie.', 'Cannot write temporary file to disk.' => 'Kan nie tydelike lêer skryf op skyf nie.', 'A PHP extension caused the upload to fail.' => '\'n PHP-uitbreiding veroorsaak die oplaai van die lêer om te misluk.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'Hierdie versameling moet {{ limit }} element of meer bevat.|Hierdie versameling moet {{ limit }} elemente of meer bevat.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'Hierdie versameling moet {{ limit }} element of minder bevat.|Hierdie versameling moet {{ limit }} elemente of meer bevat.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'Hierdie versameling moet presies {{ limit }} element bevat.|Hierdie versameling moet presies {{ limit }} elemente bevat.', 'Invalid card number.' => 'Ongeldige kredietkaart nommer.', 'Unsupported card type or invalid card number.' => 'Nie-ondersteunde tipe kaart of ongeldige kredietkaart nommer.')));
$catalogueFr = new MessageCatalogue('fr', array('validators' => array('This value should be false.' => 'Cette valeur doit être fausse.', 'This value should be true.' => 'Cette valeur doit être vraie.', 'This value should be of type {{ type }}.' => 'Cette valeur doit être de type {{ type }}.', 'This value should be blank.' => 'Cette valeur doit être vide.', 'The value you selected is not a valid choice.' => 'Cette valeur doit être l\'un des choix proposés.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'Vous devez sélectionner au moins {{ limit }} choix.|Vous devez sélectionner au moins {{ limit }} choix.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'Vous devez sélectionner au maximum {{ limit }} choix.|Vous devez sélectionner au maximum {{ limit }} choix.', 'One or more of the given values is invalid.' => 'Une ou plusieurs des valeurs soumises sont invalides.', 'This field was not expected.' => 'Ce champ n\'a pas été prévu.', 'This field is missing.' => 'Ce champ est manquant.', 'This value is not a valid date.' => 'Cette valeur n\'est pas une date valide.', 'This value is not a valid datetime.' => 'Cette valeur n\'est pas une date valide.', 'This value is not a valid email address.' => 'Cette valeur n\'est pas une adresse email valide.', 'The file could not be found.' => 'Le fichier n\'a pas été trouvé.', 'The file is not readable.' => 'Le fichier n\'est pas lisible.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'Le fichier est trop volumineux ({{ size }} {{ suffix }}). Sa taille ne doit pas dépasser {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'Le type du fichier est invalide ({{ type }}). Les types autorisés sont {{ types }}.', 'This value should be {{ limit }} or less.' => 'Cette valeur doit être inférieure ou égale à {{ limit }}.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'Cette chaine est trop longue. Elle doit avoir au maximum {{ limit }} caractère.|Cette chaine est trop longue. Elle doit avoir au maximum {{ limit }} caractères.', 'This value should be {{ limit }} or more.' => 'Cette valeur doit être supérieure ou égale à {{ limit }}.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'Cette chaine est trop courte. Elle doit avoir au minimum {{ limit }} caractère.|Cette chaine est trop courte. Elle doit avoir au minimum {{ limit }} caractères.', 'This value should not be blank.' => 'Cette valeur ne doit pas être vide.', 'This value should not be null.' => 'Cette valeur ne doit pas être nulle.', 'This value should be null.' => 'Cette valeur doit être nulle.', 'This value is not valid.' => 'Cette valeur n\'est pas valide.', 'This value is not a valid time.' => 'Cette valeur n\'est pas une heure valide.', 'This value is not a valid URL.' => 'Cette valeur n\'est pas une URL valide.', 'The two values should be equal.' => 'Les deux valeurs doivent être identiques.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'Le fichier est trop volumineux. Sa taille ne doit pas dépasser {{ limit }} {{ suffix }}.', 'The file is too large.' => 'Le fichier est trop volumineux.', 'The file could not be uploaded.' => 'Le téléchargement de ce fichier est impossible.', 'This value should be a valid number.' => 'Cette valeur doit être un nombre.', 'This file is not a valid image.' => 'Ce fichier n\'est pas une image valide.', 'This is not a valid IP address.' => 'Cette adresse IP n\'est pas valide.', 'This value is not a valid language.' => 'Cette langue n\'est pas valide.', 'This value is not a valid locale.' => 'Ce paramètre régional n\'est pas valide.', 'This value is not a valid country.' => 'Ce pays n\'est pas valide.', 'This value is already used.' => 'Cette valeur est déjà utilisée.', 'The size of the image could not be detected.' => 'La taille de l\'image n\'a pas pu être détectée.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'La largeur de l\'image est trop grande ({{ width }}px). La largeur maximale autorisée est de {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'La largeur de l\'image est trop petite ({{ width }}px). La largeur minimale attendue est de {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'La hauteur de l\'image est trop grande ({{ height }}px). La hauteur maximale autorisée est de {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'La hauteur de l\'image est trop petite ({{ height }}px). La hauteur minimale attendue est de {{ min_height }}px.', 'This value should be the user\'s current password.' => 'Cette valeur doit être le mot de passe actuel de l\'utilisateur.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'Cette chaine doit avoir exactement {{ limit }} caractère.|Cette chaine doit avoir exactement {{ limit }} caractères.', 'The file was only partially uploaded.' => 'Le fichier a été partiellement transféré.', 'No file was uploaded.' => 'Aucun fichier n\'a été transféré.', 'No temporary folder was configured in php.ini.' => 'Aucun répertoire temporaire n\'a été configuré dans le php.ini.', 'Cannot write temporary file to disk.' => 'Impossible d\'écrire le fichier temporaire sur le disque.', 'A PHP extension caused the upload to fail.' => 'Une extension PHP a empêché le transfert du fichier.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'Cette collection doit contenir {{ limit }} élément ou plus.|Cette collection doit contenir {{ limit }} éléments ou plus.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'Cette collection doit contenir {{ limit }} élément ou moins.|Cette collection doit contenir {{ limit }} éléments ou moins.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'Cette collection doit contenir exactement {{ limit }} élément.|Cette collection doit contenir exactement {{ limit }} éléments.', 'Invalid card number.' => 'Numéro de carte invalide.', 'Unsupported card type or invalid card number.' => 'Type de carte non supporté ou numéro invalide.', 'This is not a valid International Bank Account Number (IBAN).' => 'Le numéro IBAN (International Bank Account Number) saisi n\'est pas valide.', 'This value is not a valid ISBN-10.' => 'Cette valeur n\'est pas un code ISBN-10 valide.', 'This value is not a valid ISBN-13.' => 'Cette valeur n\'est pas un code ISBN-13 valide.', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => 'Cette valeur n\'est ni un code ISBN-10, ni un code ISBN-13 valide.', 'This value is not a valid ISSN.' => 'Cette valeur n\'est pas un code ISSN valide.', 'This value is not a valid currency.' => 'Cette valeur n\'est pas une devise valide.', 'This value should be equal to {{ compared_value }}.' => 'Cette valeur doit être égale à {{ compared_value }}.', 'This value should be greater than {{ compared_value }}.' => 'Cette valeur doit être supérieure à {{ compared_value }}.', 'This value should be greater than or equal to {{ compared_value }}.' => 'Cette valeur doit être supérieure ou égale à {{ compared_value }}.', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => 'Cette valeur doit être identique à {{ compared_value_type }} {{ compared_value }}.', 'This value should be less than {{ compared_value }}.' => 'Cette valeur doit être inférieure à {{ compared_value }}.', 'This value should be less than or equal to {{ compared_value }}.' => 'Cette valeur doit être inférieure ou égale à {{ compared_value }}.', 'This value should not be equal to {{ compared_value }}.' => 'Cette valeur ne doit pas être égale à {{ compared_value }}.', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => 'Cette valeur ne doit pas être identique à {{ compared_value_type }} {{ compared_value }}.', 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.' => 'Le rapport largeur/hauteur de l\'image est trop grand ({{ ratio }}). Le rapport maximal autorisé est {{ max_ratio }}.', 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.' => 'Le rapport largeur/hauteur de l\'image est trop petit ({{ ratio }}). Le rapport minimal attendu est {{ min_ratio }}.', 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.' => 'L\'image est carrée ({{ width }}x{{ height }}px). Les images carrées ne sont pas autorisées.', 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.' => 'L\'image est au format paysage ({{ width }}x{{ height }}px). Les images au format paysage ne sont pas autorisées.', 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.' => 'L\'image est au format portrait ({{ width }}x{{ height }}px). Les images au format portrait ne sont pas autorisées.', 'An empty file is not allowed.' => 'Un fichier vide n\'est pas autorisé.', 'The host could not be resolved.' => 'Le nom de domaine n\'a pas pu être résolu.', 'This value does not match the expected {{ charset }} charset.' => 'Cette valeur ne correspond pas au jeu de caractères {{ charset }} attendu.', 'This form should not contain extra fields.' => 'Ce formulaire ne doit pas contenir des champs supplémentaires.', 'The uploaded file was too large. Please try to upload a smaller file.' => 'Le fichier téléchargé est trop volumineux. Merci d\'essayer d\'envoyer un fichier plus petit.', 'The CSRF token is invalid. Please try to resubmit the form.' => 'Le jeton CSRF est invalide. Veuillez renvoyer le formulaire.', 'fos_user.username.already_used' => 'Le nom d\'utilisateur est déjà utilisé', 'fos_user.username.blank' => 'Entrez un nom d\'utilisateur s\'il vous plait', 'fos_user.username.short' => '[-Inf,Inf]Le nom d\'utilisateur est trop court', 'fos_user.username.long' => '[-Inf,Inf]Le nom d\'utilisateur est trop long', 'fos_user.email.already_used' => 'L\'adresse e-mail est déjà utilisée', 'fos_user.email.blank' => 'Entrez une adresse e-mail s\'il vous plait', 'fos_user.email.short' => '[-Inf,Inf]L\'adresse e-mail est trop courte', 'fos_user.email.long' => '[-Inf,Inf]L\'adresse e-mail est trop longue', 'fos_user.email.invalid' => 'L\'adresse e-mail est invalide', 'fos_user.password.blank' => 'Entrez un mot de passe s\'il vous plait', 'fos_user.password.short' => '[-Inf,Inf]Le mot de passe est trop court', 'fos_user.password.mismatch' => 'Les deux mots de passe ne sont pas identiques', 'fos_user.new_password.blank' => 'Entrez un nouveau mot de passe s\'il vous plait', 'fos_user.new_password.short' => '[-Inf,Inf]Le nouveau mot de passe est trop court', 'fos_user.current_password.invalid' => 'Le mot de passe est invalide', 'fos_user.group.blank' => 'Entrez un nom s\'il vous plait', 'fos_user.group.short' => '[-Inf,Inf]Le nom est trop court', 'fos_user.group.long' => '[-Inf,Inf]Le nom est trop long'), 'security' => array('An authentication exception occurred.' => 'Une exception d\'authentification s\'est produite.', 'Authentication credentials could not be found.' => 'Les droits d\'authentification n\'ont pas pu être trouvés.', 'Authentication request could not be processed due to a system problem.' => 'La requête d\'authentification n\'a pas pu être executée à cause d\'un problème système.', 'Invalid credentials.' => 'Droits invalides.', 'Cookie has already been used by someone else.' => 'Le cookie a déjà été utilisé par quelqu\'un d\'autre.', 'Not privileged to request the resource.' => 'Pas de privilèges pour accéder à la ressource.', 'Invalid CSRF token.' => 'Jeton CSRF invalide.', 'Digest nonce has expired.' => 'Le digest nonce a expiré.', 'No authentication provider found to support the authentication token.' => 'Aucun fournisseur d\'authentification n\'a été trouvé pour supporter le jeton d\'authentification.', 'No session available, it either timed out or cookies are not enabled.' => 'Pas de session disponible, celle-ci a expiré ou les cookies ne sont pas activés.', 'No token could be found.' => 'Aucun jeton n\'a pu être trouvé.', 'Username could not be found.' => 'Le nom d\'utilisateur ne peut pas être trouvé.', 'Account has expired.' => 'Le compte a expiré.', 'Credentials have expired.' => 'Les droits ont expirés.', 'Account is disabled.' => 'Le compte est désactivé.', 'Account is locked.' => 'Le compte est bloqué.'), 'FOSUserBundle' => array('Bad credentials' => 'Nom d\'utilisateur ou mot de passe incorrect', 'group.edit.submit' => 'Mettre à jour le groupe', 'group.show.name' => 'Nom du groupe', 'group.new.submit' => 'Créer le groupe', 'group.flash.updated' => 'Le groupe a été mis à jour', 'group.flash.created' => 'Le groupe a été créé', 'group.flash.deleted' => 'Le groupe a été supprimé', 'security.login.username' => 'Nom d\'utilisateur :', 'security.login.password' => 'Mot de passe :', 'security.login.remember_me' => 'Se souvenir de moi', 'security.login.submit' => 'Connexion', 'profile.show.username' => 'Nom d\'utilisateur', 'profile.show.email' => 'Adresse e-mail', 'profile.edit.submit' => 'Mettre à jour', 'profile.flash.updated' => 'Le profil a été mis à jour', 'change_password.submit' => 'Modifier le mot de passe', 'change_password.flash.success' => 'Le mot de passe a été modifié', 'registration.check_email' => 'Un e-mail a été envoyé à l\'adresse %email%. Il contient un lien d\'activation sur lequel il vous faudra cliquer afin d\'activer votre compte.', 'registration.confirmed' => 'Félicitations %username%, votre compte est maintenant activé.', 'registration.back' => 'Retour à la page d\'origine.', 'registration.submit' => 'Enregistrer', 'registration.flash.user_created' => 'L\'utilisateur a été créé avec succès', 'registration.email.subject' => 'Bienvenue %username% !', 'registration.email.message' => 'Bonjour %username% !

Pour valider votre compte utilisateur, merci de vous rendre sur %confirmationUrl%

Cordialement,
L\'équipe.
', 'resetting.password_already_requested' => 'Un nouveau mot de passe a déjà été demandé pour cet utilisateur dans les dernières 24 heures.', 'resetting.check_email' => 'Un e-mail a été envoyé à l\'adresse %email%. Il contient un lien sur lequel il vous faudra cliquer afin de réinitialiser votre mot de passe.', 'resetting.request.invalid_username' => 'Le nom d\'utilisateur ou l\'adresse e-mail "%username%" n\'existe pas.', 'resetting.request.username' => 'Nom d\'utilisateur ou adresse e-mail :', 'resetting.request.submit' => 'Réinitialiser le mot de passe', 'resetting.reset.submit' => 'Modifier le mot de passe', 'resetting.flash.success' => 'Le mot de passe a été réinitialisé avec succès', 'resetting.email.subject' => 'Réinitialisation de votre mot de passe', 'resetting.email.message' => 'Bonjour %username% !

Pour réinitialiser votre mot de passe, merci de vous rendre sur %confirmationUrl%

Cordialement,
L\'équipe.
', 'layout.logout' => 'Déconnexion', 'layout.login' => 'Connexion', 'layout.register' => 'Inscription', 'layout.logged_in_as' => 'Connecté en tant que %username%', 'form.group_name' => 'Nom du groupe :', 'form.username' => 'Pseudo :', 'form.email' => 'Adresse e-mail :', 'form.current_password' => 'Mot de passe actuel :', 'form.password' => 'Mot de passe :', 'form.password_confirmation' => 'Vérification :', 'form.new_password' => 'Nouveau mot de passe :', 'form.new_password_confirmation' => 'Vérification :', 'form.firstname' => 'Prénom :', 'form.lastname' => 'Nom :'), 'AcmeUserBundle' => array('Bad credentials' => 'Nom d\'utilisateur ou mot de passe incorrect', 'group.edit.submit' => 'Mettre à jour le groupe', 'group.show.name' => 'Nom du groupe', 'group.new.submit' => 'Créer le groupe', 'group.flash.updated' => 'Le groupe a été mis à jour', 'group.flash.created' => 'Le groupe a été créé', 'group.flash.deleted' => 'Le groupe a été supprimé', 'security.login.username' => 'Nom d\'utilisateur :', 'security.login.password' => 'Mot de passe :', 'security.login.remember_me' => 'Se souvenir de moi', 'security.login.submit' => 'Connexion', 'profile.show.username' => 'Nom d\'utilisateur', 'profile.show.email' => 'Adresse e-mail', 'profile.edit.submit' => 'Mettre à jour', 'profile.flash.updated' => 'Le profil a été mis à jour', 'change_password.submit' => 'Modifier le mot de passe', 'change_password.flash.success' => 'Le mot de passe a été modifié', 'registration.check_email' => 'Un e-mail a été envoyé à l\'adresse %email%. Il contient un lien d\'activation sur lequel il vous faudra cliquer afin d\'activer votre compte.', 'registration.confirmed' => 'Félicitations %username%, votre compte est maintenant activé.', 'registration.back' => 'Retour à la page d\'origine.', 'registration.submit' => 'Enregistrer', 'registration.flash.user_created' => 'L\'utilisateur a été créé avec succès', 'registration.email.subject' => 'Bienvenue %username% !', 'registration.email.message' => 'Bonjour %username% !

Pour valider votre compte utilisateur, merci de vous rendre sur %confirmationUrl%

Cordialement,
L\'équipe.
', 'resetting.password_already_requested' => 'Un nouveau mot de passe a déjà été demandé pour cet utilisateur dans les dernières 24 heures.', 'resetting.check_email' => 'Un e-mail a été envoyé à l\'adresse %email%. Il contient un lien sur lequel il vous faudra cliquer afin de réinitialiser votre mot de passe.', 'resetting.request.invalid_username' => 'Le nom d\'utilisateur ou l\'adresse e-mail "%username%" n\'existe pas.', 'resetting.request.username' => 'Nom d\'utilisateur ou adresse e-mail :', 'resetting.request.submit' => 'Réinitialiser le mot de passe', 'resetting.reset.submit' => 'Modifier le mot de passe', 'resetting.flash.success' => 'Le mot de passe a été réinitialisé avec succès', 'resetting.email.subject' => 'Réinitialisation de votre mot de passe', 'resetting.email.message' => 'Bonjour %username% !

Pour réinitialiser votre mot de passe, merci de vous rendre sur %confirmationUrl%

Cordialement,
L\'équipe.
', 'layout.logout' => 'Déconnexion', 'layout.login' => 'Connexion', 'layout.register' => 'Inscription', 'layout.logged_in_as' => 'Connecté en tant que %username%', 'form.group_name' => 'Nom du groupe :', 'form.username' => 'Pseudo :', 'form.email' => 'Adresse e-mail :', 'form.current_password' => 'Mot de passe actuel :', 'form.password' => 'Mot de passe :', 'form.password_confirmation' => 'Vérification :', 'form.new_password' => 'Nouveau mot de passe :', 'form.new_password_confirmation' => 'Vérification :', 'form.firstname' => 'Prénom :', 'form.lastname' => 'Nom :'), 'messages' => array('title.post_list' => 'Post List', 'action.show' => 'Show', 'action.edit' => 'Edit', 'action.create_post' => 'Create a new post')));
$catalogue->addFallbackCatalogue($catalogueFr);
return $catalogue;
use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('pt_PT', array('security' => array('An authentication exception occurred.' => 'Ocorreu uma excepção durante a autenticação.', 'Authentication credentials could not be found.' => 'As credenciais de autenticação não foram encontradas.', 'Authentication request could not be processed due to a system problem.' => 'O pedido de autenticação não foi concluído devido a um problema no sistema.', 'Invalid credentials.' => 'Credenciais inválidas.', 'Cookie has already been used by someone else.' => 'Este cookie já está em uso.', 'Not privileged to request the resource.' => 'Não possui privilégios para aceder a este recurso.', 'Invalid CSRF token.' => 'Token CSRF inválido.', 'Digest nonce has expired.' => 'Digest nonce expirado.', 'No authentication provider found to support the authentication token.' => 'Nenhum fornecedor de autenticação encontrado para suportar o token de autenticação.', 'No session available, it either timed out or cookies are not enabled.' => 'Não existe sessão disponível, esta expirou ou os cookies estão desativados.', 'No token could be found.' => 'O token não foi encontrado.', 'Username could not be found.' => 'Nome de utilizador não encontrado.', 'Account has expired.' => 'A conta expirou.', 'Credentials have expired.' => 'As credenciais expiraram.', 'Account is disabled.' => 'Conta desativada.', 'Account is locked.' => 'A conta está trancada.')));
$cataloguePt = new MessageCatalogue('pt', array('validators' => array('This value should be false.' => 'Este valor deveria ser falso.', 'This value should be true.' => 'Este valor deveria ser verdadeiro.', 'This value should be of type {{ type }}.' => 'Este valor deveria ser do tipo {{ type }}.', 'This value should be blank.' => 'Este valor deveria ser vazio.', 'The value you selected is not a valid choice.' => 'O valor selecionado não é uma opção válida.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'Você deveria selecionar {{ limit }} opção no mínimo.|Você deveria selecionar {{ limit }} opções no mínimo.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'Você deve selecionar, no máximo {{ limit }} opção.|Você deve selecionar, no máximo {{ limit }} opções.', 'One or more of the given values is invalid.' => 'Um ou mais dos valores introduzidos não são válidos.', 'This field was not expected.' => 'Este campo não era esperado.', 'This field is missing.' => 'Este campo está faltando.', 'This value is not a valid date.' => 'Este valor não é uma data válida.', 'This value is not a valid datetime.' => 'Este valor não é uma data-hora válida.', 'This value is not a valid email address.' => 'Este valor não é um endereço de e-mail válido.', 'The file could not be found.' => 'O arquivo não pôde ser encontrado.', 'The file is not readable.' => 'O arquivo não pôde ser lido.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'O arquivo é muito grande ({{ size }} {{ suffix }}). O tamanho máximo permitido é de {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'O tipo mime do arquivo é inválido ({{ type }}). Os tipos mime permitidos são {{ types }}.', 'This value should be {{ limit }} or less.' => 'Este valor deveria ser {{ limit }} ou menor.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'O valor é muito longo. Deveria ter {{ limit }} caracteres ou menos.', 'This value should be {{ limit }} or more.' => 'Este valor deveria ser {{ limit }} ou mais.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'O valor é muito curto. Deveria de ter {{ limit }} caractere ou mais.|O valor é muito curto. Deveria de ter {{ limit }} caracteres ou mais.', 'This value should not be blank.' => 'Este valor não deveria ser branco/vazio.', 'This value should not be null.' => 'Este valor não deveria ser nulo.', 'This value should be null.' => 'Este valor deveria ser nulo.', 'This value is not valid.' => 'Este valor não é válido.', 'This value is not a valid time.' => 'Este valor não é uma hora válida.', 'This value is not a valid URL.' => 'Este valor não é um URL válido.', 'The two values should be equal.' => 'Os dois valores deveriam ser iguais.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'O arquivo é muito grande. O tamanho máximo permitido é de {{ limit }} {{ suffix }}.', 'The file is too large.' => 'O ficheiro é muito grande.', 'The file could not be uploaded.' => 'Não foi possível carregar o ficheiro.', 'This value should be a valid number.' => 'Este valor deveria de ser um número válido.', 'This file is not a valid image.' => 'Este ficheiro não é uma imagem.', 'This is not a valid IP address.' => 'Este endereço de IP não é válido.', 'This value is not a valid language.' => 'Este valor não é uma linguagem válida.', 'This value is not a valid locale.' => 'Este valor não é um \'locale\' válido.', 'This value is not a valid country.' => 'Este valor não é um País válido.', 'This value is already used.' => 'Este valor já está a ser usado.', 'The size of the image could not be detected.' => 'O tamanho da imagem não foi detetado.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'A largura da imagem ({{ width }}px) é muito grande. A largura máxima da imagem é: {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'A largura da imagem ({{ width }}px) é muito pequena. A largura miníma da imagem é de: {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'A altura da imagem ({{ height }}px) é muito grande. A altura máxima da imagem é de: {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'A altura da imagem ({{ height }}px) é muito pequena. A altura miníma da imagem é de: {{ min_height }}px.', 'This value should be the user\'s current password.' => 'Este valor deveria de ser a password atual do utilizador.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'Este valor tem de ter exatamente {{ limit }} carateres.', 'The file was only partially uploaded.' => 'Só foi enviado parte do ficheiro.', 'No file was uploaded.' => 'Nenhum ficheiro foi enviado.', 'No temporary folder was configured in php.ini.' => 'Não existe nenhum directório temporária configurado no ficheiro php.ini.', 'Cannot write temporary file to disk.' => 'Não foi possível escrever ficheiros temporários no disco.', 'A PHP extension caused the upload to fail.' => 'Uma extensão PHP causou a falha no envio.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'Esta coleção deve conter {{ limit }} elemento ou mais.|Esta coleção deve conter {{ limit }} elementos ou mais.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'Esta coleção deve conter {{ limit }} elemento ou menos.|Esta coleção deve conter {{ limit }} elementos ou menos.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'Esta coleção deve conter exatamente {{ limit }} elemento.|Esta coleção deve conter exatamente {{ limit }} elementos.', 'Invalid card number.' => 'Número de cartão inválido.', 'Unsupported card type or invalid card number.' => 'Tipo de cartão não suportado ou número de cartão inválido.', 'This is not a valid International Bank Account Number (IBAN).' => 'Este não é um Número Internacional de Conta Bancária (IBAN) válido.', 'This value is not a valid ISBN-10.' => 'Este valor não é um ISBN-10 válido.', 'This value is not a valid ISBN-13.' => 'Este valor não é um ISBN-13 válido.', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => 'Este valor não é um ISBN-10 ou ISBN-13 válido.', 'This value is not a valid ISSN.' => 'Este valor não é um ISSN válido.', 'This value is not a valid currency.' => 'Este não é um valor monetário válido.', 'This value should be equal to {{ compared_value }}.' => 'Este valor deve ser igual a {{ compared_value }}.', 'This value should be greater than {{ compared_value }}.' => 'Este valor deve ser superior a {{ compared_value }}.', 'This value should be greater than or equal to {{ compared_value }}.' => 'Este valor deve ser igual ou superior a {{ compared_value }}.', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => 'Este valor deve ser idêntico a {{ compared_value_type }} {{ compared_value }}.', 'This value should be less than {{ compared_value }}.' => 'Este valor deve ser inferior a {{ compared_value }}.', 'This value should be less than or equal to {{ compared_value }}.' => 'Este valor deve ser igual ou inferior a {{ compared_value }}.', 'This value should not be equal to {{ compared_value }}.' => 'Este valor não deve ser igual a {{ compared_value }}.', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => 'Este valor não deve ser idêntico a {{ compared_value_type }} {{ compared_value }}.', 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.' => 'O formato da imagem é muito grande ({{ ratio }}). O formato máximo é {{ max_ratio }}.', 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.' => 'O formato da imagem é muito pequeno ({{ ratio }}). O formato mínimo esperado é {{ min_ratio }}.', 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.' => 'A imagem é um quadrado ({{ width }}x{{ height }}px). Imagens quadradas não são permitidas.', 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.' => 'A imagem está orientada à paisagem ({{ width }}x{{ height }}px). Imagens orientadas à paisagem não são permitidas.', 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.' => 'A imagem está orientada ao retrato ({{ width }}x{{ height }}px). Imagens orientadas ao retrato não são permitidas.', 'An empty file is not allowed.' => 'Ficheiro vazio não é permitido.', 'This form should not contain extra fields.' => 'Este formulário não deveria conter campos extra.', 'The uploaded file was too large. Please try to upload a smaller file.' => 'O arquivo enviado é muito grande. Por favor, tente enviar um ficheiro mais pequeno.', 'The CSRF token is invalid. Please try to resubmit the form.' => 'O token CSRF é inválido. Por favor submeta o formulário novamente.', 'fos_user.username.already_used' => 'Este utilizador já existe', 'fos_user.username.blank' => 'Por favor introduza o nome de utilizador', 'fos_user.username.short' => '[-Inf,Inf]O nome de utilizador é muito curto', 'fos_user.username.long' => '[-Inf,Inf]O nome de utilizador é muito longo', 'fos_user.email.already_used' => 'Este email já está a ser usado', 'fos_user.email.blank' => 'Por favor introduza o email', 'fos_user.email.short' => '[-Inf,Inf]Este email é muito curto', 'fos_user.email.long' => '[-Inf,Inf]Este email é muito longo', 'fos_user.email.invalid' => 'Este email é inválido', 'fos_user.password.blank' => 'Por favor introduza a senha', 'fos_user.password.short' => '[-Inf,Inf]Esta senha é muito curta', 'fos_user.password.mismatch' => 'As senhas não correspondem', 'fos_user.new_password.blank' => 'Por favor introduza a nova senha', 'fos_user.new_password.short' => '[-Inf,Inf]A nova senha é muito curta', 'fos_user.current_password.invalid' => 'A senha está incorreta', 'fos_user.group.blank' => 'Por favor introduza o nome', 'fos_user.group.short' => '[-Inf,Inf]O nome é muito curto', 'fos_user.group.long' => '[-Inf,Inf]O nome é muito longo'), 'FOSUserBundle' => array('group.edit.submit' => 'Atualizar Grupo', 'group.show.name' => 'Nome do Grupo', 'group.new.submit' => 'Criar Grupo', 'group.flash.updated' => 'O grupo foi atualizado', 'group.flash.created' => 'O grupo foi criado', 'group.flash.deleted' => 'O grupo foi apagado', 'security.login.username' => 'Utilizador', 'security.login.password' => 'Password', 'security.login.remember_me' => 'Lembrar-me', 'security.login.submit' => 'Entrar', 'profile.show.username' => 'Utilizador', 'profile.show.email' => 'Email', 'profile.edit.submit' => 'Atualizar conta', 'profile.flash.updated' => 'O perfil foi atualizado', 'change_password.submit' => 'Mudar a password', 'change_password.flash.success' => 'A password foi alterada', 'registration.check_email' => 'Foi enviado um email para %email%. Este contém um link de ativação que terá de visitar para ativar a sua conta.', 'registration.confirmed' => 'Parabéns %username%, a sua conta foi confirmada.', 'registration.back' => 'Voltar para a página anterior.', 'registration.submit' => 'Registar', 'registration.flash.user_created' => 'O utilizador foi criado com sucesso', 'registration.email.subject' => 'Bem-vindo(a) %username%!', 'registration.email.message' => 'Olá %username%!

Para completar a validação da sua conta, por favor visite o seguinte link: %confirmationUrl%

Cumprimentos,
A equipa.
', 'resetting.password_already_requested' => 'Uma password para este utilizador já foi requisitada nas últimas 24 horas.', 'resetting.check_email' => 'Foi enviado um email para %email% com a informação necessária para recuperar a sua password.', 'resetting.request.invalid_username' => 'O username ou email "%username%" não existe.', 'resetting.request.username' => 'Utilizador', 'resetting.request.submit' => 'Recuperar password', 'resetting.reset.submit' => 'Alterar password', 'resetting.flash.success' => 'A password foi recuperada com sucesso', 'resetting.email.subject' => 'Recuperar password', 'resetting.email.message' => 'Olá %username%!

Para recuperar a password, por favor visite o seguinte link: %confirmationUrl%

Cumprimentos,
A equipa.
', 'layout.logout' => 'Sair', 'layout.login' => 'Entrar', 'layout.register' => 'Registar', 'layout.logged_in_as' => 'Entrou como %username%', 'form.group_name' => 'Nome do Grupo', 'form.username' => 'Utilizador', 'form.email' => 'Email', 'form.current_password' => 'Password atual', 'form.password' => 'Password', 'form.password_confirmation' => 'Verificar', 'form.new_password' => 'Nova password', 'form.new_password_confirmation' => 'Verificar')));
$catalogue->addFallbackCatalogue($cataloguePt);
$catalogueEn = new MessageCatalogue('en', array('validators' => array('This value should be false.' => 'This value should be false.', 'This value should be true.' => 'This value should be true.', 'This value should be of type {{ type }}.' => 'This value should be of type {{ type }}.', 'This value should be blank.' => 'This value should be blank.', 'The value you selected is not a valid choice.' => 'The value you selected is not a valid choice.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.', 'One or more of the given values is invalid.' => 'One or more of the given values is invalid.', 'This field was not expected.' => 'This field was not expected.', 'This field is missing.' => 'This field is missing.', 'This value is not a valid date.' => 'This value is not a valid date.', 'This value is not a valid datetime.' => 'This value is not a valid datetime.', 'This value is not a valid email address.' => 'This value is not a valid email address.', 'The file could not be found.' => 'The file could not be found.', 'The file is not readable.' => 'The file is not readable.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.', 'This value should be {{ limit }} or less.' => 'This value should be {{ limit }} or less.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.', 'This value should be {{ limit }} or more.' => 'This value should be {{ limit }} or more.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.', 'This value should not be blank.' => 'This value should not be blank.', 'This value should not be null.' => 'This value should not be null.', 'This value should be null.' => 'This value should be null.', 'This value is not valid.' => 'This value is not valid.', 'This value is not a valid time.' => 'This value is not a valid time.', 'This value is not a valid URL.' => 'This value is not a valid URL.', 'The two values should be equal.' => 'The two values should be equal.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.', 'The file is too large.' => 'The file is too large.', 'The file could not be uploaded.' => 'The file could not be uploaded.', 'This value should be a valid number.' => 'This value should be a valid number.', 'This file is not a valid image.' => 'This file is not a valid image.', 'This is not a valid IP address.' => 'This is not a valid IP address.', 'This value is not a valid language.' => 'This value is not a valid language.', 'This value is not a valid locale.' => 'This value is not a valid locale.', 'This value is not a valid country.' => 'This value is not a valid country.', 'This value is already used.' => 'This value is already used.', 'The size of the image could not be detected.' => 'The size of the image could not be detected.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.', 'This value should be the user\'s current password.' => 'This value should be the user\'s current password.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.', 'The file was only partially uploaded.' => 'The file was only partially uploaded.', 'No file was uploaded.' => 'No file was uploaded.', 'No temporary folder was configured in php.ini.' => 'No temporary folder was configured in php.ini.', 'Cannot write temporary file to disk.' => 'Cannot write temporary file to disk.', 'A PHP extension caused the upload to fail.' => 'A PHP extension caused the upload to fail.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.', 'Invalid card number.' => 'Invalid card number.', 'Unsupported card type or invalid card number.' => 'Unsupported card type or invalid card number.', 'This is not a valid International Bank Account Number (IBAN).' => 'This is not a valid International Bank Account Number (IBAN).', 'This value is not a valid ISBN-10.' => 'This value is not a valid ISBN-10.', 'This value is not a valid ISBN-13.' => 'This value is not a valid ISBN-13.', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => 'This value is neither a valid ISBN-10 nor a valid ISBN-13.', 'This value is not a valid ISSN.' => 'This value is not a valid ISSN.', 'This value is not a valid currency.' => 'This value is not a valid currency.', 'This value should be equal to {{ compared_value }}.' => 'This value should be equal to {{ compared_value }}.', 'This value should be greater than {{ compared_value }}.' => 'This value should be greater than {{ compared_value }}.', 'This value should be greater than or equal to {{ compared_value }}.' => 'This value should be greater than or equal to {{ compared_value }}.', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.', 'This value should be less than {{ compared_value }}.' => 'This value should be less than {{ compared_value }}.', 'This value should be less than or equal to {{ compared_value }}.' => 'This value should be less than or equal to {{ compared_value }}.', 'This value should not be equal to {{ compared_value }}.' => 'This value should not be equal to {{ compared_value }}.', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.', 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.' => 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.', 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.' => 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.', 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.' => 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.', 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.' => 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.', 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.' => 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.', 'An empty file is not allowed.' => 'An empty file is not allowed.', 'The host could not be resolved.' => 'The host could not be resolved.', 'This value does not match the expected {{ charset }} charset.' => 'This value does not match the expected {{ charset }} charset.', 'This is not a valid Business Identifier Code (BIC).' => 'This is not a valid Business Identifier Code (BIC).', 'This form should not contain extra fields.' => 'This form should not contain extra fields.', 'The uploaded file was too large. Please try to upload a smaller file.' => 'The uploaded file was too large. Please try to upload a smaller file.', 'The CSRF token is invalid. Please try to resubmit the form.' => 'The CSRF token is invalid. Please try to resubmit the form.', 'fos_user.username.already_used' => 'The username is already used', 'fos_user.username.blank' => 'Please enter a username', 'fos_user.username.short' => '[-Inf,Inf]The username is too short', 'fos_user.username.long' => '[-Inf,Inf]The username is too long', 'fos_user.email.already_used' => 'The email is already used', 'fos_user.email.blank' => 'Please enter an email', 'fos_user.email.short' => '[-Inf,Inf]The email is too short', 'fos_user.email.long' => '[-Inf,Inf]The email is too long', 'fos_user.email.invalid' => 'The email is not valid', 'fos_user.password.blank' => 'Please enter a password', 'fos_user.password.short' => '[-Inf,Inf]The password is too short', 'fos_user.password.mismatch' => 'The entered passwords don\'t match', 'fos_user.new_password.blank' => 'Please enter a new password', 'fos_user.new_password.short' => '[-Inf,Inf]The new password is too short', 'fos_user.current_password.invalid' => 'The entered password is invalid', 'fos_user.group.blank' => 'Please enter a name', 'fos_user.group.short' => '[-Inf,Inf]The name is too short', 'fos_user.group.long' => '[-Inf,Inf]The name is too long'), 'security' => array('An authentication exception occurred.' => 'An authentication exception occurred.', 'Authentication credentials could not be found.' => 'Authentication credentials could not be found.', 'Authentication request could not be processed due to a system problem.' => 'Authentication request could not be processed due to a system problem.', 'Invalid credentials.' => 'Invalid credentials.', 'Cookie has already been used by someone else.' => 'Cookie has already been used by someone else.', 'Not privileged to request the resource.' => 'Not privileged to request the resource.', 'Invalid CSRF token.' => 'Invalid CSRF token.', 'Digest nonce has expired.' => 'Digest nonce has expired.', 'No authentication provider found to support the authentication token.' => 'No authentication provider found to support the authentication token.', 'No session available, it either timed out or cookies are not enabled.' => 'No session available, it either timed out or cookies are not enabled.', 'No token could be found.' => 'No token could be found.', 'Username could not be found.' => 'Username could not be found.', 'Account has expired.' => 'Account has expired.', 'Credentials have expired.' => 'Credentials have expired.', 'Account is disabled.' => 'Account is disabled.', 'Account is locked.' => 'Account is locked.'), 'FOSUserBundle' => array('group.edit.submit' => 'Update group', 'group.show.name' => 'Group name', 'group.new.submit' => 'Create group', 'group.flash.updated' => 'The group has been updated', 'group.flash.created' => 'The group has been created', 'group.flash.deleted' => 'The group has been deleted', 'security.login.username' => 'Username', 'security.login.password' => 'Password', 'security.login.remember_me' => 'Remember me', 'security.login.submit' => 'Log in', 'profile.show.username' => 'Username', 'profile.show.email' => 'Email', 'profile.edit.submit' => 'Update', 'profile.flash.updated' => 'The profile has been updated', 'change_password.submit' => 'Change password', 'change_password.flash.success' => 'The password has been changed', 'registration.check_email' => 'An email has been sent to %email%. It contains an activation link you must click to activate your account.', 'registration.confirmed' => 'Congrats %username%, your account is now activated.', 'registration.back' => 'Back to the originating page.', 'registration.submit' => 'Register', 'registration.flash.user_created' => 'The user has been created successfully', 'registration.email.subject' => 'Welcome %username%!', 'registration.email.message' => 'Hello %username%!

To finish activating your account - please visit %confirmationUrl%

Regards,
the Team.
', 'resetting.password_already_requested' => 'The password for this user has already been requested within the last 24 hours.', 'resetting.check_email' => 'An email has been sent to %email%. It contains a link you must click to reset your password.', 'resetting.request.invalid_username' => 'The username or email address "%username%" does not exist.', 'resetting.request.username' => 'Username or email address', 'resetting.request.submit' => 'Reset password', 'resetting.reset.submit' => 'Change password', 'resetting.flash.success' => 'The password has been reset successfully', 'resetting.email.subject' => 'Reset Password', 'resetting.email.message' => 'Hello %username%!

To reset your password - please visit %confirmationUrl%

Regards,
the Team.
', 'layout.logout' => 'Log out', 'layout.login' => 'Log in', 'layout.register' => 'Register', 'layout.logged_in_as' => 'Logged in as %username%', 'form.group_name' => 'Group name', 'form.username' => 'Username', 'form.email' => 'Email', 'form.current_password' => 'Current password', 'form.password' => 'Password', 'form.password_confirmation' => 'Repeat password', 'form.new_password' => 'New password', 'form.new_password_confirmation' => 'Repeat new password'), 'VichUploaderBundle' => array('download' => 'Download', 'form.label.delete' => 'Delete?')));
$cataloguePt->addFallbackCatalogue($catalogueEn);
return $catalogue;
<?php

use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('it', array('validators' => array('This value should be false.' => 'Questo valore dovrebbe essere falso.', 'This value should be true.' => 'Questo valore dovrebbe essere vero.', 'This value should be of type {{ type }}.' => 'Questo valore dovrebbe essere di tipo {{ type }}.', 'This value should be blank.' => 'Questo valore dovrebbe essere vuoto.', 'The value you selected is not a valid choice.' => 'Questo valore dovrebbe essere una delle opzioni disponibili.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'Si dovrebbe selezionare almeno {{ limit }} opzione.|Si dovrebbero selezionare almeno {{ limit }} opzioni.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'Si dovrebbe selezionare al massimo {{ limit }} opzione.|Si dovrebbero selezionare al massimo {{ limit }} opzioni.', 'One or more of the given values is invalid.' => 'Uno o più valori inseriti non sono validi.', 'This field was not expected.' => 'Questo campo non è stato previsto.', 'This field is missing.' => 'Questo campo è mancante.', 'This value is not a valid date.' => 'Questo valore non è una data valida.', 'This value is not a valid datetime.' => 'Questo valore non è una data e ora valida.', 'This value is not a valid email address.' => 'Questo valore non è un indirizzo email valido.', 'The file could not be found.' => 'Non è stato possibile trovare il file.', 'The file is not readable.' => 'Il file non è leggibile.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'Il file è troppo grande ({{ size }} {{ suffix }}). La dimensione massima consentita è {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'Il mime type del file non è valido ({{ type }}). I tipi permessi sono {{ types }}.', 'This value should be {{ limit }} or less.' => 'Questo valore dovrebbe essere {{ limit }} o inferiore.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'Questo valore è troppo lungo. Dovrebbe essere al massimo di {{ limit }} carattere.|Questo valore è troppo lungo. Dovrebbe essere al massimo di {{ limit }} caratteri.', 'This value should be {{ limit }} or more.' => 'Questo valore dovrebbe essere {{ limit }} o superiore.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'Questo valore è troppo corto. Dovrebbe essere almeno di {{ limit }} carattere.|Questo valore è troppo corto. Dovrebbe essere almeno di {{ limit }} caratteri.', 'This value should not be blank.' => 'Questo valore non dovrebbe essere vuoto.', 'This value should not be null.' => 'Questo valore non dovrebbe essere nullo.', 'This value should be null.' => 'Questo valore dovrebbe essere nullo.', 'This value is not valid.' => 'Questo valore non è valido.', 'This value is not a valid time.' => 'Questo valore non è un\'ora valida.', 'This value is not a valid URL.' => 'Questo valore non è un URL valido.', 'The two values should be equal.' => 'I due valori dovrebbero essere uguali.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'Il file è troppo grande. La dimensione massima è {{ limit }} {{ suffix }}.', 'The file is too large.' => 'Il file è troppo grande.', 'The file could not be uploaded.' => 'Il file non può essere caricato.', 'This value should be a valid number.' => 'Questo valore dovrebbe essere un numero.', 'This file is not a valid image.' => 'Questo file non è una immagine valida.', 'This is not a valid IP address.' => 'Questo valore non è un indirizzo IP valido.', 'This value is not a valid language.' => 'Questo valore non è una lingua valida.', 'This value is not a valid locale.' => 'Questo valore non è una impostazione regionale valida.', 'This value is not a valid country.' => 'Questo valore non è una nazione valida.', 'This value is already used.' => 'Questo valore è già stato utilizzato.', 'The size of the image could not be detected.' => 'La dimensione dell\'immagine non può essere determinata.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'La larghezza dell\'immagine è troppo grande ({{ width }}px). La larghezza massima è di {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'La larghezza dell\'immagine è troppo piccola ({{ width }}px). La larghezza minima è di {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'L\'altezza dell\'immagine è troppo grande ({{ height }}px). L\'altezza massima è di {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'L\'altezza dell\'immagine è troppo piccola ({{ height }}px). L\'altezza minima è di {{ min_height }}px.', 'This value should be the user\'s current password.' => 'Questo valore dovrebbe essere la password attuale dell\'utente.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'Questo valore dovrebbe contenere esattamente {{ limit }} carattere.|Questo valore dovrebbe contenere esattamente {{ limit }} caratteri.', 'The file was only partially uploaded.' => 'Il file è stato caricato solo parzialmente.', 'No file was uploaded.' => 'Nessun file è stato caricato.', 'No temporary folder was configured in php.ini.' => 'Nessuna cartella temporanea è stata configurata nel php.ini.', 'Cannot write temporary file to disk.' => 'Impossibile scrivere il file temporaneo sul disco.', 'A PHP extension caused the upload to fail.' => 'Un\'estensione PHP ha causato il fallimento del caricamento.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'Questa collezione dovrebbe contenere almeno {{ limit }} elemento.|Questa collezione dovrebbe contenere almeno {{ limit }} elementi.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'Questa collezione dovrebbe contenere massimo {{ limit }} elemento.|Questa collezione dovrebbe contenere massimo {{ limit }} elementi.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'Questa collezione dovrebbe contenere esattamente {{ limit }} elemento.|Questa collezione dovrebbe contenere esattamente {{ limit }} elementi.', 'Invalid card number.' => 'Numero di carta non valido.', 'Unsupported card type or invalid card number.' => 'Tipo di carta non supportato o numero non valido.', 'This is not a valid International Bank Account Number (IBAN).' => 'Questo valore non è un IBAN (International Bank Account Number) valido.', 'This value is not a valid ISBN-10.' => 'Questo valore non è un codice ISBN-10 valido.', 'This value is not a valid ISBN-13.' => 'Questo valore non è un codice ISBN-13 valido.', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => 'Questo valore non è un codice ISBN-10 o ISBN-13 valido.', 'This value is not a valid ISSN.' => 'Questo valore non è un codice ISSN valido.', 'This value is not a valid currency.' => 'Questo valore non è una valuta valida.', 'This value should be equal to {{ compared_value }}.' => 'Questo valore dovrebbe essere uguale a {{ compared_value }}.', 'This value should be greater than {{ compared_value }}.' => 'Questo valore dovrebbe essere maggiore di {{ compared_value }}.', 'This value should be greater than or equal to {{ compared_value }}.' => 'Questo valore dovrebbe essere maggiore o uguale a {{ compared_value }}.', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => 'Questo valore dovrebbe essere identico a {{ compared_value_type }} {{ compared_value }}.', 'This value should be less than {{ compared_value }}.' => 'Questo valore dovrebbe essere minore di {{ compared_value }}.', 'This value should be less than or equal to {{ compared_value }}.' => 'Questo valore dovrebbe essere minore o uguale a {{ compared_value }}.', 'This value should not be equal to {{ compared_value }}.' => 'Questo valore dovrebbe essere diverso da {{ compared_value }}.', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => 'Questo valore dovrebbe essere diverso da {{ compared_value_type }} {{ compared_value }}.', 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.' => 'Il rapporto di aspetto dell\'immagine è troppo grande ({{ ratio }}). Il rapporto massimo consentito è {{ max_ratio }}.', 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.' => 'Il rapporto di aspetto dell\'immagine è troppo piccolo ({{ ratio }}). Il rapporto minimo consentito è {{ min_ratio }}.', 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.' => 'L\'immagine è quadrata ({{ width }}x{{ height }}px). Le immagini quadrate non sono consentite.', 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.' => 'L\'immagine è orizzontale ({{ width }}x{{ height }}px). Le immagini orizzontali non sono consentite.', 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.' => 'L\'immagine è verticale ({{ width }}x{{ height }}px). Le immagini verticali non sono consentite.', 'An empty file is not allowed.' => 'Un file vuoto non è consentito.', 'The host could not be resolved.' => 'L\'host non può essere risolto.', 'This value does not match the expected {{ charset }} charset.' => 'Questo valore non corrisponde al charset {{ charset }}.', 'This is not a valid Business Identifier Code (BIC).' => 'Questo valore non è un codice BIC valido.', 'This form should not contain extra fields.' => 'Questo form non dovrebbe contenere nessun campo extra.', 'The uploaded file was too large. Please try to upload a smaller file.' => 'Il file caricato è troppo grande. Per favore caricare un file più piccolo.', 'The CSRF token is invalid. Please try to resubmit the form.' => 'Il token CSRF non è valido. Provare a reinviare il form.'), 'security' => array('An authentication exception occurred.' => 'Si è verificato un errore di autenticazione.', 'Authentication credentials could not be found.' => 'Impossibile trovare le credenziali di autenticazione.', 'Authentication request could not be processed due to a system problem.' => 'La richiesta di autenticazione non può essere processata a causa di un errore di sistema.', 'Invalid credentials.' => 'Credenziali non valide.', 'Cookie has already been used by someone else.' => 'Il cookie è già stato usato da qualcun altro.', 'Not privileged to request the resource.' => 'Non hai i privilegi per richiedere questa risorsa.', 'Invalid CSRF token.' => 'CSRF token non valido.', 'Digest nonce has expired.' => 'Il numero di autenticazione è scaduto.', 'No authentication provider found to support the authentication token.' => 'Non è stato trovato un valido fornitore di autenticazione per supportare il token.', 'No session available, it either timed out or cookies are not enabled.' => 'Nessuna sessione disponibile, può essere scaduta o i cookie non sono abilitati.', 'No token could be found.' => 'Nessun token trovato.', 'Username could not be found.' => 'Username non trovato.', 'Account has expired.' => 'Account scaduto.', 'Credentials have expired.' => 'Credenziali scadute.', 'Account is disabled.' => 'L\'account è disabilitato.', 'Account is locked.' => 'L\'account è bloccato.')));
$catalogueEn = new MessageCatalogue('en', array('validators' => array('This value should be false.' => 'This value should be false.', 'This value should be true.' => 'This value should be true.', 'This value should be of type {{ type }}.' => 'This value should be of type {{ type }}.', 'This value should be blank.' => 'This value should be blank.', 'The value you selected is not a valid choice.' => 'The value you selected is not a valid choice.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.', 'One or more of the given values is invalid.' => 'One or more of the given values is invalid.', 'This field was not expected.' => 'This field was not expected.', 'This field is missing.' => 'This field is missing.', 'This value is not a valid date.' => 'This value is not a valid date.', 'This value is not a valid datetime.' => 'This value is not a valid datetime.', 'This value is not a valid email address.' => 'This value is not a valid email address.', 'The file could not be found.' => 'The file could not be found.', 'The file is not readable.' => 'The file is not readable.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.', 'This value should be {{ limit }} or less.' => 'This value should be {{ limit }} or less.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.', 'This value should be {{ limit }} or more.' => 'This value should be {{ limit }} or more.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.', 'This value should not be blank.' => 'This value should not be blank.', 'This value should not be null.' => 'This value should not be null.', 'This value should be null.' => 'This value should be null.', 'This value is not valid.' => 'This value is not valid.', 'This value is not a valid time.' => 'This value is not a valid time.', 'This value is not a valid URL.' => 'This value is not a valid URL.', 'The two values should be equal.' => 'The two values should be equal.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.', 'The file is too large.' => 'The file is too large.', 'The file could not be uploaded.' => 'The file could not be uploaded.', 'This value should be a valid number.' => 'This value should be a valid number.', 'This file is not a valid image.' => 'This file is not a valid image.', 'This is not a valid IP address.' => 'This is not a valid IP address.', 'This value is not a valid language.' => 'This value is not a valid language.', 'This value is not a valid locale.' => 'This value is not a valid locale.', 'This value is not a valid country.' => 'This value is not a valid country.', 'This value is already used.' => 'This value is already used.', 'The size of the image could not be detected.' => 'The size of the image could not be detected.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.', 'This value should be the user\'s current password.' => 'This value should be the user\'s current password.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.', 'The file was only partially uploaded.' => 'The file was only partially uploaded.', 'No file was uploaded.' => 'No file was uploaded.', 'No temporary folder was configured in php.ini.' => 'No temporary folder was configured in php.ini.', 'Cannot write temporary file to disk.' => 'Cannot write temporary file to disk.', 'A PHP extension caused the upload to fail.' => 'A PHP extension caused the upload to fail.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.', 'Invalid card number.' => 'Invalid card number.', 'Unsupported card type or invalid card number.' => 'Unsupported card type or invalid card number.', 'This is not a valid International Bank Account Number (IBAN).' => 'This is not a valid International Bank Account Number (IBAN).', 'This value is not a valid ISBN-10.' => 'This value is not a valid ISBN-10.', 'This value is not a valid ISBN-13.' => 'This value is not a valid ISBN-13.', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => 'This value is neither a valid ISBN-10 nor a valid ISBN-13.', 'This value is not a valid ISSN.' => 'This value is not a valid ISSN.', 'This value is not a valid currency.' => 'This value is not a valid currency.', 'This value should be equal to {{ compared_value }}.' => 'This value should be equal to {{ compared_value }}.', 'This value should be greater than {{ compared_value }}.' => 'This value should be greater than {{ compared_value }}.', 'This value should be greater than or equal to {{ compared_value }}.' => 'This value should be greater than or equal to {{ compared_value }}.', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.', 'This value should be less than {{ compared_value }}.' => 'This value should be less than {{ compared_value }}.', 'This value should be less than or equal to {{ compared_value }}.' => 'This value should be less than or equal to {{ compared_value }}.', 'This value should not be equal to {{ compared_value }}.' => 'This value should not be equal to {{ compared_value }}.', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.', 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.' => 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.', 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.' => 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.', 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.' => 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.', 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.' => 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.', 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.' => 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.', 'An empty file is not allowed.' => 'An empty file is not allowed.', 'The host could not be resolved.' => 'The host could not be resolved.', 'This value does not match the expected {{ charset }} charset.' => 'This value does not match the expected {{ charset }} charset.', 'This is not a valid Business Identifier Code (BIC).' => 'This is not a valid Business Identifier Code (BIC).', 'This form should not contain extra fields.' => 'This form should not contain extra fields.', 'The uploaded file was too large. Please try to upload a smaller file.' => 'The uploaded file was too large. Please try to upload a smaller file.', 'The CSRF token is invalid. Please try to resubmit the form.' => 'The CSRF token is invalid. Please try to resubmit the form.'), 'security' => array('An authentication exception occurred.' => 'An authentication exception occurred.', 'Authentication credentials could not be found.' => 'Authentication credentials could not be found.', 'Authentication request could not be processed due to a system problem.' => 'Authentication request could not be processed due to a system problem.', 'Invalid credentials.' => 'Invalid credentials.', 'Cookie has already been used by someone else.' => 'Cookie has already been used by someone else.', 'Not privileged to request the resource.' => 'Not privileged to request the resource.', 'Invalid CSRF token.' => 'Invalid CSRF token.', 'Digest nonce has expired.' => 'Digest nonce has expired.', 'No authentication provider found to support the authentication token.' => 'No authentication provider found to support the authentication token.', 'No session available, it either timed out or cookies are not enabled.' => 'No session available, it either timed out or cookies are not enabled.', 'No token could be found.' => 'No token could be found.', 'Username could not be found.' => 'Username could not be found.', 'Account has expired.' => 'Account has expired.', 'Credentials have expired.' => 'Credentials have expired.', 'Account is disabled.' => 'Account is disabled.', 'Account is locked.' => 'Account is locked.'), 'messages' => array('intro' => '*** en_EN *** Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ac aliquet arcu, nec congue eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Pellentesque porttitor eros non cursus hendrerit. Nullam in vulputate eros, sed aliquet mi. Cras sed neque sit amet ipsum fringilla eleifend eu id ipsum. Proin vestibulum, magna nec bibendum vehicula, nunc libero vehicula urna, sed congue tortor metus vel dolor. Etiam quis bibendum velit, ac posuere lorem. Aenean aliquam risus ligula, vitae pulvinar quam scelerisque ac. In aliquet ligula non enim suscipit cursus. Maecenas fermentum vel turpis eget finibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.')));
$catalogue->addFallbackCatalogue($catalogueEn);
return $catalogue;
Пример #5
0
 /**
  * @expectedException \LogicException
  */
 public function testAddFallbackCatalogueWithFallbackCircularReference()
 {
     $fr = new MessageCatalogue('fr');
     $en = new MessageCatalogue('en');
     $es = new MessageCatalogue('es');
     $fr->addFallbackCatalogue($en);
     $es->addFallbackCatalogue($en);
     $en->addFallbackCatalogue($fr);
 }
<?php

use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('zh_TW', array('validators' => array('This value should be false.' => '該變數的值應為 false 。', 'This value should be true.' => '該變數的值應為 true 。', 'This value should be of type {{ type }}.' => '該變數的類型應為 {{ type }} 。', 'This value should be blank.' => '該變數應為空。', 'The value you selected is not a valid choice.' => '選定變數的值不是有效的選項。', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => '您至少要選擇 {{ limit }} 個選項。', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => '您最多能選擇 {{ limit }} 個選項。', 'One or more of the given values is invalid.' => '一個或者多個給定的值無效。', 'This field was not expected.' => '此字段是沒有預料到。', 'This field is missing.' => '此字段缺失。', 'This value is not a valid date.' => '該值不是一個有效的日期(date)。', 'This value is not a valid datetime.' => '該值不是一個有效的日期時間(datetime)。', 'This value is not a valid email address.' => '該值不是一個有效的郵件地址。', 'The file could not be found.' => '找不到檔案。', 'The file is not readable.' => '無法讀取檔案。', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => '檔案太大 ({{ size }} {{ suffix }})。檔案大小不可以超過 {{ limit }} {{ suffix }} 。', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => '無效的檔案類型 ({{ type }}) 。允許的檔案類型有 {{ types }} 。', 'This value should be {{ limit }} or less.' => '這個變數的值應該小於或等於 {{ limit }}。', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => '字串太長,長度不可超過 {{ limit }} 個字元。', 'This value should be {{ limit }} or more.' => '該變數的值應該大於或等於 {{ limit }}。', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => '字串太短,長度不可少於 {{ limit }} 個字元。', 'This value should not be blank.' => '該變數不應為空白。', 'This value should not be null.' => '該值不應為 null 。', 'This value should be null.' => '該值應為 null 。', 'This value is not valid.' => '無效的數值 。', 'This value is not a valid time.' => '該值不是一個有效的時間。', 'This value is not a valid URL.' => '該值不是一個有效的 URL 。', 'The two values should be equal.' => '這兩個變數的值應該相等。', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => '檔案太大,檔案大小不可以超過 {{ limit }} {{ suffix }}。 ', 'The file is too large.' => '檔案太大。', 'The file could not be uploaded.' => '無法上傳此檔案。', 'This value should be a valid number.' => '該值應該為有效的數字。', 'This value is not a valid country.' => '該值不是有效的國家名。', 'This file is not a valid image.' => '該檔案不是有效的圖片。', 'This is not a valid IP address.' => '該值不是有效的IP地址。', 'This value is not a valid language.' => '該值不是有效的語言名。', 'This value is not a valid locale.' => '該值不是有效的區域值(locale)。', 'This value is already used.' => '該值已經被使用。', 'The size of the image could not be detected.' => '不能解析圖片大小。', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => '圖片太寬 ({{ width }}px),最大寬度為 {{ max_width }}px 。', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => '圖片寬度不夠 ({{ width }}px),最小寬度為 {{ min_width }}px 。', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => '圖片太高 ({{ height }}px),最大高度為 {{ max_height }}px 。', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => '圖片高度不夠 ({{ height }}px),最小高度為 {{ min_height }}px 。', 'This value should be the user\'s current password.' => '該變數的值應為用戶目前的密碼。', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => '該變數應為 {{ limit }} 個字元。', 'The file was only partially uploaded.' => '該檔案的上傳不完整。', 'No file was uploaded.' => '沒有上傳任何檔案。', 'No temporary folder was configured in php.ini.' => 'php.ini 裡沒有配置臨時目錄。', 'Cannot write temporary file to disk.' => '暫存檔寫入磁碟失敗。', 'A PHP extension caused the upload to fail.' => '某個 PHP 擴展造成上傳失敗。', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => '該集合最少應包含 {{ limit }} 個元素。', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => '該集合最多包含 {{ limit }} 個元素。', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => '該集合應包含 {{ limit }} 個元素 element 。', 'Invalid card number.' => '無效的信用卡號。', 'Unsupported card type or invalid card number.' => '不支援的信用卡類型或無效的信用卡號。', 'This is not a valid International Bank Account Number (IBAN).' => '該值不是有效的國際銀行帳號(IBAN)。', 'This value is not a valid ISBN-10.' => '該值不是有效的10位國際標準書號(ISBN-10)。', 'This value is not a valid ISBN-13.' => '該值不是有效的13位國際標準書號(ISBN-13)。', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => '該值不是有效的國際標準書號(ISBN-10 或 ISBN-13)。', 'This value is not a valid ISSN.' => '該值不是有效的國際標準期刊號(ISSN)。', 'This value is not a valid currency.' => '該值不是有效的貨幣名(currency)。', 'This value should be equal to {{ compared_value }}.' => '該值應等於 {{ compared_value }} 。', 'This value should be greater than {{ compared_value }}.' => '該值應大於 {{ compared_value }} 。', 'This value should be greater than or equal to {{ compared_value }}.' => '該值應大於或等於 {{ compared_value }} 。', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => '該值應與 {{ compared_value_type }} {{ compared_value }} 相同。', 'This value should be less than {{ compared_value }}.' => '該值應小於 {{ compared_value }} 。', 'This value should be less than or equal to {{ compared_value }}.' => '該值應小於或等於 {{ compared_value }} 。', 'This value should not be equal to {{ compared_value }}.' => '該值應不等於 {{ compared_value }} 。', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => '該值不應與 {{ compared_value_type }} {{ compared_value }} 相同。')));
$catalogueZh = new MessageCatalogue('zh', array());
$catalogue->addFallbackCatalogue($catalogueZh);
$catalogueEn = new MessageCatalogue('en', array('validators' => array('This value should be false.' => 'This value should be false.', 'This value should be true.' => 'This value should be true.', 'This value should be of type {{ type }}.' => 'This value should be of type {{ type }}.', 'This value should be blank.' => 'This value should be blank.', 'The value you selected is not a valid choice.' => 'The value you selected is not a valid choice.', 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.' => 'You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.', 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.' => 'You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.', 'One or more of the given values is invalid.' => 'One or more of the given values is invalid.', 'This field was not expected.' => 'This field was not expected.', 'This field is missing.' => 'This field is missing.', 'This value is not a valid date.' => 'This value is not a valid date.', 'This value is not a valid datetime.' => 'This value is not a valid datetime.', 'This value is not a valid email address.' => 'This value is not a valid email address.', 'The file could not be found.' => 'The file could not be found.', 'The file is not readable.' => 'The file is not readable.', 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.' => 'The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.', 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.' => 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.', 'This value should be {{ limit }} or less.' => 'This value should be {{ limit }} or less.', 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.' => 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.', 'This value should be {{ limit }} or more.' => 'This value should be {{ limit }} or more.', 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.' => 'This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.', 'This value should not be blank.' => 'This value should not be blank.', 'This value should not be null.' => 'This value should not be null.', 'This value should be null.' => 'This value should be null.', 'This value is not valid.' => 'This value is not valid.', 'This value is not a valid time.' => 'This value is not a valid time.', 'This value is not a valid URL.' => 'This value is not a valid URL.', 'The two values should be equal.' => 'The two values should be equal.', 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.' => 'The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.', 'The file is too large.' => 'The file is too large.', 'The file could not be uploaded.' => 'The file could not be uploaded.', 'This value should be a valid number.' => 'This value should be a valid number.', 'This file is not a valid image.' => 'This file is not a valid image.', 'This is not a valid IP address.' => 'This is not a valid IP address.', 'This value is not a valid language.' => 'This value is not a valid language.', 'This value is not a valid locale.' => 'This value is not a valid locale.', 'This value is not a valid country.' => 'This value is not a valid country.', 'This value is already used.' => 'This value is already used.', 'The size of the image could not be detected.' => 'The size of the image could not be detected.', 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.' => 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.', 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.' => 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.', 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.' => 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.', 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.' => 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.', 'This value should be the user\'s current password.' => 'This value should be the user\'s current password.', 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.' => 'This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.', 'The file was only partially uploaded.' => 'The file was only partially uploaded.', 'No file was uploaded.' => 'No file was uploaded.', 'No temporary folder was configured in php.ini.' => 'No temporary folder was configured in php.ini.', 'Cannot write temporary file to disk.' => 'Cannot write temporary file to disk.', 'A PHP extension caused the upload to fail.' => 'A PHP extension caused the upload to fail.', 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.' => 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.', 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.' => 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.', 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.' => 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.', 'Invalid card number.' => 'Invalid card number.', 'Unsupported card type or invalid card number.' => 'Unsupported card type or invalid card number.', 'This is not a valid International Bank Account Number (IBAN).' => 'This is not a valid International Bank Account Number (IBAN).', 'This value is not a valid ISBN-10.' => 'This value is not a valid ISBN-10.', 'This value is not a valid ISBN-13.' => 'This value is not a valid ISBN-13.', 'This value is neither a valid ISBN-10 nor a valid ISBN-13.' => 'This value is neither a valid ISBN-10 nor a valid ISBN-13.', 'This value is not a valid ISSN.' => 'This value is not a valid ISSN.', 'This value is not a valid currency.' => 'This value is not a valid currency.', 'This value should be equal to {{ compared_value }}.' => 'This value should be equal to {{ compared_value }}.', 'This value should be greater than {{ compared_value }}.' => 'This value should be greater than {{ compared_value }}.', 'This value should be greater than or equal to {{ compared_value }}.' => 'This value should be greater than or equal to {{ compared_value }}.', 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.' => 'This value should be identical to {{ compared_value_type }} {{ compared_value }}.', 'This value should be less than {{ compared_value }}.' => 'This value should be less than {{ compared_value }}.', 'This value should be less than or equal to {{ compared_value }}.' => 'This value should be less than or equal to {{ compared_value }}.', 'This value should not be equal to {{ compared_value }}.' => 'This value should not be equal to {{ compared_value }}.', 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.' => 'This value should not be identical to {{ compared_value_type }} {{ compared_value }}.', 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.' => 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.', 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.' => 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.', 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.' => 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.', 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.' => 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.', 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.' => 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.', 'An empty file is not allowed.' => 'An empty file is not allowed.', 'The host could not be resolved.' => 'The host could not be resolved.', 'This value does not match the expected {{ charset }} charset.' => 'This value does not match the expected {{ charset }} charset.', 'This is not a valid Business Identifier Code (BIC).' => 'This is not a valid Business Identifier Code (BIC).', 'This form should not contain extra fields.' => 'This form should not contain extra fields.', 'The uploaded file was too large. Please try to upload a smaller file.' => 'The uploaded file was too large. Please try to upload a smaller file.', 'The CSRF token is invalid. Please try to resubmit the form.' => 'The CSRF token is invalid. Please try to resubmit the form.', 'fos_user.username.already_used' => 'The username is already used', 'fos_user.username.blank' => 'Please enter a username', 'fos_user.username.short' => '[-Inf,Inf]The username is too short', 'fos_user.username.long' => '[-Inf,Inf]The username is too long', 'fos_user.email.already_used' => 'The email is already used', 'fos_user.email.blank' => 'Please enter an email', 'fos_user.email.short' => '[-Inf,Inf]The email is too short', 'fos_user.email.long' => '[-Inf,Inf]The email is too long', 'fos_user.email.invalid' => 'The email is not valid', 'fos_user.password.blank' => 'Please enter a password', 'fos_user.password.short' => '[-Inf,Inf]The password is too short', 'fos_user.password.mismatch' => 'The entered passwords don\'t match', 'fos_user.new_password.blank' => 'Please enter a new password', 'fos_user.new_password.short' => '[-Inf,Inf]The new password is too short', 'fos_user.current_password.invalid' => 'The entered password is invalid', 'fos_user.group.blank' => 'Please enter a name', 'fos_user.group.short' => '[-Inf,Inf]The name is too short', 'fos_user.group.long' => '[-Inf,Inf]The name is too long'), 'security' => array('An authentication exception occurred.' => 'An authentication exception occurred.', 'Authentication credentials could not be found.' => 'Authentication credentials could not be found.', 'Authentication request could not be processed due to a system problem.' => 'Authentication request could not be processed due to a system problem.', 'Invalid credentials.' => 'Invalid credentials.', 'Cookie has already been used by someone else.' => 'Cookie has already been used by someone else.', 'Not privileged to request the resource.' => 'Not privileged to request the resource.', 'Invalid CSRF token.' => 'Invalid CSRF token.', 'Digest nonce has expired.' => 'Digest nonce has expired.', 'No authentication provider found to support the authentication token.' => 'No authentication provider found to support the authentication token.', 'No session available, it either timed out or cookies are not enabled.' => 'No session available, it either timed out or cookies are not enabled.', 'No token could be found.' => 'No token could be found.', 'Username could not be found.' => 'Username could not be found.', 'Account has expired.' => 'Account has expired.', 'Credentials have expired.' => 'Credentials have expired.', 'Account is disabled.' => 'Account is disabled.', 'Account is locked.' => 'Account is locked.'), 'messages' => array('Bonjour' => 'Hello'), 'FOSUserBundle' => array('group.edit.submit' => 'Update group', 'group.show.name' => 'Group name', 'group.new.submit' => 'Create group', 'group.flash.updated' => 'The group has been updated', 'group.flash.created' => 'The group has been created', 'group.flash.deleted' => 'The group has been deleted', 'security.login.username' => 'Username', 'security.login.password' => 'Password', 'security.login.remember_me' => 'Remember me', 'security.login.submit' => 'Log in', 'profile.show.username' => 'Username', 'profile.show.email' => 'Email', 'profile.edit.submit' => 'Update', 'profile.flash.updated' => 'The profile has been updated', 'change_password.submit' => 'Change password', 'change_password.flash.success' => 'The password has been changed', 'registration.check_email' => 'An email has been sent to %email%. It contains an activation link you must click to activate your account.', 'registration.confirmed' => 'Congrats %username%, your account is now activated.', 'registration.back' => 'Back to the originating page.', 'registration.submit' => 'Register', 'registration.flash.user_created' => 'The user has been created successfully', 'registration.email.subject' => 'Welcome %username%!', 'registration.email.message' => 'Hello %username%!

To finish activating your account - please visit %confirmationUrl%

Regards,
the Team.
', 'resetting.password_already_requested' => 'The password for this user has already been requested within the last 24 hours.', 'resetting.check_email' => 'An email has been sent to %email%. It contains a link you must click to reset your password.', 'resetting.request.invalid_username' => 'The username or email address "%username%" does not exist.', 'resetting.request.username' => 'Username or email address', 'resetting.request.submit' => 'Reset password', 'resetting.reset.submit' => 'Change password', 'resetting.flash.success' => 'The password has been reset successfully', 'resetting.email.subject' => 'Reset Password', 'resetting.email.message' => 'Hello %username%!

To reset your password - please visit %confirmationUrl%

Regards,
the Team.
', 'layout.logout' => 'Log out', 'layout.login' => 'Log in', 'layout.register' => 'Register', 'layout.logged_in_as' => 'Logged in as %username%', 'form.group_name' => 'Group name', 'form.username' => 'Username', 'form.email' => 'Email', 'form.current_password' => 'Current password', 'form.password' => 'Password', 'form.password_confirmation' => 'Repeat password', 'form.new_password' => 'New password', 'form.new_password_confirmation' => 'Repeat new password')));
$catalogueZh->addFallbackCatalogue($catalogueEn);
return $catalogue;
 public function testSimpleLocaleDefaultFallback()
 {
     $messageCatalogue = new MessageCatalogue('de_CH');
     $messageCatalogue->addFallbackCatalogue(new MessageCatalogue('de'));
     $defaultCreator = $this->setUpCreator();
     $defaultCreator->createTranslation('simple', 'messages', 'de', $messageCatalogue);
     $this->assertFileExists($this->getMessagesFilePath());
     $data = Yaml::parse($this->getMessagesFilePath());
     $this->assertCount(1, $data);
     $this->assertArrayHasKey('simple', $data);
     $this->assertEquals('simple', $data['simple']);
 }
Пример #8
0
    /**
     * @expectedException LogicException
     */
    public function testAddFallbackCatalogueWithCircularReference()
    {
        $main = new MessageCatalogue('en_US');
        $fallback = new MessageCatalogue('fr_FR');

        $fallback->addFallbackCatalogue($main);
        $main->addFallbackCatalogue($fallback);
    }
Пример #9
0
 public function testAddFallbackCatalogue()
 {
     $r = $this->getMock('Symfony\\Component\\Config\\Resource\\ResourceInterface');
     $r->expects($this->any())->method('__toString')->will($this->returnValue('r'));
     $r1 = $this->getMock('Symfony\\Component\\Config\\Resource\\ResourceInterface');
     $r1->expects($this->any())->method('__toString')->will($this->returnValue('r1'));
     $catalogue = new MessageCatalogue('en_US', array('domain1' => array('foo' => 'foo'), 'domain2' => array('bar' => 'bar')));
     $catalogue->addResource($r);
     $catalogue1 = new MessageCatalogue('en', array('domain1' => array('foo' => 'bar', 'foo1' => 'foo1')));
     $catalogue1->addResource($r1);
     $catalogue->addFallbackCatalogue($catalogue1);
     $this->assertEquals('foo', $catalogue->get('foo', 'domain1'));
     $this->assertEquals('foo1', $catalogue->get('foo1', 'domain1'));
     $this->assertEquals(array($r, $r1), $catalogue->getResources());
 }