From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21389 invoked by alias); 22 Feb 2006 09:26:55 -0000 Received: (qmail 21373 invoked by uid 22791); 22 Feb 2006 09:26:54 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Feb 2006 09:26:51 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k1M9QlBv023465; Wed, 22 Feb 2006 10:26:47 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id k1M9QkMP023464; Wed, 22 Feb 2006 10:26:46 +0100 Date: Wed, 22 Feb 2006 09:26:00 -0000 From: Jakub Jelinek To: Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix ypclnt.c i18n Message-ID: <20060222092646.GV4625@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00029.txt.bz2 Hi! 2005-11-26 Ulrich Drepper * nis/ypclnt.c (yperr_string): Reduce size of function by using only one gettext call. (ypbinderr_string): Likewise. leads to libc.pot not containing those strings any longer. Guess we need something like this: 2006-02-22 Jakub Jelinek * nis/ypclnt.c (yperr_string, ypbinderr_string): Add N_() around string literals. --- libc/nis/ypclnt.c.jj 2005-12-13 16:42:16.000000000 +0100 +++ libc/nis/ypclnt.c 2006-02-22 10:14:24.000000000 +0100 @@ -819,58 +819,58 @@ yperr_string (const int error) switch (error) { case YPERR_SUCCESS: - str = "Success"; + str = N_("Success"); break; case YPERR_BADARGS: - str = "Request arguments bad"; + str = N_("Request arguments bad"); break; case YPERR_RPC: - str = "RPC failure on NIS operation"; + str = N_("RPC failure on NIS operation"); break; case YPERR_DOMAIN: - str = "Can't bind to server which serves this domain"; + str = N_("Can't bind to server which serves this domain"); break; case YPERR_MAP: - str = "No such map in server's domain"; + str = N_("No such map in server's domain"); break; case YPERR_KEY: - str = "No such key in map"; + str = N_("No such key in map"); break; case YPERR_YPERR: - str = "Internal NIS error"; + str = N_("Internal NIS error"); break; case YPERR_RESRC: - str = "Local resource allocation failure"; + str = N_("Local resource allocation failure"); break; case YPERR_NOMORE: - str = "No more records in map database"; + str = N_("No more records in map database"); break; case YPERR_PMAP: - str = "Can't communicate with portmapper"; + str = N_("Can't communicate with portmapper"); break; case YPERR_YPBIND: - str = "Can't communicate with ypbind"; + str = N_("Can't communicate with ypbind"); break; case YPERR_YPSERV: - str = "Can't communicate with ypserv"; + str = N_("Can't communicate with ypserv"); break; case YPERR_NODOM: - str = "Local domain name not set"; + str = N_("Local domain name not set"); break; case YPERR_BADDB: - str = "NIS map database is bad"; + str = N_("NIS map database is bad"); break; case YPERR_VERS: - str = "NIS client/server version mismatch - can't supply service"; + str = N_("NIS client/server version mismatch - can't supply service"); break; case YPERR_ACCESS: - str = "Permission denied"; + str = N_("Permission denied"); break; case YPERR_BUSY: - str = "Database is busy"; + str = N_("Database is busy"); break; default: - str = "Unknown NIS error code"; + str = N_("Unknown NIS error code"); break; } return _(str); @@ -907,19 +907,19 @@ ypbinderr_string (const int error) switch (error) { case 0: - str = "Success"; + str = N_("Success"); break; case YPBIND_ERR_ERR: - str = "Internal ypbind error"; + str = N_("Internal ypbind error"); break; case YPBIND_ERR_NOSERV: - str = "Domain not bound"; + str = N_("Domain not bound"); break; case YPBIND_ERR_RESC: - str = "System resource allocation failure"; + str = N_("System resource allocation failure"); break; default: - str = "Unknown ypbind error"; + str = N_("Unknown ypbind error"); break; } return _(str); Jakub