Skip to content

Commit

Permalink
traduction 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cousinflo committed Jun 8, 2011
1 parent 1aff26d commit 008a862
Showing 1 changed file with 51 additions and 50 deletions.
101 changes: 51 additions & 50 deletions postgresql/ref/create_collation.xml
Expand Up @@ -4,12 +4,12 @@
<refmeta>
<refentrytitle>CREATE COLLATION</refentrytitle>
<manvolnum>7</manvolnum>
<refmiscinfo>SQL - Language Statements</refmiscinfo>
<refmiscinfo>SQL - Instructions du langage</refmiscinfo>
</refmeta>

<refnamediv>
<refname>CREATE COLLATION</refname>
<refpurpose>define a new collation</refpurpose>
<refpurpose>définit une nouvelle collation</refpurpose>
</refnamediv>

<indexterm zone="sql-createcollation">
Expand All @@ -18,46 +18,46 @@

<refsynopsisdiv>
<synopsis>
CREATE COLLATION <replaceable>name</replaceable> (
CREATE COLLATION <replaceable>nom</replaceable> (
[ LOCALE = <replaceable>locale</replaceable>, ]
[ LC_COLLATE = <replaceable>lc_collate</replaceable>, ]
[ LC_CTYPE = <replaceable>lc_ctype</replaceable> ]
)
CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_collation</replaceable>
CREATE COLLATION <replaceable>nom</replaceable> FROM <replaceable>collation_existante</replaceable>
</synopsis>
</refsynopsisdiv>

<refsect1 id="sql-createcollation-description">
<title>Description</title>

<para>
<command>CREATE COLLATION</command> defines a new collation using
the specified operating system locale settings,
or by copying an existing collation.
<command>CREATE COLLATION</command> définit une nouvelle collation utilisant
la configuration de locale du système d'exploitation spécifiée
ou par copie d'une collation existante.
</para>

<para>
To be able to create a collation, you must
have <literal>CREATE</literal> privilege on the destination schema.
Pour pouvoir créer une collation, vous devez posséder
le privilège <literal>CREATE</literal> sur le schéma de destination.
</para>
</refsect1>


<refsect1>
<title>Parameters</title>
<title>Paramètres</title>

<variablelist>
<varlistentry>
<term><replaceable>name</replaceable></term>
<term><replaceable>nom</replaceable></term>

<listitem>
<para>
The name of the collation. The collation name can be
schema-qualified. If it is not, the collation is defined in the
current schema. The collation name must be unique within that
schema. (The system catalogs can contain collations with the
same name for other encodings, but these are ignored if the
database encoding does not match.)
Le nom de la collation. Le nom de la collation peut être
qualifié par le schéma. Si ce n'est pas le cas, la collation est définie
dans le schéma courant. Le nom de la collation doit être unique au sein
de ce schéma. (Le catalogue système peut contenir des collations de même nom
pour d'autres encodages, mais ces dernières sont ignorées si l'encodage
de la base de données ne correspond pas).
</para>
</listitem>
</varlistentry>
Expand All @@ -67,9 +67,10 @@ CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_coll

<listitem>
<para>
This is a shortcut for setting <symbol>LC_COLLATE</symbol>
and <symbol>LC_CTYPE</symbol> at once. If you specify this,
you cannot specify either of those parameters.
Ceci est un raccourci pour positionner d'un même coup
<symbol>LC_COLLATE</symbol>
et <symbol>LC_CTYPE</symbol>. Si vous spécifiez cela, vous
ne pouvez plus spécifier aucun de ces deux paramètres-ci.
</para>
</listitem>
</varlistentry>
Expand All @@ -79,11 +80,11 @@ CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_coll

<listitem>
<para>
Use the specified operating system locale for
the <symbol>LC_COLLATE</symbol> locale category. The locale
must be applicable to the current database encoding.
(See <xref linkend="sql-createdatabase"/> for the precise
rules.)
Utilise la locale système spécifiée comme catégorie
de locale de <symbol>LC_COLLATE</symbol>.
La locale doit être applicable à l'encodage de la base
courante. (cf. <xref linkend="sql-createdatabase"/>pour les règles précises.)

</para>
</listitem>
</varlistentry>
Expand All @@ -93,24 +94,24 @@ CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_coll

<listitem>
<para>
Use the specified operating system locale for
the <symbol>LC_CTYPE</symbol> locale category. The locale
must be applicable to the current database encoding.
(See <xref linkend="sql-createdatabase"/> for the precise
rules.)
Utilise la locale système spécifiée comme catégorie
de locale de <symbol>LC_CTYPE</symbol>.
La locale doit être applicable à l'encodage de la base
courante. (cf. <xref linkend="sql-createdatabase"/>pour les règles précises.)

</para>
</listitem>
</varlistentry>

<varlistentry>
<term><replaceable>existing_collation</replaceable></term>
<term><replaceable>collation_existante</replaceable></term>

<listitem>
<para>
The name of an existing collation to copy. The new collation
will have the same properties as the existing one, but it
will be an independent object.
</para>
Le nom d'une collation existante à copier. La nouvelle collation
aura les mêmes propriétés que celle copiée, mais ce sera un objet
indépendant.
</para>
</listitem>
</varlistentry>
</variablelist>
Expand All @@ -121,52 +122,52 @@ CREATE COLLATION <replaceable>name</replaceable> FROM <replaceable>existing_coll
<title>Notes</title>

<para>
Use <command>DROP COLLATION</command> to remove user-defined collations.
Utilisez <command>DROP COLLATION</command> pour supprimer une collation définie par l'utilisateur.
</para>

<para>
See <xref linkend="collation"/> for more information about collation
support in PostgreSQL.
Voir <xref linkend="collation"/> pour plus d'informations
sur le support des collations dans PostgreSQL.
</para>
</refsect1>

<refsect1 id="sql-createcollation-examples">
<title>Examples</title>
<title>Exemples</title>

<para>
To create a collation from the operating system locale
Créer une collation à partir de la locale système
<literal>fr_FR.utf8</literal>
(assuming the current database encoding is <literal>UTF8</literal>):
(en supposant que l'encodage de la base courante est <literal>UTF8</literal>):
<programlisting>
CREATE COLLATION french (LOCALE = 'fr_FR.utf8');
</programlisting>
</para>

<para>
To create a collation from an existing collation:
Créer une collation à partir d'une collation existante&nbsp;:
<programlisting>
CREATE COLLATION german FROM "de_DE";
</programlisting>
This can be convenient to be able to use operating-system-independent
collation names in applications.
Ceci peut être pratique pour pouvoir utiliser dans des applications des noms de collation
indépendants du système d'exploitation.
</para>
</refsect1>


<refsect1 id="sql-createcollation-compat">
<title>Compatibility</title>
<title>Compatibilité</title>

<para>
There is a <command>CREATE COLLATION</command> statement in the SQL
standard, but it is limited to copying an existing collation. The
syntax to create a new collation is
a <productname>PostgreSQL</productname> extension.
Dans le standard SQL se trouve un ordre <command>CREATE COLLATION</command>, mais
il est limité à la copie d'une collation existante. La syntaxe de création d'une
nouvelle collation est une extension
<productname>PostgreSQL</productname>.
</para>
</refsect1>


<refsect1 id="sql-createcollation-seealso">
<title>See Also</title>
<title>Voir également</title>

<simplelist type="inline">
<member><xref linkend="sql-altercollation"/></member>
Expand Down

0 comments on commit 008a862

Please sign in to comment.