Pyrogenesis  trunk
JSInterface_L10n.h
Go to the documentation of this file.
1 /* Copyright (C) 2021 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. 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 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef INCLUDED_JSINTERFACE_L10N
19 #define INCLUDED_JSINTERFACE_L10N
20 
21 class ScriptRequest;
22 
23 /**
24  * Namespace for the functions of the JavaScript interface for
25  * internationalization and localization.
26  *
27  * This namespace defines JavaScript interfaces to functions defined in L10n and
28  * related helper functions.
29  *
30  * @sa http://trac.wildfiregames.com/wiki/Internationalization_and_Localization
31  */
32 namespace JSI_L10n
33 {
34  /**
35  * Registers the functions of the JavaScript interface for
36  * internationalization and localization into the specified JavaScript
37  * context.
38  *
39  * @param ScriptRequest Script Request where RegisterScriptFunctions()
40  * registers the functions.
41  *
42  * @sa GuiScriptingInit()
43  */
44  void RegisterScriptFunctions(const ScriptRequest& rq);
45 }
46 
47 #endif // INCLUDED_JSINTERFACE_L10N
void RegisterScriptFunctions(const ScriptRequest &rq)
Registers the functions of the JavaScript interface for internationalization and localization into th...
Definition: JSInterface_L10n.cpp:62
Spidermonkey maintains some &#39;local&#39; state via the JSContext* object.
Definition: ScriptRequest.h:59
Namespace for the functions of the JavaScript interface for internationalization and localization...
Definition: JSInterface_L10n.cpp:28