Skip to content

Commit

Permalink
fix wording grammar folder control structures and context (#2035)
Browse files Browse the repository at this point in the history
* fix wording grammar folder control structures and context

* Update language/context/zip.xml

Co-authored-by: Pierre Ambroise <74421318+Fan2Shrek@users.noreply.github.com>

---------

Co-authored-by: Pierre Ambroise <74421318+Fan2Shrek@users.noreply.github.com>
  • Loading branch information
PhilDaiguille and Fan2Shrek authored Feb 6, 2025
1 parent 2c2dcd1 commit 8a30b32
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions language/context/ssl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</term>
<listitem>
<para>
Si définit à &true;, un option de contexte <literal>peer_certificate</literal>
Si définit à &true;, une option de contexte <literal>peer_certificate</literal>
sera créée, contenant le certificat de l'émetteur.
</para>
</listitem>
Expand Down Expand Up @@ -340,4 +340,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

5 changes: 2 additions & 3 deletions language/context/zip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ annotations="verify_info:false" role="stream_context_option">
<term><parameter>password</parameter></term>
<listitem>
<para>
Utilisé pour spécifier un mot de passe à utiliser pour les archives chiffrés.
Utilisé pour spécifier un mot de passe à utiliser pour les archives chiffrées.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -66,7 +66,7 @@ annotations="verify_info:false" role="stream_context_option">
<programlisting role="php">
<![CDATA[
<?php
// Lire l'archive chiffré
// Lire l'archive chiffrée
$opts = array(
'zip' => array(
'password' => 'secret',
Expand Down Expand Up @@ -107,4 +107,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

2 changes: 1 addition & 1 deletion language/control-structures/break.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<literal>break</literal> accepte un argument numérique optionnel
qui vous indiquera combien de structures emboîtées doivent être
interrompues. La valeur par défaut est <literal>1</literal>, seulement la
structure emboitée immédiate est interrompue.
structure emboitée immédiate est interrompue.
</simpara>
<para>
<informalexample>
Expand Down
2 changes: 1 addition & 1 deletion language/control-structures/for.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ endfor;
</para>
<simpara>
Beaucoup de personnes ont l'habitude d'itérer grâce à des tableaux, comme dans
l'exemple ci dessous.
l'exemple ci-dessous.
</simpara>
<para>
<informalexample>
Expand Down
2 changes: 1 addition & 1 deletion language/control-structures/return.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<para>
À partir de PHP 7.1.0, les déclarations de retour sans argument dans la
fonction déclenche une <constant>E_COMPILE_ERROR</constant>, sauf si le
fonction déclenchent une <constant>E_COMPILE_ERROR</constant>, sauf si le
type de retour est <type>void</type>, auquel cas les déclarations retour
avec un argument déclenche cette erreur.
</para>
Expand Down
6 changes: 3 additions & 3 deletions language/control-structures/switch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ switch ($i) {
<simpara>
Dans cet exemple, si <varname>$i</varname> est égal à 0, PHP va
exécuter quand même toutes les instructions qui
suivent! Si <varname>$i</varname> est égal à 1, PHP exécutera
suivent ! Si <varname>$i</varname> est égal à 1, PHP exécutera
les deux dernières instructions. Et seulement si <varname>$i</varname> est
égal à 2, vous obtiendrez le résultat
escompté, c'est-à-dire, l'affichage de
Expand Down Expand Up @@ -213,7 +213,7 @@ switch ($target) {
break;
}
// Prints "B"
// Affiche "B"
?>
]]>
</programlisting>
Expand Down Expand Up @@ -244,7 +244,7 @@ switch (true) {
break;
}
// Prints "B"
// Affiche "B"
?>
]]>
</programlisting>
Expand Down

1 comment on commit 8a30b32

@devnexen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit for @Fan2Shrek concerning the commit message when you squash several commits, try to manually correct the message before validating. Cheers !

Please sign in to comment.