Skip to content

Commit 8078b24

Browse files
committed
Merge branch 'main' of github.com:SymfonyCasts/reset-password-bundle into translate-exceptions
2 parents 519e97d + ba0942a commit 8078b24

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/Generator/ResetPasswordRandomGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function getRandomAlphaNumStr(): string
2828
$string = '';
2929

3030
while (($len = \strlen($string)) < 20) {
31+
/** @var int<1, max> $size */
3132
$size = 20 - $len;
3233

3334
$bytes = random_bytes($size);
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
3+
<file original="file.ext" source-language="en" datatype="plaintext">
4+
<body>
5+
<trans-unit id="1">
6+
<source>%count% year|%count% years</source>
7+
<target>%count% rok|%count% roky|%count% rokov</target>
8+
</trans-unit>
9+
<trans-unit id="2">
10+
<source>%count% month|%count% months</source>
11+
<target>%count% mesiac|%count% mesiace|%count% mesiacov</target>
12+
</trans-unit>
13+
<trans-unit id="3">
14+
<source>%count% day|%count% days</source>
15+
<target>%count% den|%count% dni|%count% dní</target>
16+
</trans-unit>
17+
<trans-unit id="4">
18+
<source>%count% hour|%count% hours</source>
19+
<target>%count% hodina|%count% hodiny|%count% hodín</target>
20+
</trans-unit>
21+
<trans-unit id="5">
22+
<source>%count% minute|%count% minutes</source>
23+
<target>%count% minúta|%count% minúty|%count% minút</target>
24+
</trans-unit>
25+
</body>
26+
</file>
27+
</xliff>

0 commit comments

Comments
 (0)