home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 February / maximum-cd-2009-02.iso / DiscContents / SMC_1.6_win32.exe / src / core / i18n.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-26  |  1.1 KB  |  34 lines

  1. /***************************************************************************
  2.  * i18n.h  -  header for the corresponding cpp file
  3.  *
  4.  * Copyright (C) 2008 Florian Richter
  5.  ***************************************************************************/
  6. /*
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 3 of the License, or
  10.    (at your option) any later version.
  11.    
  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  14. */
  15.  
  16. #ifndef SMC_I18N_H
  17. #define SMC_I18N_H
  18.  
  19. #include "../core/globals.h"
  20. #include <libintl.h>
  21.  
  22. // translates the string with gettext
  23. #define _(String) gettext(String)
  24. // translates the utf8 string with gettext
  25. #define UTF8_(String) reinterpret_cast<CEGUI::utf8*>(gettext(String))
  26. // not translated and only for gettext detection
  27. #define N_(String) String
  28.  
  29. // init internationalization
  30. void I18N_Init( void );
  31. // set language
  32. void I18N_Set_Language( const std::string &default_language );
  33.  
  34. #endif