X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fmessage.c;h=49e91e5ad1c19102cfab8b7a3e92bd8bbd347506;hb=e00e467d3d1de49cfc5f261d91ab272cd6fae065;hp=6d44530ace816e769ddbfc0593a8ee03d1e4e9ef;hpb=8093e53a57e174b019f07760f5bf815271ceee9b;p=gedcom-parse.git diff --git a/gedcom/message.c b/gedcom/message.c index 6d44530..49e91e5 100644 --- a/gedcom/message.c +++ b/gedcom/message.c @@ -1,11 +1,22 @@ -/* This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - - (C) 2001 by The Genes Development Team - Original author: Peter Verthez (Peter.Verthez@advalvas.be) -*/ +/* Implementation of the messaging API to applications. + Copyright (C) 2001 The Genes Development Team + This file is part of the Gedcom parser library. + Contributed by Peter Verthez , 2001. + + The Gedcom parser library is free software; you can redistribute it + and/or modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The Gedcom parser library is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the Gedcom parser library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ /* $Id$ */ /* $Name$ */ @@ -95,7 +106,7 @@ int gedcom_warning(char* s, ...) va_list ap; reset_mess_buffer(); - safe_buf_append("Warning on line %d: ", line_no); + safe_buf_append(_("Warning on line %d: "), line_no); va_start(ap, s); res = safe_buf_vappend(s, ap); va_end(ap); @@ -112,7 +123,7 @@ int gedcom_error(char* s, ...) va_list ap; reset_mess_buffer(); - safe_buf_append("Error on line %d: ", line_no); + safe_buf_append(_("Error on line %d: "), line_no); va_start(ap, s); res = safe_buf_vappend(s, ap); va_end(ap);