Skip to content

Commit

Permalink
Traduction de deux fichiers
Browse files Browse the repository at this point in the history
  • Loading branch information
nah-ko authored and gleu committed Jun 22, 2017
1 parent d185cd9 commit 86732c2
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 118 deletions.
146 changes: 72 additions & 74 deletions postgresql/charset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -524,22 +524,20 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";

<para>
Une collation est un objet du catalogue dont le nom au niveau SQL
correspond à une locale provided by libraries installed in the operating system. A collation
definition has a <firstterm>provider</firstterm> that specifies which
library supplies the locale data. One standard provider name
is <literal>libc</literal>, which uses the locales provided by the
operating system C library. These are the locales that most tools
provided by the operating system use. Another provider
is <literal>icu</literal>, which uses the external
ICU<indexterm><primary>ICU</primary></indexterm> library. Support for ICU has to be
configured when PostgreSQL is built.
correspond à une locale fournie par les bibliothèques installées sur le système. Une
définition de la collation a un <firstterm>fournisseur</firstterm> spécifiant quelle bibliothèque
fourni les données locales. L'un des fournisseurs standard est <literal>libc</literal>,
qui utilise les locales fournies par la bibliothèque C du système. Ce sont les locales
les plus utilisées par des outils que le système utilise. Un autre fournisseur est
<literal>icu</literal>, qui utilise la bibliothèque externe
ICU<indexterm><primary>ICU</primary></indexterm>. Le support de ICU doit être configuré
lorsque PostgreSQL est compilé.
</para>

