Skip to content

Commit f6ba1c0

Browse files
authored
random update forgotten translations (#2236)
1 parent 057af03 commit f6ba1c0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

reference/random/examples.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@
1010
<?php
1111
$r = new \Random\Randomizer();
1212
13-
// Generating a random domain name
13+
// Génération d’un nom de domaine aléatoire
1414
printf(
1515
"%s.example.com\n",
1616
$r->getBytesFromString('abcdefghijklmnopqrstuvwxyz0123456789', 16)
1717
);
1818
19-
// Shuffle array:
19+
// Mélanger un tableau :
2020
$fruits = [ 'red' => '🍎', 'green' => '🥝', 'yellow' => '🍌', 'pink' => '🍑', 'purple' => '🍇' ];
21-
echo "Salad: ", implode(', ', $r->shuffleArray($fruits)), "\n";
21+
echo "Salade : ", implode(', ', $r->shuffleArray($fruits)), "\n";
2222
23-
// Shuffeling array keys
23+
// Mélange des clés du tableau
2424
$fruits = [ 'red' => '🍎', 'green' => '🥝', 'yellow' => '🍌', 'pink' => '🍑', 'purple' => '🍇' ];
2525
2626
$keys = $r->pickArrayKeys($fruits, 2);
27-
// Look up the values for the picked keys.
27+
// Récupérer les valeurs correspondant aux clés sélectionnées.
2828
$selection = array_map(
2929
static fn ($key) => $fruits[$key],
3030
$keys
3131
);
3232
33-
echo "Values: ", implode(', ', $selection), "\n";
33+
echo "Valeurs : ", implode(', ', $selection), "\n";
3434
?>
3535
]]>
3636
</programlisting>
3737
&example.outputs.similar;
3838
<screen>
3939
<![CDATA[
4040
j87fzv1p0daiwmlo.example.com
41-
Salad: 🥝, 🍇, 🍎, 🍌, 🍑
42-
Values: 🍌, 🍑
41+
Salade: 🥝, 🍇, 🍎, 🍌, 🍑
42+
Valeurs: 🍌, 🍑
4343
]]>
4444
</screen>
4545
</example>

0 commit comments

Comments
 (0)