Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e22f08

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [Security] Add missing German translations [ErrorHandler] Skip "same vendor" `@method` deprecations for `Symfony\*` classes unless symfony/symfony is being tested [Security] Add missing Dutch translations
2 parents 7317443 + 88dcf52 commit 6e22f08

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\ErrorHandler;
1313

14+
use Composer\InstalledVersions;
1415
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
1516
use Doctrine\Persistence\Proxy;
1617
use Mockery\MockInterface;
@@ -491,6 +492,14 @@ public function checkAnnotations(\ReflectionClass $refl, string $class): array
491492
self::$method[$class] = self::$method[$use];
492493
}
493494
} elseif (!$refl->isInterface()) {
495+
if (!strncmp($vendor, str_replace('_', '\\', $use), $vendorLen)
496+
&& 0 === strpos($className, 'Symfony\\')
497+
&& (!class_exists(InstalledVersions::class)
498+
|| 'symfony/symfony' !== InstalledVersions::getRootPackage()['name'])
499+
) {
500+
// skip "same vendor" @method deprecations for Symfony\* classes unless symfony/symfony is being tested
501+
continue;
502+
}
494503
$hasCall = $refl->hasMethod('__call');
495504
$hasStaticCall = $refl->hasMethod('__callStatic');
496505
foreach (self::$method[$use] as $method) {

src/Symfony/Component/Security/Core/Resources/translations/security.de.xlf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@
7070
<source>Invalid or expired login link.</source>
7171
<target>Ungültiger oder abgelaufener Anmelde-Link.</target>
7272
</trans-unit>
73+
<trans-unit id="19">
74+
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
75+
<target>Zu viele fehlgeschlagene Anmeldeversuche, bitte versuchen Sie es in einer Minute noch einmal.</target>
76+
</trans-unit>
77+
<trans-unit id="20">
78+
<source>Too many failed login attempts, please try again in %minutes% minutes.</source>
79+
<target>Zu viele fehlgeschlagene Anmeldeversuche, bitte versuchen Sie es in %minutes% Minuten noch einmal.</target>
80+
</trans-unit>
7381
</body>
7482
</file>
7583
</xliff>

src/Symfony/Component/Security/Core/Resources/translations/security.nl.xlf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@
7070
<source>Invalid or expired login link.</source>
7171
<target>Ongeldige of verlopen inloglink.</target>
7272
</trans-unit>
73+
<trans-unit id="19">
74+
<source>Too many failed login attempts, please try again in %minutes% minute.</source>
75+
<target>Te veel onjuiste inlogpogingen, probeer het opnieuw over %minutes% minuut.</target>
76+
</trans-unit>
77+
<trans-unit id="20">
78+
<source>Too many failed login attempts, please try again in %minutes% minutes.</source>
79+
<target>Te veel onjuiste inlogpogingen, probeer het opnieuw over %minutes% minuten.</target>
80+
</trans-unit>
7381
</body>
7482
</file>
7583
</xliff>

0 commit comments

Comments
 (0)