godot/core/string/translation_server.cpp

/**************************************************************************/
/*  translation_server.cpp                                                */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "translation_server.h"

#include "core/config/project_settings.h"
#include "core/io/resource_loader.h"
#include "core/os/os.h"
#include "core/string/locales.h"

#ifdef TOOLS_ENABLED
#include "main/main.h"
#endif

Vector<TranslationServer::LocaleScriptInfo> TranslationServer::locale_script_info;

HashMap<String, String> TranslationServer::language_map;
HashMap<String, String> TranslationServer::script_map;
HashMap<String, String> TranslationServer::locale_rename_map;
HashMap<String, String> TranslationServer::country_name_map;
HashMap<String, String> TranslationServer::variant_map;
HashMap<String, String> TranslationServer::country_rename_map;

void TranslationServer::init_locale_info() {}

String TranslationServer::standardize_locale(const String &p_locale) const {}

String TranslationServer::_standardize_locale(const String &p_locale, bool p_add_defaults) const {}

int TranslationServer::compare_locales(const String &p_locale_a, const String &p_locale_b) const {}

String TranslationServer::get_locale_name(const String &p_locale) const {}

Vector<String> TranslationServer::get_all_languages() const {}

String TranslationServer::get_language_name(const String &p_language) const {}

Vector<String> TranslationServer::get_all_scripts() const {}

String TranslationServer::get_script_name(const String &p_script) const {}

Vector<String> TranslationServer::get_all_countries() const {}

String TranslationServer::get_country_name(const String &p_country) const {}

void TranslationServer::set_locale(const String &p_locale) {}

String TranslationServer::get_locale() const {}

String TranslationServer::get_fallback_locale() const {}

PackedStringArray TranslationServer::get_loaded_locales() const {}

void TranslationServer::add_translation(const Ref<Translation> &p_translation) {}

void TranslationServer::remove_translation(const Ref<Translation> &p_translation) {}

Ref<Translation> TranslationServer::get_translation_object(const String &p_locale) {}

void TranslationServer::clear() {}

StringName TranslationServer::translate(const StringName &p_message, const StringName &p_context) const {}

StringName TranslationServer::translate_plural(const StringName &p_message, const StringName &p_message_plural, int p_n, const StringName &p_context) const {}

TranslationServer *TranslationServer::singleton =;

bool TranslationServer::_load_translations(const String &p_from) {}

bool TranslationServer::has_domain(const StringName &p_domain) const {}

Ref<TranslationDomain> TranslationServer::get_or_add_domain(const StringName &p_domain) {}

void TranslationServer::remove_domain(const StringName &p_domain) {}

void TranslationServer::setup() {}

String TranslationServer::get_tool_locale() {}

StringName TranslationServer::tool_translate(const StringName &p_message, const StringName &p_context) const {}

StringName TranslationServer::tool_translate_plural(const StringName &p_message, const StringName &p_message_plural, int p_n, const StringName &p_context) const {}

StringName TranslationServer::property_translate(const StringName &p_message, const StringName &p_context) const {}

StringName TranslationServer::doc_translate(const StringName &p_message, const StringName &p_context) const {}

StringName TranslationServer::doc_translate_plural(const StringName &p_message, const StringName &p_message_plural, int p_n, const StringName &p_context) const {}

bool TranslationServer::is_pseudolocalization_enabled() const {}

void TranslationServer::set_pseudolocalization_enabled(bool p_enabled) {}

void TranslationServer::reload_pseudolocalization() {}

StringName TranslationServer::pseudolocalize(const StringName &p_message) const {}

#ifdef TOOLS_ENABLED
void TranslationServer::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {}
#endif // TOOLS_ENABLED

void TranslationServer::_bind_methods() {}

void TranslationServer::load_translations() {}

TranslationServer::TranslationServer() {}