Skip to content

Commit

Permalink
Traduction de color.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Lorek authored and gleu committed Oct 5, 2020
1 parent 085deea commit 1c3124c
Showing 1 changed file with 40 additions and 31 deletions.
71 changes: 40 additions & 31 deletions postgresql/color.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,100 +2,109 @@
<!-- doc/src/sgml/color.sgml -->

<appendix id="color">
<title>Color Support</title>
<title>Support des couleurs</title>

<indexterm zone="color">
<primary>color</primary>
<primary>couleur</primary>
</indexterm>

<para>
Most programs in the PostgreSQL package can produce colorized console
output. This appendix describes how that is configured.
Les programmes dans la distribution PostgreSQL peuvent produire une sortie
console colorée. Cet annexe décrit comment le configurer.
</para>

<sect1 id="color-when">
<title>When Color is Used</title>
<title>Quand les couleurs sont utilisées</title>

<para>
To use colorized output, set the environment variable
Pour utiliser la sortie colorée, affecter la variable d'environment
<envar>PG_COLOR</envar><indexterm><primary>PG_COLOR</primary></indexterm>
as follows:
comme suit&nbsp;:

<orderedlist>
<listitem>
<para>
If the value is <literal>always</literal>, then color is used.
Si la valeur est <literal>always</literal>, alors les couleurs sont
utilisées.
</para>
</listitem>

<listitem>
<para>
If the value is <literal>auto</literal> and the standard error stream
is associated with a terminal device, then color is used.
Si la valeur est <literal>auto</literal> et que le flux de sortie
standard d'erreur est associé à un périphérique terminal, alors la
couleur est utilisée.
</para>
</listitem>

<listitem>
<para>
Otherwise, color is not used.
Autrement, la couleur n'est pas utilisée.
</para>
</listitem>
</orderedlist>
</para>
</sect1>

<sect1 id="color-which">
<title>Configuring the Colors</title>
<title>Configurer les couleurs</title>

<para>
The actual colors to be used are configured using the environment variable
<envar>PG_COLORS</envar><indexterm><primary>PG_COLORS</primary></indexterm>
(note plural). The value is a colon-separated list of
<literal><replaceable>key</replaceable>=<replaceable>value</replaceable></literal>
pairs. The keys specify what the color is to be used for. The values are
SGR (Select Graphic Rendition) specifications, which are interpreted by the
terminal.
Les couleurs actuellement utilisées sont configurées en utilisant la variable
d'environnement <envar>PG_COLORS</envar><indexterm><primary>PG_COLORS</primary></indexterm>
(notez le pluriel). Sa valeur est une liste de
<literal><replaceable>clé</replaceable>=<replaceable>valeur</replaceable></literal>
séparés par des virgules. Les clés spécifient la couleur utilisée à tel usage.
Les valeurs suivent les spécifications SGR (Select Graphic Rendition), qui sont
interprétées par le terminal.
</para>

<para>
The following keys are currently in use:
Les clés suivantes sont actuellement en usage&nbsp;:
<variablelist>
<varlistentry>
<term><literal>error</literal></term>
<listitem>
<para>used to highlight the text <quote>error</quote> in error messages</para>
<para>
Utilisé pour surligner le texte <quote>error</quote> dans les messages
d'erreur.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>warning</literal></term>
<listitem>
<para>used to highlight the text <quote>warning</quote> in warning
messages</para>
<para>
Utilisé pour surligner le texte <quote>warning</quote> dans les messages
d'avertissement.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><literal>locus</literal></term>
<listitem>
<para>used to highlight location information (e.g., program name and
file name) in messages</para>
<para>
Utilisé pour surligner l'information d'emplacement (i.e. le nom du
programme et le nom de fichier) dans les messages.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>

<para>
The default value is <literal>error=01;31:warning=01;35:locus=01</literal>
(<literal>01;31</literal> = bold red, <literal>01;35</literal> = bold
magenta, <literal>01</literal> = bold default color).
La valeur par défaut est <literal>error=01;31:warning=01;35:locus=01</literal>
(<literal>01;31</literal> = rouge en gras, <literal>01;35</literal> = magenta en gras
, <literal>01</literal> = couleur défaut en gras).
</para>

<tip>
<para>
This color specification format is also used by other software packages
such as <productname>GCC</productname>, <productname>GNU
coreutils</productname>, and <productname>GNU grep</productname>.
Le format des spécifications couleurs est aussi utilisé par d'autres
paquets de programme comme <productname>GCC</productname>, <productname>GNU
coreutils</productname> et <productname>GNU grep</productname>.
</para>
</tip>
</sect1>
Expand Down

0 comments on commit 1c3124c

Please sign in to comment.