8000 Merge branch '4.4' into 5.4 · symfony/symfony@1efda37 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1efda37

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: skip a test if the mime type detection feature will not work minor #47751 Norgweiang translations (ibonkonesa) fix overflow issue in WebPprofiler Forms panel
2 parents 1d723cf + 4d70aa9 commit 1efda37

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
cursor: pointer;
9191
padding: 5px 7px 5px 22px;
9292
position: relative;
93-
93+
overflow: hidden;
94+
text-overflow: ellipsis;
9495
}
9596
.tree .toggle-button {
9697
/* provide a bigger clickable area than just 10x10px */
@@ -449,7 +450,7 @@
449450
{% import _self as tree %}
450451
{% set has_error = data.errors is defined and data.errors|length > 0 %}
451452
<li>
452-
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details">
453+
<div class="tree-inner" data-tab-target-id="{{ data.id }}-details" title="{{ name|default('(no name)') }}">
453454
{% if has_error %}
454455
<div class="badge-error">{{ data.errors|length }}</div>
455456
{% endif %}

src/Symfony/Component/HttpFoundation/Tests/BinaryFileResponseTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1515
use Symfony\Component\HttpFoundation\BinaryFileResponse;
16+
use Symfony\Component\HttpFoundation\File\File;
1617
use Symfony\Component\HttpFoundation\File\Stream;
1718
use Symfony\Component\HttpFoundation\Request;
1819
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
@@ -413,7 +414,15 @@ public function testPrepareNotAddingContentTypeHeaderIfNoContentResponse()
413414

414415
public function testContentTypeIsCorrectlyDetected()
415416
{
416-
$response = new BinaryFileResponse(__DIR__.'/File/Fixtures/test.gif');
417+
$file = new File(__DIR__.'/File/Fixtures/test.gif');
418+
419+
try {
420+
$file->getMimeType();
421+
} catch (\LogicException $e) {
422+
$this->markTestSkipped('Guessing the mime type is not possible');
423+
}
424+
425+
$response = new BinaryFileResponse($file);
417426

418427
$request = Request::create('/');
419428
$response->prepare($request);

src/Symfony/Component/Security/Core/Resources/translations/security.nn.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>Innloggingslenka er ugyldig eller utgjengen.</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>For mange mislykkede påloggingsforsøk, prøv igjen om %minutes% minutt.</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>For mange mislykkede påloggingsforsøk, prøv igjen om %minutes% minutter.</target>
80+
</trans-unit>
7381
</body>
7482
</file>
7583
</xliff>

src/Symfony/Component/Validator/Resources/translations/validators.nn.xlf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,22 @@
386386
<source>This value is not a valid International Securities Identification Number (ISIN).</source>
387387
<target>Verdien er ikkje eit gyldig International Securities Identification Number (ISIN).</target>
388388
</trans-unit>
389+
<trans-unit id="100">
390+
<source>This value should be a valid expression.</source>
391+
<target>Denne verdien skal være et gyldig uttrykk.</target>
392+
</trans-unit>
393+
<trans-unit id="101">
394+
<source>This value is not a valid CSS color.</source>
395+
<target>Denne verdien er ikke en gyldig CSS-farge.</target>
396+
</trans-unit>
397+
<trans-unit id="102">
398+
<source>This value is not a valid CIDR notation.</source>
399+
<target>Denne verdien er ikke en gyldig CIDR-notasjon.</target>
400+
</trans-unit>
401+
<trans-unit id="103">
402+
<source>The value of the netmask should be between {{ min }} and {{ max }}.</source>
403+
<target>Verdien av nettmasken skal være mellom {{ min }} og {{ max }}.</target>
404+
</trans-unit>
389405
</body>
390406
</file>
391407
</xliff>

0 commit comments

Comments
 (0)
0