"Fossies" - the Fresh Open Source Software Archive

Member "utrac-0.3.2/src/ut_messages_fr.c" (4 Jan 2009, 3818 Bytes) of package /linux/privat/old/utrac-0.3.2.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ut_messages_fr.c" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2  *            ut_messages_fr.c
    3  *
    4  *  Jan 20 2005
    5  *  Copyright  2005  Alliance MCA
    6  *  Written by : Antoine Calando (antoine@alliancemca.net)
    7  ****************************************************************************/
    8 /*
    9  *  This program is free software; you can redistribute it and/or modify
   10  *  it under the terms of the GNU General Public License as published by
   11  *  the Free Software Foundation; either version 2 of the License, or
   12  *  (at your option) any later version.
   13  *
   14  *  This program is distributed in the hope that it will be useful,
   15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   17  *  GNU Library General Public License for more details.
   18  *
   19  *  You should have received a copy of the GNU General Public License
   20  *  along with this program; if not, write to the Free Software
   21  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   22  */
   23 
   24 /*!
   25  * \file ut_messages_fr.c
   26  * \author  Antoine Calando (antoine@alliancemca.net)
   27  */
   28 
   29 #include "debug.h"
   30 #include "utrac.h"
   31 #include "ut_error.h"
   32 
   33 
   34 
   35 /*!
   36  *\brief Names of eol type.
   37  */
   38 const char * UT_EOL_NAME[] = { "CR", "LF", "CRLF", "LFCR", "Mix","BSN", "Nul", "Aucun" };
   39 
   40 typedef struct UtErrorMessage {
   41     UtCode code;
   42     const char * message;
   43 } UtErrorMessage;
   44 
   45 
   46 const char * ut_error_message (UtCode code) {
   47     
   48     UtErrorMessage array[] = {
   49         { UT_INTERRUPTED_BY_USER, "Traitement interrompu par l'utilisateur" },
   50         //{ UT_ERROR,   "Erreur indéfinie" },
   51         //{ UT_SIZE_MISSING, "Taille manquante" },
   52         { UT_NOT_FOUND_ERROR, "Element non trouvé" },
   53 
   54         { UT_MALLOC_ERROR, "Allocation mémoire refusée"},
   55         { UT_OPEN_FILE_ERROR, "Impossible d'ouvrir le fichier"},
   56         { UT_CLOSE_FILE_ERROR, "Impossible de fermer le fichier"},
   57         { UT_FSTAT_FILE_ERROR, "Appel à fstat refusé"},
   58         { UT_READ_FILE_ERROR, "Erreur lors de la lecture"},
   59         { UT_READ_FILE_ERROR2, "Erreur lors de la lecture"},
   60         { UT_FILE_TOO_BIG_ERROR, "Fichier trop gros"},
   61 
   62         { UT_ALREADY_INITIALISED_ERROR, "Utrac déjà initialisé"},
   63         { UT_SYNTAX_ERROR, "Erreur de syntaxe"},
   64         { UT_STRING_MISSING_ERROR, "Chaîne de caractère manquante"},
   65         { UT_LANG_SYS_ALREADY_DEFINED_ERROR, "Langage/système déjà défini"},
   66         { UT_LANG_SYS_CODE_MISSING_ERROR, "Code langage/système manquant"},
   67         { UT_PARTIAL_LANG_SYS_CODE_ERROR, "Code langage/système manquant"},
   68         { UT_LANG_SYS_NAME_MISSING_ERROR, "Nom langage/système manquant"},
   69         { UT_LANG_SYS_UNDEFINED_ERROR, "Langage/système indéfini"},
   70         { UT_LANG_SYS_COEF_MISSING_ERROR, "Coefficient langage/système manquant"},
   71         { UT_LANG_SYS_INCORRECT_COEF_ERROR, "Coefficient langage/système incorrect"},
   72         { UT_LANG_SYS_COEF_TOO_BIG_ERROR, "Coefficient langage/système trop grand"},
   73         { UT_LANG_SYS_DEF_AFTER_CHARSET_ERROR, "Langage/système défini après un charset"},
   74         { UT_INCORRECT_CHARMAP_ENTRY_ERROR, "Entrée charmap incorrecte"},
   75         { UT_UNDEFINED_CATEGORY_ERROR, "Catégorie de caractère indéfinie"},
   76         { UT_CHAR_TOO_BIG_ERROR, "Caractère trop grand"},
   77         { UT_UNICODE_CHAR_TOO_BIG_ERROR, "Caractère Unicode trop grand"},
   78         { UT_CHARSET_FILE_ERROR, "Erreur dans le fichier de charsets"},
   79         { UT_CHARMAP_ENTRY_ILLEGAL_ERROR, "Entrée charmap illegalle dans ce charset"},
   80     
   81         { UT_BAD_PARAMETER_ERROR, "Mauvais paramètre"},
   82         //{ UT_BAD_FLAGS_ERROR, ""},
   83         //{ UT_DATA_OR_FILNAME_UNSPECIFIED_ERROR, ""},
   84         //{ UT_EMPTY_FILE_ERROR, "Fichier vide"},
   85         { UT_EMPTY_DATA_ERROR, "Données inexistantes"},
   86         { UT_BINARY_DATA_ERROR, "Données binaires"},
   87         //{ UT_CHARSET_NOT_RECOGNIZED_ERROR, ""},
   88         
   89         { UT_UNSET, NULL }
   90     };
   91     
   92     int i=0;
   93     while (array[i].code != UT_UNSET) {
   94         if (array[i].code == code) return array[i].message;
   95         i++;
   96     }
   97             
   98     return NULL;
   99 }