Changeset 497 in MondoRescue for branches/stable/mondo/mondo/common/my-stuff.h


Ignore:
Timestamp:
Apr 28, 2006, 12:34:03 AM (18 years ago)
Author:
bcornec
Message:

Integration of a big patch from rene-marc dolhen <rmd_at_mecreant.org> to support internationalization with gettext.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/my-stuff.h

    r425 r497  
    202202#include <pthread.h>
    203203#include <assert.h>
     204
     205#include "../../config.h"
    204206
    205207#if defined(DEBUG) && !__cplusplus
     
    365367 * Welcome string displayed at the top of the newt interface.
    366368 */
    367 #define WELCOME_STRING "W E L C O M E   T O   M O N D O   R E S C U E"
     369#define WELCOME_STRING _("W E L C O M E   T O   M O N D O   R E S C U E")
    368370
    369371/**
     
    526528#define DEFAULT_MR_LOGLEVEL 4
    527529
     530#ifdef ENABLE_NLS 
     531# include <libintl.h> 
     532# undef _ 
     533# define _(String) dgettext (PACKAGE, String)
     534# ifdef gettext_noop 
     535#  define N_(String) gettext_noop (String) 
     536# else 
     537#  define N_(String) (String) 
     538# endif 
     539#else 
     540# define textdomain(String) (String) 
     541# define gettext(String) (String) 
     542# define dgettext(Domain,Message) (Message) 
     543# define dcgettext(Domain,Message,Type) (Message) 
     544# define bindtextdomain(Domain,Directory) (Domain) 
     545# define _(String) (String) 
     546# define N_(String) (String) 
     547
     548#endif
     549
     550
     551
    528552#endif                          /* _MY_STUFF_H_ */
Note: See TracChangeset for help on using the changeset viewer.