Files
doc-fr/reference/intl/locale/get-script.xml
George Peter Banyard 624d3a299c Apply 6fcf444471febbbc7ad0a52f16303f6957362447
Generate ext/intl methodsynopses based on stubs (Locale)

Weirdly part of it was propagated in the revcheck script with the incorrect hash as to recent
2021-09-06 02:23:47 +01:00

118 lines
3.0 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6fcf444471febbbc7ad0a52f16303f6957362447 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="locale.getscript" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Locale::getScript</refname>
<refname>locale_get_script</refname>
<refpurpose>Retourne un code pour le script de la locale</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
&style.oop;
</para>
<methodsynopsis role="oop">
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>null</type></type><methodname>Locale::getScript</methodname>
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
</methodsynopsis>
<para>
&style.procedural;
</para>
<methodsynopsis role="procedural">
<type class="union"><type>string</type><type>null</type></type><methodname>locale_get_script</methodname>
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
</methodsynopsis>
<para>
Retourne un code pour le script de la locale
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>locale</parameter></term>
<listitem>
<para>
La locale dont il faut extraire le code du script.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Le code de script pour la locale ou &null; si absent.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Exemple avec <function>locale_get_script</function>, procédural</title>
<programlisting role="php">
<![CDATA[
<?php
echo locale_get_script('sr-Cyrl');
?>
]]>
</programlisting>
</example>
<example>
<title>Exemple avec <function>locale_get_script</function>, POO</title>
<programlisting role="php">
<![CDATA[
<?php
echo Locale::getScript('sr-Cyrl');
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
Cyrl
]]>
</screen>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>locale_get_primary_language</function></member>
<member><function>locale_get_region</function></member>
<member><function>locale_get_all_variants</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->