[FrameworkBundle] [Security] Remove trans from the security/core in 2.3 & dir loading

This commit is contained in:
maxime.steinhausser 2015-10-06 11:27:38 +02:00
parent ea10f2415e
commit 1ed07a09d8
3 changed files with 6 additions and 150 deletions

View File

@ -553,16 +553,14 @@ class FrameworkExtension extends Extension
if (class_exists('Symfony\Component\Security\Core\Exception\AuthenticationException')) {
$r = new \ReflectionClass('Symfony\Component\Security\Core\Exception\AuthenticationException');
// with Symfony 2.4, the Security component was split into several subpackages
// and the translations have been moved to the symfony/security-core package
$translationsDir = dirname($r->getFilename()).'/../Resources/translations';
if (!file_exists($translationsDir) && file_exists($dir = dirname($r->getFilename()).'/../../Resources/translations')) {
if (file_exists(dirname($r->getFilename()).'/../composer.json')) {
// with Symfony 2.4, the Security component was split into several subpackages
// and the translations have been moved to the symfony/security-core package
$dirs[] = dirname($r->getFilename()).'/../Resources/translations';
} else {
// in Symfony 2.3, translations are located in the symfony/security package
$translationsDir = $dir;
$dirs[] = dirname($r->getFilename()).'/../../Resources/translations';
}
$dirs[] = $translationsDir;
}
$overridePath = $container->getParameter('kernel.root_dir').'/Resources/%s/translations';
foreach ($container->getParameter('kernel.bundles') as $bundle => $class) {

View File

@ -1,71 +0,0 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>An authentication exception occurred.</source>
<target>Doğrulama istisnası baş verdi.</target>
</trans-unit>
<trans-unit id="2">
<source>Authentication credentials could not be found.</source>
<target>Doğrulama məlumatları tapılmadı.</target>
</trans-unit>
<trans-unit id="3">
<source>Authentication request could not be processed due to a system problem.</source>
<target>Sistem xətası səbəbilə doğrulama istəyi emal edilə bilmədi.</target>
</trans-unit>
<trans-unit id="4">
<source>Invalid credentials.</source>
<target>Yanlış məlumat.</target>
</trans-unit>
<trans-unit id="5">
<source>Cookie has already been used by someone else.</source>
<target>Kuki başqası tərəfindən istifadə edilib.</target>
</trans-unit>
<trans-unit id="6">
<source>Not privileged to request the resource.</source>
<target>Resurs istəyi üçün imtiyaz yoxdur.</target>
</trans-unit>
<trans-unit id="7">
<source>Invalid CSRF token.</source>
<target>Yanlış CSRF nişanı.</target>
</trans-unit>
<trans-unit id="8">
<source>Digest nonce has expired.</source>
<target>Dərləmə istifadə müddəti bitib.</target>
</trans-unit>
<trans-unit id="9">
<source>No authentication provider found to support the authentication token.</source>
<target>Doğrulama nişanını dəstəkləyəcək provayder tapılmadı.</target>
</trans-unit>
<trans-unit id="10">
<source>No session available, it either timed out or cookies are not enabled.</source>
<target>Uyğun seans yoxdur, vaxtı keçib və ya kuki aktiv deyil.</target>
</trans-unit>
<trans-unit id="11">
<source>No token could be found.</source>
<target>Nişan tapılmadı.</target>
</trans-unit>
<trans-unit id="12">
<source>Username could not be found.</source>
<target>İstifadəçi adı tapılmadı.</target>
</trans-unit>
<trans-unit id="13">
<source>Account has expired.</source>
<target>Hesabın istifadə müddəti bitib.</target>
</trans-unit>
<trans-unit id="14">
<source>Credentials have expired.</source>
<target>Məlumatların istifadə müddəti bitib.</target>
</trans-unit>
<trans-unit id="15">
<source>Account is disabled.</source>
<target>Hesab qeyri-aktiv edilib.</target>
</trans-unit>
<trans-unit id="16">
<source>Account is locked.</source>
<target>Hesab kilitlənib.</target>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -1,71 +0,0 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>An authentication exception occurred.</source>
<target>An authentication exception occurred.</target>
</trans-unit>
<trans-unit id="2">
<source>Authentication credentials could not be found.</source>
<target>Authentication credentials could not be found.</target>
</trans-unit>
<trans-unit id="3">
<source>Authentication request could not be processed due to a system problem.</source>
<target>Authentication request could not be processed due to a system problem.</target>
</trans-unit>
<trans-unit id="4">
<source>Invalid credentials.</source>
<target>Invalid credentials.</target>
</trans-unit>
<trans-unit id="5">
<source>Cookie has already been used by someone else.</source>
<target>Cookie has already been used by someone else.</target>
</trans-unit>
<trans-unit id="6">
<source>Not privileged to request the resource.</source>
<target>Not privileged to request the resource.</target>
</trans-unit>
<trans-unit id="7">
<source>Invalid CSRF token.</source>
<target>Invalid CSRF token.</target>
</trans-unit>
<trans-unit id="8">
<source>Digest nonce has expired.</source>
<target>Digest nonce has expired.</target>
</trans-unit>
<trans-unit id="9">
<source>No authentication provider found to support the authentication token.</source>
<target>No authentication provider found to support the authentication token.</target>
</trans-unit>
<trans-unit id="10">
<source>No session available, it either timed out or cookies are not enabled.</source>
<target>No session available, it either timed out or cookies are not enabled.</target>
</trans-unit>
<trans-unit id="11">
<source>No token could be found.</source>
<target>No token could be found.</target>
</trans-unit>
<trans-unit id="12">
<source>Username could not be found.</source>
<target>Username could not be found.</target>
</trans-unit>
<trans-unit id="13">
<source>Account has expired.</source>
<target>Account has expired.</target>
</trans-unit>
<trans-unit id="14">
<source>Credentials have expired.</source>
<target>Credentials have expired.</target>
</trans-unit>
<trans-unit id="15">
<source>Account is disabled.</source>
<target>Account is disabled.</target>
</trans-unit>
<trans-unit id="16">
<source>Account is locked.</source>
<target>Account is locked.</target>
</trans-unit>
</body>
</file>
</xliff>