2021-01-15 02:07:36 -08:00
|
|
|
/* Copyright (C) 2021 Wildfire Games.
|
2023-12-02 16:30:12 -08:00
|
|
|
* This file is part of 0 A.D.
|
2014-04-20 13:03:57 -07:00
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is free software: you can redistribute it and/or modify
|
2014-04-20 13:03:57 -07:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
2023-12-02 16:30:12 -08:00
|
|
|
* 0 A.D. is distributed in the hope that it will be useful,
|
2014-04-20 13:03:57 -07:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2023-12-02 16:30:12 -08:00
|
|
|
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
|
2014-04-20 13:03:57 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef INCLUDED_JSINTERFACE_L10N
|
|
|
|
|
#define INCLUDED_JSINTERFACE_L10N
|
|
|
|
|
|
2021-03-02 12:01:14 -08:00
|
|
|
class ScriptRequest;
|
2014-04-20 13:03:57 -07:00
|
|
|
|
2014-04-26 05:10:15 -07:00
|
|
|
/**
|
|
|
|
|
* Namespace for the functions of the JavaScript interface for
|
|
|
|
|
* internationalization and localization.
|
|
|
|
|
*
|
|
|
|
|
* This namespace defines JavaScript interfaces to functions defined in L10n and
|
|
|
|
|
* related helper functions.
|
|
|
|
|
*
|
2024-12-10 02:29:34 -08:00
|
|
|
* @sa https://gitea.wildfiregames.com/0ad/0ad/wiki/Internationalization_and_Localization
|
2014-04-26 05:10:15 -07:00
|
|
|
*/
|
2014-04-20 13:03:57 -07:00
|
|
|
namespace JSI_L10n
|
|
|
|
|
{
|
2014-04-26 05:10:15 -07:00
|
|
|
/**
|
|
|
|
|
* Registers the functions of the JavaScript interface for
|
|
|
|
|
* internationalization and localization into the specified JavaScript
|
|
|
|
|
* context.
|
|
|
|
|
*
|
2021-03-02 12:01:14 -08:00
|
|
|
* @param ScriptRequest Script Request where RegisterScriptFunctions()
|
2014-04-26 05:10:15 -07:00
|
|
|
* registers the functions.
|
|
|
|
|
*
|
|
|
|
|
* @sa GuiScriptingInit()
|
|
|
|
|
*/
|
2021-03-02 12:01:14 -08:00
|
|
|
void RegisterScriptFunctions(const ScriptRequest& rq);
|
2014-04-20 13:03:57 -07:00
|
|
|
}
|
|
|
|
|
|
2018-04-27 09:48:44 -07:00
|
|
|
#endif // INCLUDED_JSINTERFACE_L10N
|