Back to index

supertuxkart  0.5+dfsg1
translation.hpp
Go to the documentation of this file.
00001 //  $Id: transation.hpp 839 2006-10-24 00:01:56Z hiker $
00002 //
00003 //  SuperTuxKart - a fun racing game with go-kart
00004 //  Copyright (C) 2006 Joerg Henrichs
00005 //
00006 //  This program is free software; you can redistribute it and/or
00007 //  modify it under the terms of the GNU General Public License
00008 //  as published by the Free Software Foundation; either version 2
00009 //  of the License, or (at your option) any later version.
00010 //
00011 //  This program is distributed in the hope that it will be useful,
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //  GNU General Public License for more details.
00015 //
00016 //  You should have received a copy of the GNU General Public License
00017 //  along with this program; if not, write to the Free Software
00018 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020 #ifndef TRANSLATION_H
00021 #define TRANSLATION_H
00022 
00023 #ifdef HAS_GETTEXT
00024 #  include <libintl.h>
00025 #  define _(String) gettext(String)
00026 #  define gettext_noop(String) String
00027 #  define N_(String) gettext_noop (String)
00028 // libintl defines its own fprintf, which doesn't work for me :(
00029 #  if defined(WIN32) && !defined(__CYGWIN__)
00030 #    undef fprintf
00031 #  endif
00032 #else
00033 #  define _(String) (String)
00034 #  define gettext_noop(String) String
00035 #  define N_(String) String
00036 #endif
00037 
00038 // This length is used for all translated error messages.
00039 #define MAX_ERROR_MESSAGE_LENGTH 160
00040 
00041 // This length is used for all normal messages
00042 #define MAX_MESSAGE_LENGTH        80
00043 class Translations
00044 {
00045 public:
00046     Translations();
00047 };
00048 
00049 extern Translations* translations;
00050 #endif
00051 /* EOF */