| 1 | /* |
| 2 | * Copyright (C) 2014 HarpyWar ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | #ifndef INCLUDED_LOCALIZATION_TYPES |
| 19 | #define INCLUDED_LOCALIZATION_TYPEScxx . . $ `src/bnetd/i18n.h:19:9`! |
| 20 | |
| 21 | namespace pvpgncxx . . $ pvpgn/ |
| 22 | { |
| 23 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 24 | { |
| 25 | |
| 26 | typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_e9cf31f8eef22f11_0# { |
| 27 | t_gamelang gamelangcxx . . $ pvpgn/bnetd/$anonymous_type_e9cf31f8eef22f11_0#gamelang.; |
| 28 | const char* namecxx . . $ pvpgn/bnetd/$anonymous_type_e9cf31f8eef22f11_0#name.; |
| 29 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> countriescxx . . $ pvpgn/bnetd/$anonymous_type_e9cf31f8eef22f11_0#countries.; |
| 30 | } t_languagecxx . . $ pvpgn/bnetd/t_language#; |
| 31 | |
| 32 | extern stdcxx . . $ std/::vectorcxx . . $ std/vector#<t_languagecxx . . $ pvpgn/bnetd/t_language#> languagescxx . . $ pvpgn/bnetd/languages.; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #endif |
| 37 | |
| 38 | #ifndef JUST_NEED_TYPES |
| 39 | #ifndef INCLUDED_LOCALIZATION_PROTOS |
| 40 | #define INCLUDED_LOCALIZATION_PROTOScxx . . $ `src/bnetd/i18n.h:40:9`! |
| 41 | |
| 42 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/i18n.h:42:9`! |
| 43 | # include <string> |
| 44 | # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 45 | # include "common/format.h"cxx . . $ `<file>/src/common/format.h`/ |
| 46 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/i18n.h:42:9`! |
| 47 | |
| 48 | namespace pvpgncxx . . $ pvpgn/ |
| 49 | { |
| 50 | |
| 51 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 52 | { |
| 53 | extern int i18n_loadcxx . . $ pvpgn/bnetd/i18n_load(b126dc7c1de90089).(void); |
| 54 | extern int i18n_reloadcxx . . $ pvpgn/bnetd/i18n_reload(b126dc7c1de90089).(void); |
| 55 | |
| 56 | extern stdcxx . . $ std/::stringcxx . . $ std/string# i18n_filenamecxx . . $ pvpgn/bnetd/i18n_filename(caf975da75400ef4).(const char * filename, t_tag gamelang); |
| 57 | extern t_languagecxx . . $ pvpgn/bnetd/t_language# language_find_by_countrycxx . . $ pvpgn/bnetd/language_find_by_country(720127fdcbf74daa).(const char * code, bool &found); |
| 58 | extern t_languagecxx . . $ pvpgn/bnetd/t_language# language_find_by_tagcxx . . $ pvpgn/bnetd/language_find_by_tag(4ad94360b135822).(t_gamelang gamelang, bool &found); |
| 59 | extern t_languagecxx . . $ pvpgn/bnetd/t_language# language_get_by_countrycxx . . $ pvpgn/bnetd/language_get_by_country(c0fa690ee7ce572b).(const char * code); |
| 60 | extern t_gamelang gamelang_get_by_countrycxx . . $ pvpgn/bnetd/gamelang_get_by_country(c61c63047ce273de).(const char * code); |
| 61 | extern t_languagecxx . . $ pvpgn/bnetd/t_language# language_get_by_tagcxx . . $ pvpgn/bnetd/language_get_by_tag(d4f431141f94e5b6).(t_gamelang gamelang); |
| 62 | |
| 63 | extern t_gamelang conn_get_gamelang_localizedcxx . . $ pvpgn/bnetd/conn_get_gamelang_localized(c9be5e844f0af884).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 64 | |
| 65 | extern int handle_language_commandcxx . . $ pvpgn/bnetd/handle_language_command(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const *text); |
| 66 | extern char * i18n_convertcxx . . $ pvpgn/bnetd/i18n_convert(c30c6622e93e4e71).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char * buf); |
| 67 | extern int tag_check_gamelang_realcxx . . $ pvpgn/bnetd/tag_check_gamelang_real(4c679297bf94b9eb).(t_tag gamelang); |
| 68 | |
| 69 | |
| 70 | extern stdcxx . . $ std/::stringcxx . . $ std/string# _localizecxx . . $ pvpgn/bnetd/_localize(50ad54f02f25b5d8).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, const char * func, const char *fmt, const fmtcxx . . $ fmt/::ArgListcxx . . $ fmt/ArgList# &args); |
| 71 | FMT_VARIADICcxx . . $ `src/common/format.h:3499:9`!(std::string, _localize, t_connection *, const char *, const char *) |
| 72 | |
| 73 | #define localizecxx . . $ `src/bnetd/i18n.h:73:11`!(c, ...) _localize(c, __FUNCTION__, __VA_ARGS__) |
| 74 | } |
| 75 | |
| 76 | } |
| 77 | |
| 78 | /*****/ |
| 79 | #endif |
| 80 | #endif |