diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf
index fbf9b260b0..68c44213d1 100644
--- a/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf
+++ b/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf
@@ -8,7 +8,7 @@
- Yetkilendirme girdileri bulunamadı.
+ Kimlik bilgileri bulunamadı.
@@ -16,7 +16,7 @@
- Geçersiz girdiler.
+ Geçersiz kimlik bilgileri.
@@ -32,7 +32,7 @@
- Derleme zaman aşımı gerçekleşti.
+ Derleme zaman aşımına uğradı.
@@ -44,7 +44,7 @@
- Bilet bulunamadı.
+ Fiş bulunamadı.
@@ -56,11 +56,11 @@
- Girdiler zaman aşımına uğradı.
+ Kimlik bilgileri zaman aşımına uğradı.
- Hesap devre dışı bırakılmış.
+ Hesap engellenmiş.
diff --git a/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php b/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php
new file mode 100644
index 0000000000..4b72d41d5a
--- /dev/null
+++ b/src/Symfony/Component/Security/Tests/TranslationSyncStatusTest.php
@@ -0,0 +1,63 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Security\Tests;
+
+use Symfony\Component\Finder\Finder;
+
+class TranslationSyncStatusTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @dataProvider getTranslationDirectoriesData
+ */
+ public function testTranslationFileIsNotMissingInCore($dir1, $dir2)
+ {
+ $finder = new Finder();
+ $files = $finder->in($dir1)->files();
+
+ foreach ($files as $file) {
+ $this->assertFileExists($dir2.'/'.$file->getFilename(), 'Missing file '.$file->getFilename().' in directory '.$dir2);
+ }
+ }
+
+ public function getTranslationDirectoriesData()
+ {
+ $legacyTranslationsDir = $this->getLegacyTranslationsDirectory();
+ $coreTranslationsDir = $this->getCoreTranslationsDirectory();
+
+ return array(
+ 'file-not-missing-in-core' => array($legacyTranslationsDir, $coreTranslationsDir),
+ 'file-not-added-in-core' => array($coreTranslationsDir, $legacyTranslationsDir),
+ );
+ }
+
+ public function testFileContentsAreEqual()
+ {
+ $finder = new Finder();
+ $files = $finder->in($this->getLegacyTranslationsDirectory())->files();
+
+ foreach ($files as $file) {
+ $coreFile = $this->getCoreTranslationsDirectory().'/'.$file->getFilename();
+
+ $this->assertFileEquals($file->getRealPath(), $coreFile, $file.' and '.$coreFile.' have equal content.');
+ }
+ }
+
+ private function getLegacyTranslationsDirectory()
+ {
+ return __DIR__.'/../Resources/translations';
+ }
+
+ private function getCoreTranslationsDirectory()
+ {
+ return __DIR__.'/../Core/Resources/translations';
+ }
+}
diff --git a/src/Symfony/Component/Security/composer.json b/src/Symfony/Component/Security/composer.json
index 1f0584467e..826dcebb37 100644
--- a/src/Symfony/Component/Security/composer.json
+++ b/src/Symfony/Component/Security/composer.json
@@ -28,6 +28,7 @@
"symfony/security-http": "self.version"
},
"require-dev": {
+ "symfony/finder": "~2.3",
"symfony/phpunit-bridge": "~2.7",
"symfony/intl": "~2.3",
"symfony/routing": "~2.2",
diff --git a/src/Symfony/Component/Security/phpunit.xml.dist b/src/Symfony/Component/Security/phpunit.xml.dist
index 7747b371c1..3e7ec38526 100644
--- a/src/Symfony/Component/Security/phpunit.xml.dist
+++ b/src/Symfony/Component/Security/phpunit.xml.dist
@@ -12,6 +12,7 @@
+ ./Tests/
./Acl/Tests/
./Core/Tests/
./Http/Tests/
@@ -23,6 +24,7 @@
./
./vendor
+ ./Tests
./Acl/Tests
./Core/Tests
./Http/Tests