Skip to content

Commit 7b2583e

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Fix parameter order [DependencyInjection] Fix circular in DI with lazy + byContruct loop adjust Client::getProfile() typehint adjust KernelBrowser::getProfile() typehint fix: resolving pt translation issues Update VERSION for 3.4.47 Update CONTRIBUTORS for 3.4.47 Update CHANGELOG for 3.4.47 Add Romanian missing translations [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader fix lexing strings containing escaped quotation characters prevent duplicated error message for file upload limits ignore the pattern attribute for textareas fix: solving pt-br translation issues
2 parents 9919be5 + acf8493 commit 7b2583e

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

Resources/translations/validators.pt.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
</trans-unit>
129129
<trans-unit id="35">
130130
<source>This value should be a valid number.</source>
131-
<target>Este valor deveria de ser um número válido.</target>
131+
<target>Este valor deveria ser um número válido.</target>
132132
</trans-unit>
133133
<trans-unit id="36">
134134
<source>This file is not a valid image.</source>
@@ -176,27 +176,27 @@
176176
</trans-unit>
177177
<trans-unit id="47">
178178
<source>This value should be the user's current password.</source>
179-
<target>Este valor deveria de ser a password atual do utilizador.</target>
179+
<target>Este valor deveria ser a senha atual do usuário.</target>
180180
</trans-unit>
181181
<trans-unit id="48">
182182
<source>This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.</source>
183-
<target>Este valor tem de ter exatamente {{ limit }} carateres.</target>
183+
<target>Este valor deve possuir exatamente {{ limit }} caracteres.</target>
184184
</trans-unit>
185185
<trans-unit id="49">
186186
<source>The file was only partially uploaded.</source>
187-
<target>Só foi enviado parte do ficheiro.</target>
187+
<target>Só foi enviada uma parte do arquivo.</target>
188188
</trans-unit>
189189
<trans-unit id="50">
190190
<source>No file was uploaded.</source>
191-
<target>Nenhum ficheiro foi enviado.</target>
191+
<target>Nenhum arquivo foi enviado.</target>
192192
</trans-unit>
193193
<trans-unit id="51">
194194
<source>No temporary folder was configured in php.ini.</source>
195-
<target>Não existe nenhum directório temporária configurado no ficheiro php.ini.</target>
195+
<target>Não existe uma pasta temporária configurada no arquivo php.ini.</target>
196196
</trans-unit>
197197
<trans-unit id="52">
198198
<source>Cannot write temporary file to disk.</source>
199-
<target>Não foi possível escrever ficheiros temporários no disco.</target>
199+
<target>Não foi possível escrever os arquivos temporários no disco.</target>
200200
</trans-unit>
201201
<trans-unit id="53">
202202
<source>A PHP extension caused the upload to fail.</source>
@@ -292,15 +292,15 @@
292292
</trans-unit>
293293
<trans-unit id="76">
294294
<source>The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.</source>
295-
<target>A imagem está orientada à paisagem ({{ width }}x{{ height }}px). Imagens orientadas à paisagem não são permitidas.</target>
295+
<target>A imagem está em orientação de paisagem ({{ width }}x{{ height }}px). Imagens orientadas em paisagem não são permitidas.</target>
296296
</trans-unit>
297297
<trans-unit id="77">
298298
<source>The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.</source>
299-
<target>A imagem está orientada ao retrato ({{ width }}x{{ height }}px). Imagens orientadas ao retrato não são permitidas.</target>
299+
<target>A imagem está em orientação de retrato ({{ width }}x{{ height }}px). Imagens orientadas em retrato não são permitidas.</target>
300300
</trans-unit>
301301
<trans-unit id="78">
302302
<source>An empty file is not allowed.</source>
303-
<target>Ficheiro vazio não é permitido.</target>
303+
<target>Um arquivo vazio não é permitido.</target>
304304
</trans-unit>
305305
<trans-unit id="79">
306306
<source>The host could not be resolved.</source>

Tests/Resources/TranslationFilesTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ public function testTranslationFileIsValid($filePath)
2929
$this->assertCount(0, $errors, sprintf('"%s" is invalid:%s', $filePath, \PHP_EOL.implode(\PHP_EOL, array_column($errors, 'message'))));
3030
}
3131

32+
/**
33+
* @dataProvider provideTranslationFiles
34+
*/
35+
public function testTranslationFileIsValidWithoutEntityLoader($filePath)
36+
{
37+
$document = new \DOMDocument();
38+
$document->loadXML(file_get_contents($filePath));
39+
libxml_disable_entity_loader(true);
40+
41+
$errors = XliffUtils::validateSchema($document);
42+
43+
$this->assertCount(0, $errors, sprintf('"%s" is invalid:%s', $filePath, \PHP_EOL.implode(\PHP_EOL, array_column($errors, 'message'))));
44+
}
45+
3246
public function provideTranslationFiles()
3347
{
3448
return array_map(

0 commit comments

Comments
 (0)