cvs: phpdoc /fr/functions readline.xml

From: Date: Tue, 12 Dec 2000 10:50:01 +0000
Subject: cvs: phpdoc /fr/functions readline.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333212@lists.php.net to get a copy of this message
dams Tue Dec 12 02:50:01 2000 EDT Modified files: /phpdoc/fr/functions readline.xml Log: Translation

Index: phpdoc/fr/functions/readline.xml diff -u phpdoc/fr/functions/readline.xml:1.2 phpdoc/fr/functions/readline.xml:1.3 --- phpdoc/fr/functions/readline.xml:1.2 Sun Aug 20 09:29:45 2000 +++ phpdoc/fr/functions/readline.xml Tue Dec 12 02:50:00 2000 @@ -1,70 +1,65 @@ <reference id="ref.readline"> - <title>GNU Readline</title> + <title>Readline GNU</title> <titleabbrev>Readline</titleabbrev> - <partintro> <simpara> - The <function>readline</function> functions implement an interface - to the GNU Readline library. These are functions that provide - editable command lines. An example being the way Bash allows you - to use the arrow keys to insert characters or scroll through - command history. Because of the interactive nature of this - library, it will be of little use for writing Web applications, - but may be useful when writing scripts meant to be run from a - shell. + Les fonctions <function>readline</function> impl&eacute;mente une interface + avec la librairie GNU Readline. Ces fonctions fournissent une ligne + de commande &eacute;ditable, un peu comme lorsque Bash vous permet d'utiliser + les fl&egrave;ches de d&eacute;placement pour ins&eacute;rer un caract&egrave;re ou + passer en revue l'historique. A cause de l'interactivit&eacute; de + ces commande, elles ne seront que rarement utiles pour les + applications Web, mais peuvent se r&eacute;v&eacute;ler utiles lorsqu'un + script est ex&eacute;cut&eacute; depuis une commande shell. </simpara> <simpara> - The home page of the GNU Readline project is - <ulink url="&url.readline;">&url.readline;</ulink>. It's maintained - by Chet Ramey, who's also the author of Bash. + Le site du projet GNU Readline est + <ulink url="&url.readline;">&url.readline;</ulink>. Elle est entretenue + par Chet Ramey, qui est aussi l'auteur de Bash. </simpara> </partintro> - <refentry id="function.readline"> <refnamediv> <refname>readline</refname> - <refpurpose>Reads a line</refpurpose> + <refpurpose>Lit une ligne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>readline</function></funcdef> - <paramdef>string + <paramdef>string <parameter><optional>prompt</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> - This function returns a single string from the user. You may - specify a string with which to prompt the user. The line - returned has the ending newline removed. You must add this line - to the history yourself using - <function>readline_add_history</function>. + <function>readline</function> retourne une ligne entr&eacute;e par + l'utilisateur. Vous pouvez sp&eacute;cifier une cha&icirc;ne de prompt. + La ligne retourn&eacute;e est d&eacute;barass&eacute;e du caract&egrave;re nouvelle ligne + final. Vous devez ajouter cette ligne &agrave; l'historique vous-m&ecirc;me, + avec la fonction <function>readline_add_history</function>. </para> <example> - <title><function>Readline</function></title> + <title>Exemple avec <function>readline</function></title> <programlisting role="php"> -//get 3 commands from user +//Lit 3 commandes de l'utilisateur for ($i=0; $i < 3; $i++) { - $line = readline ("Command: "); + $line = readline ("Commande: "); readline_add_history ($line); } - -//dump history +//liste l'historique print_r (readline_list_history()); - -//dump variables +//list les variables print_r (readline_info()); </programlisting> </example> </refsect1> </refentry> - <refentry id="function.readline-add-history"> <refnamediv> <refname>readline_add_history</refname> - <refpurpose>Adds a line to the history</refpurpose> + <refpurpose>Ajoute une ligne &agrave; l'historique</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -75,15 +70,14 @@ </funcprototype> </funcsynopsis> <para> - This function adds a line to the command line history. + <function>readline_add_history</function> ajoute une ligne &agrave; l'historique. </para> </refsect1> </refentry> - <refentry id="function.readline-clear-history"> <refnamediv> <refname>readline_clear_history</refname> - <refpurpose>Clears the history</refpurpose> + <refpurpose>Efface l'historique</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -94,73 +88,71 @@ </funcprototype> </funcsynopsis> <para> - This function clears the entire command line history. + <function>readline_clear_history</function> efface tout l'historique. </para> </refsect1> </refentry> - <refentry id="function.readline-completion-function"> <refnamediv> <refname>readline_completion_function</refname> - <refpurpose>Registers a completion function</refpurpose> + <refpurpose>Enregistre une fonction de compl&eacute;tion</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>boolean + <funcdef>boolean <function>readline_completion_function</function> </funcdef> <paramdef>string <parameter>line</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - This function registers a completion function. You must supply - the name of an existing function which accepts a partial command - line and returns an array of possible matches. This is the same - kind of functionality you'd get if you hit your tab key while - using Bash. + <function>readline_completion_function</function> enregistre une nouvelle + fonction de compl&eacute;tion. Vous devez fournir le nom d'une fonction + qui accepte un nom partiel de commande, et retourne une liste de + fonctions compl&egrave;te possibles. C'est la m&ecirc;me fonctionnalit&eacute; que + lorsque vous utilisez la touche de tabulation sous Bash. </para> </refsect1> </refentry> - <refentry id="function.readline-info"> <refnamediv> <refname>readline_info</refname> - <refpurpose>Gets/sets various internal readline variables</refpurpose> + <refpurpose>Lit/modifie diverses variables internes</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>mixed <function>readline_info</function></funcdef> - <paramdef>string + <paramdef>string <parameter><optional>varname</optional></parameter> </paramdef> - <paramdef>string + <paramdef>string <parameter><optional>newvalue</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> - If called with no parameters, this function returns an array of - values for all the setting readline uses. The elements will will - be indexed by the following values: done, end, erase_empty_line, - library_version, line_buffer, mark, pending_input, point, prompt, - readline_name, and terminal_name. + Appel&eacute;e sans param&egrave;tre, <function>readline_info</function> + retourne une tableau contenant les valeurs des param&egrave;tres de + Readline. Les &eacute;l&eacute;ments seront index&eacute;s par les cl&eacute;s suivantes : + done, end, erase_empty_line, library_version, line_buffer, mark, + pending_input, point, prompt, readline_name, et terminal_name. </para> <para> - If called with one parameter, the value of that setting is - returned. If called with two parameters, the setting will be - changed to the given value. + Appel&eacute;e avec le param&egrave;tre <parameter>varname</parameter>, + la valeur de cette variable sera retourn&eacute;e. Appel&eacute;e avec deux param&egrave;tres, et la + valeur de la variable <parameter>varname</parameter>, sera remplac&eacute;e par + <parameter>newvalue</parameter>. </para> </refsect1> </refentry> - <refentry id="function.readline-list-history"> <refnamediv> <refname>readline_list_history</refname> - <refpurpose>Lists the history</refpurpose> + <refpurpose>Liste l'historique</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -171,57 +163,54 @@ </funcprototype> </funcsynopsis> <para> - This function returns an array of the entire command line - history. The elements are indexed by integers starting at zero. + <function>readline_list_history</function> retourne un tableau avec + la liste de toutes les lignes de commandes de l'historique. + Les &eacute;l&eacute;ments sont ind&eacute;x&eacute;s num&eacute;riquement, &agrave; partir de 0. </para> </refsect1> </refentry> - <refentry id="function.readline-read-history"> <refnamediv> <refname>readline_read_history</refname> - <refpurpose>Reads the history</refpurpose> + <refpurpose>Lit l'historique</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>boolean + <funcdef>boolean <function>readline_read_history</function> </funcdef> <paramdef>string <parameter>filename</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - This function reads a command history from a file. + <function>readline_read_history</function> lit une ligne de l'historique. </para> </refsect1> </refentry> - - <refentry id="function.readline-write-history"> <refnamediv> <refname>readline_write_history</refname> - <refpurpose>Writes the history</refpurpose> + <refpurpose>Ecrit dans l'historique</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>boolean + <funcdef>boolean <function>readline_write_history</function> </funcdef> <paramdef>string <parameter>filename</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - This function writes the command history to a file. + <function>readline_write_history</function> &eacute;crit <parameter>filename</parameter> + dans l'historique. </para> </refsect1> </refentry> - </reference> - <!-- Keep this comment at the end of the file Local variables: mode: sgml
« previous php.doc (#969333212) next »