1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Added translation support to Godot

included is a French translation!
This commit is contained in:
Juan Linietsky
2016-05-27 19:58:28 -03:00
parent 8be2fabbe5
commit bccdc11dde
10 changed files with 5847 additions and 13 deletions

View File

@@ -672,9 +672,11 @@ void TranslationServer::set_tool_translation(const Ref<Translation>& p_translati
StringName TranslationServer::tool_translate(const StringName& p_message) const {
if (tool_translation.is_valid()) {
StringName r = tool_translation->tr(p_message);
if (r)
StringName r = tool_translation->get_message(p_message);
if (r) {
return r;
}
}
return p_message;