1.1 --- a/plugins/include/lang.inc Fri Jul 11 06:51:21 2008 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,96 +0,0 @@
1.4 -/**
1.5 - * vim: set ts=4 :
1.6 - * =============================================================================
1.7 - * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
1.8 - * =============================================================================
1.9 - *
1.10 - * This file is part of the SourceMod/SourcePawn SDK.
1.11 - *
1.12 - * This program is free software; you can redistribute it and/or modify it under
1.13 - * the terms of the GNU General Public License, version 3.0, as published by the
1.14 - * Free Software Foundation.
1.15 - *
1.16 - * This program is distributed in the hope that it will be useful, but WITHOUT
1.17 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.18 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.19 - * details.
1.20 - *
1.21 - * You should have received a copy of the GNU General Public License along with
1.22 - * this program. If not, see <http://www.gnu.org/licenses/>.
1.23 - *
1.24 - * As a special exception, AlliedModders LLC gives you permission to link the
1.25 - * code of this program (as well as its derivative works) to "Half-Life 2," the
1.26 - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
1.27 - * by the Valve Corporation. You must obey the GNU General Public License in
1.28 - * all respects for all other code used. Additionally, AlliedModders LLC grants
1.29 - * this exception to all derivative works. AlliedModders LLC defines further
1.30 - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
1.31 - * or <http://www.sourcemod.net/license.php>.
1.32 - *
1.33 - * Version: $Id$
1.34 - */
1.35 -
1.36 -#if defined _lang_included
1.37 - #endinput
1.38 -#endif
1.39 -#define _lang_included
1.40 -
1.41 -#define LANG_SERVER 0 /**< Translate using the server's language */
1.42 -
1.43 -/**
1.44 - * Loads a translation file for the plugin calling this native.
1.45 - * If no extension is specified, .txt is assumed.
1.46 - *
1.47 - * @param path Translation file.
1.48 - * @noreturn
1.49 - */
1.50 -native LoadTranslations(const String:file[]);
1.51 -
1.52 -/**
1.53 - * Sets the global language target. This is useful for creating functions
1.54 - * that will be compatible with the %t format specifier. Note that invalid
1.55 - * indexes can be specified but the error will occur during translation,
1.56 - * not during this function call.
1.57 - *
1.58 - * @param client Client index or LANG_SERVER.
1.59 - * @noreturn
1.60 - */
1.61 -native SetGlobalTransTarget(client);
1.62 -
1.63 -/**
1.64 - * Retrieves the language number of a client.
1.65 - * Currently this simply returns the server language index.
1.66 - *
1.67 - * @param client Client index.
1.68 - * @return Language number client is using.
1.69 - * @error Invalid client index or client not in game.
1.70 - */
1.71 -native GetClientLanguage(client);
1.72 -
1.73 -/**
1.74 - * Retrieves the server's language.
1.75 - *
1.76 - * @return Language number server is using.
1.77 - */
1.78 -native GetServerLanguage();
1.79 -
1.80 -/**
1.81 - * Returns the number of languages known in languages.cfg.
1.82 - *
1.83 - * @return Language count.
1.84 - */
1.85 -native GetLanguageCount();
1.86 -
1.87 -/**
1.88 - * Retrieves info about a given language number.
1.89 - *
1.90 - * @param language Language number.
1.91 - * @param code Language code buffer (2-3 characters usually).
1.92 - * @param codeLen Maximum length of the language code buffer.
1.93 - * @param name Language name buffer.
1.94 - * @param nameLen Maximum length of the language name buffer.
1.95 - * @noreturn
1.96 - * @error Invalid language number.
1.97 - */
1.98 -native GetLanguageInfo(language, String:code[]="", codeLen=0, String:name[]="", nameLen=0);
1.99 -