8000 Missing ru translations by antonch1989 · Pull Request #30206 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Missing ru translations #30206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
03abfc0
add missing null return type
xabbuh Feb 8, 2019
15db914
[Security] fix switch user without having current token
alamirault Feb 8, 2019
fc09c28
[Form][MappingRule] Remove unnecessary cast
fancyweb Feb 9, 2019
0daeba8
add back test after fixing it
xabbuh Jan 25, 2019
ace651e
minor #30064 [Form][MappingRule] Remove unnecessary cast (fancyweb)
xabbuh Feb 11, 2019
bb4b53b
Update composer.json
plandolt Feb 11, 2019
3469837
[Validator] Added a missing translation
javiereguiluz Feb 11, 2019
2d12aa0
minor #30119 [Form] add missing null return type (xabbuh)
xabbuh Feb 11, 2019
d0ae383
add xabbuh as code owner of the Form component
xabbuh Feb 11, 2019
e3ceb1f
minor #30142 add xabbuh as code owner of the Form component (xabbuh)
fabpot Feb 12, 2019
1077df6
Fix KernelTestCase compatibility for PhpUnit 8 (bis)
nicolas-grekas Feb 9, 2019
6d881f7
bug #30124 Fix KernelTestCase compatibility for PhpUnit 8 (bis) (nico…
fabpot Feb 12, 2019
82ba2d6 8000
minor #30144 [Validator] Added a missing translation (javiereguiluz)
fabpot Feb 12, 2019
637b10c
minor #30143 [PhpunitBridge] dropping ext-zip suggestion as its no lo…
fabpot Feb 12, 2019
3e3ca9d
use PropertyAccessorInterface instead of PropertyAccessor
nick-zh Feb 11, 2019
d4ed49b
bug #30136 use PropertyAccessorInterface instead of PropertyAccessor …
fabpot Feb 12, 2019
a205211
minor #30132 [Form] add back test after fixing it (xabbuh)
fabpot Feb 12, 2019
d3d880a
bug #30122 [Security] fix switch user without having current token (A…
fabpot Feb 12, 2019
9a86504
[Validator] Add the missing translations for the French (fr) locale
Feb 12, 2019
95795dc
add_missing_translations_for_portuguese : [Validator] Add the missing…
pedroresende Feb 12, 2019
650f712
minor #30199 [Validator] Add the missing translations for the French …
fabpot Feb 12, 2019
f2370eb
minor #30201 [Validator] Add the missing translations for the Portugu…
fabpot Feb 12, 2019
8d84cf9
minor #30184 [Validator] Add the missing translations for the Russian…
Feb 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
/src/Symfony/Component/Console/Logger/ConsoleLogger.php @dunglas
# DependencyInjection
/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php @dunglas
# Form
/src/Symfony/Bridge/Twig/Extension/FormExtension.php @xabbuh
/src/Symfony/Bridge/Twig/Form/* @xabbuh
/src/Symfony/Bridge/Twig/Node/FormThemeNode.php @xabbuh
/src/Symfony/Bridge/Twig/Node/RenderBlockNode.php @xabbuh
/src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php @xabbuh
/src/Symfony/Bridge/Twig/Tests/Extension/FormExtension* @xabbuh
/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php @xabbuh
/src/Symfony/Bridge/Twig/Tests/TokenParser/FormThemeTokenParserTest.php @xabbuh
/src/Symfony/Bridge/Twig/TokenParser/FormThemeTokenParser.php @xabbuh
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/FormPass.php @xabbuh
/src/Symfony/Bundle/FrameworkBundle/Resources/views/* @xabbuh
/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php @xabbuh
/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/FormPassTest.php @xabbuh
/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperTableLayoutTest.php @xabbuh
/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/FormHelperDivLayoutTest.php @xabbuh
/src/Symfony/Component/Form/* @xabbuh
# HttpKernel
/src/Symfony/Component/HttpKernel/Log/Logger.php @dunglas
# LDAP
Expand Down
3 changes: 1 addition & 2 deletions src/Symfony/Bridge/PhpUnit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"php": ">=5.3.3"
},
"suggest": {
"symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader",
"ext-zip": "Zip support is required when using bin/simple-phpunit"
"symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader"
},
"conflict": {
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Bundle\FrameworkBundle\Test;

use PHPUnit\Framework\TestCase;

// Auto-adapt to PHPUnit 8 that added a `void` return-type to the tearDown method

if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
eval('
/**
* @internal
*/
trait KernelShutdownOnTearDownTrait
{
protected function tearDown(): void
{
static::ensureKernelShutdown();
}
}
');
} else {
/**
* @internal
*/
trait KernelShutdownOnTearDownTrait
{
/**
* @return void
*/
protected function tearDown()
{
static::ensureKernelShutdown();
}
}
}
6 changes: 3 additions & 3 deletions src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
abstract class KernelTestCase extends TestCase
{
use KernelShutdownOnTearDownTrait;

protected static $class;

/**
Expand Down Expand Up @@ -208,9 +210,7 @@ protected static function createKernel(array $options = [])
}

/**
* @after
*
* Shuts the kernel down if it was used in the test.
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
*/
protected static function ensureKernelShutdown()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getOrigin()
*/
public function match($propertyPath)
{
if ($propertyPath === (string) $this->propertyPath) {
if ($propertyPath === $this->propertyPath) {
return $this->getTarget();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Form/FormTypeGuesserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function guessType($class, $property);
* @param string $class The fully qualified class name
* @param string $property The name of the property to guess for
*
* @return Guess\ValueGuess A guess for the field's required setting
* @return Guess\ValueGuess|null A guess for the field's required setting
*/
public function guessRequired($class, $property);

Expand Down
20 changes: 20 additions & 0 deletions src/Symfony/Component/Form/Tests/AbstractRequestHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,26 @@ public function testSubmitMultipleFiles($method)
$this->assertSame($file, $form->getData());
}

/**
* @dataProvider methodExceptGetProvider
*/
public function testSubmitFileWithNamelessForm($method)
{
$form = $this->createForm('', $method, true);
$fileForm = $this->createBuilder('document', false, ['allow_file_upload' => true])->getForm();
$form->add($fileForm);
$file = $this->getUploadedFile();
$this->setRequestData($method, [
'document' => null,
], [
'document' => $file,
]);
$this->requestHandler->handleRequest($form, $this->request);

$this->assertTrue($form->isSubmitted());
$this->assertSame($file, $fileForm->getData());
}

/**
* @dataProvider getPostMaxSizeFixtures
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public function handle(GetResponseEvent $event)
return;
}

if (null === $this->tokenStorage->getToken()) {
throw new AuthenticationCredentialsNotFoundException('Could not find original Token object.');
}

if (self::EXIT_VALUE === $username) {
$this->tokenStorage->setToken($this->attemptExitUser($request));
} else {
Expand Down Expand Up @@ -164,7 +168,7 @@ private function attemptSwitchUser(Request $request, $username)
*/
private function attemptExitUser(Request $request)
{
if (null === ($currentToken = $this->tokenStorage->getToken()) || false === $original = $this->getOriginalToken($currentToken)) {
if (false === $original = $this->getOriginalToken($this->tokenStorage->getToken())) {
throw new AuthenticationCredentialsNotFoundException('Could not find original Token object.');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,17 @@ public function testSwitchUserWithReplacedToken()
$this->assertSame($replacedToken, $this->tokenStorage->getToken());
}

/**
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException
*/
public function testSwitchtUserThrowsAuthenticationExceptionIfNoCurrentToken()
{
$this->tokenStorage->setToken(null);
$this->request->query->set('_switch_user', 'username');
$listener = new SwitchUserListener($this->tokenStorage, $this->userProvider, $this->userChecker, 'provider123', $this->accessDecisionManager);
$listener->handle($this->event);
}

public function testSwitchUserStateless()
{
$token = new UsernamePasswordToken('username', '', 'key', ['ROLE_FOO']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyAccessor;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
Expand All @@ -29,7 +29,7 @@ abstract class AbstractComparisonValidator extends ConstraintValidator
{
private $propertyAccessor;

public function __construct(PropertyAccessor $propertyAccessor = null)
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
{
$this->propertyAccessor = $propertyAccessor;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@
<source>This is not a valid UUID.</source>
<target>Este valor no es un UUID válido.</target>
</trans-unit>
<trans-unit id="84">
<source>This value should be a multiple of {{ compared_value }}.</source>
<target>Este valor debería ser múltiplo de {{ compared_value }}.</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,14 @@
<source>This is not a valid UUID.</source>
<target>Ceci n'est pas un UUID valide.</target>
</trans-unit>
<trans-unit id="84">
<source>This value should be a multiple of {{ compared_value }}.</source>
<target>Cette valeur doit être un multiple de {{ compared_value }}.</target>
</trans-unit>
<trans-unit id="85">
<source>This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.</source>
<target>Ce code d'identification d'entreprise (BIC) n'est pas associé à l'IBAN {{ iban }}.</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,34 @@
<source>An empty file is not allowed.</source>
<target>Ficheiro vazio não é permitido.</target>
</trans-unit>
<trans-unit id="79">
<source>The host could not be resolved.</source>
<target>O host não pode ser resolvido.</target>
</trans-unit>
<trans-unit id="80">
<source>This value does not match the expected {{ charset }} charset.</source>
<target>O valor não corresponde ao conjunto de caracteres {{ charset }} esperado.</target>
</trans-unit>
<trans-unit id="81">
<source>This is not a valid Business Identifier Code (BIC).</source>
<target>O Código de Identificação de Empresa (BIC) não é válido.</target>
</trans-unit>
<trans-unit id="82">
<source>Error</source>
<target>Erro</target>
</trans-unit>
<trans-unit id="83">
<source>This is not a valid UUID.</source>
<target>Este valor não é um UUID válido.</target>
</trans-unit>
<trans-unit id="84">
<source>This value should be a multiple of {{ compared_value }}.</source>
<target>Este valor deve ser um múltiplo de {{ compared_value }}.</target>
</trans-unit>
<trans-unit id="85">
<source>This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.</source>
<target>O Código de Identificação de Empresa (BIC) não está associado ao IBAN {{ iban }}.</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,26 @@
<source>This value does not match the expected {{ charset }} charset.</source>
<target>Значение не совпадает с ожидаемой {{ charset }} кодировкой.</target>
</trans-unit>
<trans-unit id="81">
<source>This is not a valid Business Identifier Code (BIC).</source>
<target>Значение не соответствует формату BIC.</target>
</trans-unit>
<trans-unit id="82">
<source>Error</source>
<target>Ошибка</target>
</trans-unit>
<trans-unit id="83">
<source>This is not a valid UUID.</source>
<target>Значение не соответствует формату UUID.</target>
</trans-unit>
<trans-unit id="84">
<source>This value should be a multiple of {{ compared_value }}.</source>
<target>Значение должно быть кратно {{ compared_value }}.</target>
</trans-unit>
<trans-unit id="85">
<source>This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.</source>
<target>Данный BIC не связан с IBAN {{ iban }}.</target>
</trans-unit>
</body>
</file>
</xliff>
0