<para>
A collation object provided by <literal>libc</literal> maps to a
combination of <symbol>LC_COLLATE</symbol> and <symbol>LC_CTYPE</symbol>
settings. (Comme
le nom le suggère, le principal objectif d'une collation est de
Un objet de type collation fourni par <literal>libc</literal> pointe sur
une combinaison de paramètres <symbol>LC_COLLATE</symbol> et <symbol>LC_CTYPE</symbol>.
(Comme le nom le suggère, le principal objectif d'une collation est de
positionner <symbol>LC_COLLATE</symbol> qui contrôle l'ordre de tri.
Dans la pratique, il est très rarement nécessaire de définir un
paramètre <symbol>LC_CTYPE</symbol> différent de
Expand All @@ -553,16 +551,16 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";
</para>

<para>
A collation provided by <literal>icu</literal> maps to a named collator
provided by the ICU library. ICU does not support
separate <quote>collate</quote> and <quote>ctype</quote> settings, so they
are always the same. Also, ICU collations are independent of the
encoding, so there is always only one ICU collation for a given name in a
database.
Un objet de type collation fourni par <literal>icu</literal> pointe sur un collateur nommé
fourni par la bibliothèque ICU. ICU ne permet pas de paramétrages
<quote>collate</quote> et <quote>ctype</quote> séparés, ils sont donc
toujours les mêmes. Egalement, les collations ICU sont indépendantes de
l'encodage, donc il n'y a toujours qu'une seule collation ICU pour un nom donné dans une
base de données.
</para>

<sect3>
<title>Standard Collations</title>
<title>Collations Standard</title>

<para>
Les collations nommées <literal>default</literal>, <literal>C</literal>, et <literal>POSIX</literal>
Expand All @@ -578,31 +576,31 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";
</para>

<para>
Additionally, the SQL standard collation name <literal>ucs_basic</literal>
is available for encoding <literal>UTF8</literal>. It is equivalent
to <literal>C</literal> and sorts by Unicode code point.
En complément, la collation SQL standard nommée <literal>ucs_basic</literal>
est disponible avec l'encodage <literal>UTF8</literal>. C'est équivalent
à <literal>C</literal> et trie les données par leur point le code Unicode.
</para>
</sect3>

<sect3>
<title>Predefined Collations</title>
<title>Collations Prédéfinies</title>

<para>
Si le système d'exploitation permet à un programme de supporter plusieurs
locales (fonction <function>newlocale</function> et fonctions conjointes) or support for ICU is configured, alors
locales (fonction <function>newlocale</function> et fonctions conjointes) ou si le support d'ICU est configuré, alors
<command>initdb</command> peuplera le catalogue système <literal>pg_collation</literal>
en se basant sur toutes les locales qu'il trouve sur le système d'exploitation au
moment de l'initialisation du cluster de bases de données.
</para>

<para>
To inspect the currently available locales, use the query <literal>SELECT
* FROM pg_collation</literal>, or the command <command>\dOS+</command>
in <application>psql</application>.
Pour inspecter les locales actuellement disponibles, utilisez la requète <literal>SELECT
* FROM pg_collation</literal>, ou la commande <command>\dOS+</command>
dans <application>psql</application>.
</para>

<sect4>
<title>libc collations</title>
<title>Collations LibC</title>

<para>
Par exemple, le système
Expand All @@ -619,14 +617,14 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";
</para>

<para>
The default set of collations provided by <literal>libc</literal> map
directly to the locales installed in the operating system, which can be
listed using the command <literal>locale -a</literal>. In case
a <literal>libc</literal> collation is needed that has different values
for <symbol>LC_COLLATE</symbol> and <symbol>LC_CTYPE</symbol>, or new
locales are installed in the operating system after the database system
was initialized, then a new collation may be created using
the <xref linkend="sql-createcollation"/> command.
Le jeu de collation par défaut fourni par <literal>libc</literal> pointe
directement vers les locales installées sur le système, qui peuvent être
listés en utilisant la commande <literal>locale -a</literal>. Dans le cas
où une collation <literal>libc</literal> est nécessaire qui a différentes valeurs
pour <symbol>LC_COLLATE</symbol> et <symbol>LC_CTYPE</symbol>, ou de nouvelles
locales sont installées sur le système après que la base de donnée
soit initialisée, alors une nouvelle collation pourrait être créée en utilisant
la commande <xref linkend="sql-createcollation"/> .
</para>

<para>
Expand Down Expand Up @@ -660,88 +658,88 @@ SELECT a COLLATE "C" &lt; b COLLATE "POSIX" FROM test1;
</sect4>

<sect4>
<title>ICU collations</title>
<title>Collations ICU</title>

<para>
Collations provided by ICU are created with names in BCP 47 language tag
format, with a <quote>private use</quote>
extension <literal>-x-icu</literal> appended, to distinguish them from
libc locales. So <literal>de-x-icu</literal> would be an example.
Les collations fournies par ICU sont créées avec un tag de format de language BCP 47,
avec l'ajout d'une
extension <literal>-x-icu</literal> <quote>usage privé</quote>, pour les distinguer des
locales libc. Donc <literal>de-x-icu</literal> serait un exemple.
</para>

<para>
With ICU, it is not sensible to enumerate all possible locale names. ICU
uses a particular naming system for locales, but there are many more ways
to name a locale than there are actually distinct locales. (In fact, any
string will be accepted as a locale name.)
See <ulink url="http://userguide.icu-project.org/locale"></ulink> for
information on ICU locale naming. <command>initdb</command> uses the ICU
APIs to extract a set of locales with distinct collation rules to populate
the initial set of collations. Here are some examples collations that
might be created:
Avec ICU, il n'est pas nécessaire d'énumérer toutes les locales possibles. ICU
utilise un système de nommage particulier pour les locales, mais il y a de nombreuses autres façons
de nommer une locale qu'il y a actuellement de locales. (En fait, n'importe quelle
chaine de caractères sera acceptée en tant que nom de locale.)
Consultez <ulink url="http://userguide.icu-project.org/locale"></ulink> pour
des informations sur le nommage des locales ICU. <command>initdb</command> utilise l'API ICU
pour extraire un jeu de locales avec des règles de collation distincte afin de peupler
le jeu initial de collations. Voilà quelques exemples de collations pouvant
être créés:

<variablelist>
<varlistentry>
<term><literal>de-x-icu</literal></term>
<listitem>
<para>German collation, default variant</para>
<para>Collation Allemande, variante par défaut</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>de-u-co-phonebk-x-icu</literal></term>
<listitem>
<para>German collation, phone book variant</para>
<para>Collation Allemande, variante d'annuaire</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>de-AT-x-icu</literal></term>
<listitem>
<para>German collation for Austria, default variant</para>
<para>Collation Allemande pour l'Autriche, variante par défaut</para>
<para>
(Note that as of this writing, there is no,
say, <literal>de-DE-x-icu</literal> or <literal>de-CH-x-icu</literal>,
because those are equivalent to <literal>de-x-icu</literal>.)
(Notez qu'avec cette syntaxe, il n'y a pas de
<literal>de-DE-x-icu</literal> ou <literal>de-CH-x-icu</literal>,
car elles sont équivalentes à <literal>de-x-icu</literal>.)
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>de-AT-u-co-phonebk-x-icu</literal></term>
<listitem>
<para>German collation for Austria, phone book variant</para>
<para>Collation Allemande pour l'Autriche, variante d'annuaire</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>und-x-icu</literal> (for <quote>undefined</quote>)</term>
<term><literal>und-x-icu</literal> (pour <quote>undefined</quote>)</term>
<listitem>
<para>
ICU <quote>root</quote> collation. Use this to get a reasonable
language-agnostic sort order.
ICU <quote>root</quote> collation. Utilisez ceci pour avoir un ordre de tri
linguistique agnostique raisonnable.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>

<para>
Some (less frequently used) encodings are not supported by ICU. If the
database cluster was initialized with such an encoding, no ICU collations
will be predefined.
Certains (les moins fréquemment utilisés) encodages ne sont pas supportés par ICU. Si le
cluster de base de données était initialisé avec un tel encodage, aucune collation ICU
ne sera prédéfinie.
</para>
</sect4>
</sect3>

<sect3>
<title>Copying Collations</title>
<title>Copier les Collations</title>

<para>
The command <xref linkend="sql-createcollation"/> can also be used to
create a new collation from an existing collation, which can be useful to
be able to use operating-system-independent collation names in
applications, create compatibility names, or use an ICU-provided collation
under a more readable name. For example:
La commande <xref linkend="sql-createcollation"/> peut également être utilisée pour
créer une nouvelle collation depuis une collation existante, ce qui peut être utile afin
d'être capable d'utiliser une collation indépendante du système dans
les applications, créer des noms compatibles, ou d'utiliser une collation fournie par ICU
avec un nom plus lisible. Par exemple:
<programlisting>
CREATE COLLATION german FROM "de_DE";
CREATE COLLATION french FROM "fr-x-icu";
Expand All @@ -750,10 +748,10 @@ CREATE COLLATION "de-DE-x-icu" FROM "de-x-icu";
</para>

<para>
The standard and predefined collations are in the
schema <literal>pg_catalog</literal>, like all predefined objects.
User-defined collations should be created in user schemas. This also
ensures that they are saved by <command>pg_dump</command>.
Les collations standard et prédéfinies se trouvent dans
le schéma <literal>pg_catalog</literal>, comme tout objet prédéfini.
Les collations définies par l'utilisateur devraient être créées dans les schémas utilisateur.
Ceci permet également de s'assurer qu'ils sont sauvegardés par <command>pg_dump</command>.
</para>
</sect3>
</sect2>
Expand Down

0 comments on commit 86732c2

Please sign in to comment.