| 1 |
// ____ _ __ |
| 2 |
// / __ )____ _____ | | / /___ ___________ |
| 3 |
// / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/ |
| 4 |
// / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ ) |
| 5 |
// /_____/\____/____/ |__/|__/\__,_/_/ /____/ |
| 6 |
// |
| 7 |
// A futuristic real-time strategy game. |
| 8 |
// This file is part of Bos Wars. |
| 9 |
// |
| 10 |
/**@name translate.h - The translate headerfile. */ |
| 11 |
// |
| 12 |
// (c) Copyright 2005-2007 by Jimmy Salmon |
| 13 |
// |
| 14 |
// This program is free software; you can redistribute it and/or modify |
| 15 |
// it under the terms of the GNU General Public License as published by |
| 16 |
// the Free Software Foundation; only version 2 of the License. |
| 17 |
// |
| 18 |
// This program is distributed in the hope that it will be useful, |
| 19 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 |
// GNU General Public License for more details. |
| 22 |
// |
| 23 |
// You should have received a copy of the GNU General Public License |
| 24 |
// along with this program; if not, write to the Free Software |
| 25 |
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 26 |
// 02111-1307, USA. |
| 27 |
|
| 28 |
#ifndef __TRANSLATE_H__ |
| 29 |
#define __TRANSLATE_H__ |
| 30 |
|
| 31 |
#include <string> |
| 32 |
|
| 33 |
//@{ |
| 34 |
|
| 35 |
/// The PO containing the translations for the stratagus engine |
| 36 |
extern std::string StratagusTranslation; |
| 37 |
|
| 38 |
/// The PO containing the translations for the game itself |
| 39 |
extern std::string GameTranslation; |
| 40 |
/*---------------------------------------------------------------------------- |
| 41 |
-- Functions |
| 42 |
----------------------------------------------------------------------------*/ |
| 43 |
|
| 44 |
/// Translate a string |
| 45 |
extern const char *Translate(const char *str) GCC_ATTR((format_arg(1))); |
| 46 |
/// Add a translation |
| 47 |
extern void AddTranslation(const std::string &str1, const std::string &str2); |
| 48 |
/// Load a .po file |
| 49 |
extern void LoadPO(const std::string &file); |
| 50 |
/// Set the stratagus and game translations |
| 51 |
extern void SetTranslationsFiles(const std::string &stratagusfile, const std::string &gamefile); |
| 52 |
|
| 53 |
|
| 54 |
//@} |
| 55 |
|
| 56 |
#endif // !__TRANSLATE_H__ |
| 57 |
|