|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/share/gnome/help/gnome-doc-xslt/C/ |
Upload File : |
<section id="section-gettext">
<title>Gettext</title>
<variablelist>
<title>Parameters</title>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="param_l10n.locale">
<parameter>l10n.locale</parameter>
</link>
</term>
<listitem>
<para>
The top-level locale of the document
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="param_l10n.language">
<parameter>l10n.language</parameter>
</link>
</term>
<listitem>
<para>
The language part of the top-level locale of the document
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="param_l10n.region">
<parameter>l10n.region</parameter>
</link>
</term>
<listitem>
<para>
The region part of the top-level locale of the document
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="param_l10n.variant">
<parameter>l10n.variant</parameter>
</link>
</term>
<listitem>
<para>
The variant part of the top-level locale of the document
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="param_l10n.charset">
<parameter>l10n.charset</parameter>
</link>
</term>
<listitem>
<para>
The charset part of the top-level locale of the document
</para>
</listitem>
</varlistentry>
</variablelist>
<variablelist>
<title>Templates</title>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.gettext">
<function role="template">l10n.gettext</function>
</link>
</term>
<listitem>
<para>
Look up a translated string
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.plural.form">
<function role="template">l10n.plural.form</function>
</link>
</term>
<listitem>
<para>
Extract the plural form string for a cardinality
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.direction">
<function role="template">l10n.direction</function>
</link>
</term>
<listitem>
<para>
Determine the text direction for the language of the document
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.language">
<function role="template">l10n.language</function>
</link>
</term>
<listitem>
<para>
Extract the language part of a locale
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.region">
<function role="template">l10n.region</function>
</link>
</term>
<listitem>
<para>
Extract the region part of a locale
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.variant">
<function role="template">l10n.variant</function>
</link>
</term>
<listitem>
<para>
Extract the variant part of a locale
</para>
</listitem>
</varlistentry>
<varlistentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude">
<term>
<link linkend="template_l10n.charset">
<function role="template">l10n.charset</function>
</link>
</term>
<listitem>
<para>
Extract the charset part of a locale
</para>
</listitem>
</varlistentry>
</variablelist>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="param_l10n.locale">
<indexterm>
<primary>l10n.locale</primary>
</indexterm>
<refnamediv>
<refname>l10n.locale</refname>
<refpurpose>
The top-level locale of the document
</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>This parameter has no description</para>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="param_l10n.language">
<indexterm>
<primary>l10n.language</primary>
</indexterm>
<refnamediv>
<refname>l10n.language</refname>
<refpurpose>
The language part of the top-level locale of the document
</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>This parameter has no description</para>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="param_l10n.region">
<indexterm>
<primary>l10n.region</primary>
</indexterm>
<refnamediv>
<refname>l10n.region</refname>
<refpurpose>
The region part of the top-level locale of the document
</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>This parameter has no description</para>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="param_l10n.variant">
<indexterm>
<primary>l10n.variant</primary>
</indexterm>
<refnamediv>
<refname>l10n.variant</refname>
<refpurpose>
The variant part of the top-level locale of the document
</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>This parameter has no description</para>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="param_l10n.charset">
<indexterm>
<primary>l10n.charset</primary>
</indexterm>
<refnamediv>
<refname>l10n.charset</refname>
<refpurpose>
The charset part of the top-level locale of the document
</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>This parameter has no description</para>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.gettext">
<indexterm>
<primary>l10n.gettext</primary>
</indexterm>
<refnamediv>
<refname>l10n.gettext</refname>
<refpurpose>
Look up a translated string
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>msgid</parameter>
</term>
<listitem>
<para>
The id of the string to look up, usually the string in the C locale
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale to use when looking up the translated string
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_language</parameter>
</term>
<listitem>
<para>
The language portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_region</parameter>
</term>
<listitem>
<para>
The region portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_variant</parameter>
</term>
<listitem>
<para>
The variant portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_charset</parameter>
</term>
<listitem>
<para>
The charset portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>number</parameter>
</term>
<listitem>
<para>
The cardinality for plural-form lookups
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>form</parameter>
</term>
<listitem>
<para>
The form name for plural-form lookups
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.plural.form">
<indexterm>
<primary>l10n.plural.form</primary>
</indexterm>
<refnamediv>
<refname>l10n.plural.form</refname>
<refpurpose>
Extract the plural form string for a cardinality
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>number</parameter>
</term>
<listitem>
<para>
The cardinality of plural form
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale to use when looking up the translated string
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_language</parameter>
</term>
<listitem>
<para>
The language portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_region</parameter>
</term>
<listitem>
<para>
The region portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_variant</parameter>
</term>
<listitem>
<para>
The variant portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_charset</parameter>
</term>
<listitem>
<para>
The charset portion of the locale to use
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.direction">
<indexterm>
<primary>l10n.direction</primary>
</indexterm>
<refnamediv>
<refname>l10n.direction</refname>
<refpurpose>
Determine the text direction for the language of the document
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale to use when determining the direction
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_language</parameter>
</term>
<listitem>
<para>
The language portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_region</parameter>
</term>
<listitem>
<para>
The region portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_variant</parameter>
</term>
<listitem>
<para>
The variant portion of the locale to use
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>lang_charset</parameter>
</term>
<listitem>
<para>
The charset portion of the locale to use
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.language">
<indexterm>
<primary>l10n.language</primary>
</indexterm>
<refnamediv>
<refname>l10n.language</refname>
<refpurpose>
Extract the language part of a locale
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale string from which to extract the language string
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.region">
<indexterm>
<primary>l10n.region</primary>
</indexterm>
<refnamediv>
<refname>l10n.region</refname>
<refpurpose>
Extract the region part of a locale
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale string from which to extract the region string
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.variant">
<indexterm>
<primary>l10n.variant</primary>
</indexterm>
<refnamediv>
<refname>l10n.variant</refname>
<refpurpose>
Extract the variant part of a locale
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale string from which to extract the variant string
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
<refentry xmlns:fxi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="template_l10n.charset">
<indexterm>
<primary>l10n.charset</primary>
</indexterm>
<refnamediv>
<refname>l10n.charset</refname>
<refpurpose>
Extract the charset part of a locale
</refpurpose>
</refnamediv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>
<parameter>lang</parameter>
</term>
<listitem>
<para>
The locale string from which to extract the charset string
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
</refentry>
</section>