Skip to content

Commit

Permalink
Intl section sync (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Jan 22, 2024
1 parent 4265b3f commit 74db1fe
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 35 deletions.
32 changes: 15 additions & 17 deletions reference/intl/dateformatter/get-error-code.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 1976eae0d815797af97a1e16c5cd90ffc2868395 Maintainer: yannick Status: ready -->
<!-- EN-Revision: a4e79bc8e416903081feb590ce009132726a5712 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="intldateformatter.geterrorcode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -24,7 +24,7 @@
<methodparam><type>IntlDateFormatter</type><parameter>formatter</parameter></methodparam>
</methodsynopsis>
<para>
Lit le code d'erreur de la dernière opération.
Renvoie le code d'erreur de la dernière opération de formatage.
</para>
</refsect1>

Expand Down Expand Up @@ -67,13 +67,12 @@ $fmt = datefmt_create(
IntlDateFormatter::GREGORIAN
);
$str = datefmt_format($fmt);
if (!$str) {
printf(
"Erreur : %s (%d)\n",
datefmt_get_error_message($fmt),
datefmt_get_error_code($fmt)
);
}
printf(
"Erreur : %s (%d)\n",
datefmt_get_error_message($fmt),
datefmt_get_error_code($fmt)
);
?>
]]>
</programlisting>
Expand All @@ -90,14 +89,13 @@ $fmt = new IntlDateFormatter(
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN
);
$str = $fmt->format();
if (!$str) {
printf(
"Erreur : %s (%d)\n",
$fmt->getErrorMessage(),
$fmt->getErrorCode()
);
}
$str = $fmt->format(0);
printf(
"Erreur : %s (%d)\n",
$fmt->getErrorMessage(),
$fmt->getErrorCode()
);
?>
]]>
</programlisting>
Expand Down
33 changes: 16 additions & 17 deletions reference/intl/dateformatter/get-error-message.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 1976eae0d815797af97a1e16c5cd90ffc2868395 Maintainer: yannick Status: ready -->
<!-- EN-Revision: a4e79bc8e416903081feb590ce009132726a5712 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<!-- CREDITS: DAnnebicque -->
<refentry xml:id="intldateformatter.geterrormessage" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -45,7 +45,6 @@
</para>
</refsect1>


<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Expand All @@ -59,6 +58,7 @@
<title>Exemple avec <function>datefmt_get_error_message</function></title>
<programlisting role="php">
<![CDATA[
<?php
$fmt = datefmt_create(
'en_US',
Expand All @@ -68,13 +68,12 @@ $fmt = datefmt_create(
IntlDateFormatter::GREGORIAN
);
$str = datefmt_format($fmt);
if (!$str) {
printf(
"Erreur : %s (%d)\n",
datefmt_get_error_message($fmt),
datefmt_get_error_code($fmt)
);
}
printf(
"Erreur : %s (%d)\n",
datefmt_get_error_message($fmt),
datefmt_get_error_code($fmt)
);
?>
]]>
</programlisting>
Expand All @@ -83,6 +82,7 @@ if (!$str) {
<title>Exemple orienté objet</title>
<programlisting role="php">
<![CDATA[
<?php
$fmt = new IntlDateFormatter(
'en_US',
Expand All @@ -91,14 +91,13 @@ $fmt = new IntlDateFormatter(
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN
);
$str = $fmt->format();
if(!$str) {
printf(
"Erreur : %s (%d)\n",
$fmt->getErrorMessage(),
$fmt->getErrorCode()
);
}
$str = $fmt->format(0);
printf(
"Erreur : %s (%d)\n",
$fmt->getErrorMessage(),
$fmt->getErrorCode()
);
?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/intl/grapheme/grapheme-stristr.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 2245ff665ae4b3037728ee52c247b409ad75de35 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 86178eaa506fd18817583c3d1d347366c1305d3f Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<!-- CREDITS: DAnnebicque -->

Expand Down

0 comments on commit 74db1fe

Please sign in to comment.