mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
This commit is contained in:
parent
74907876d3
commit
97ee05e9b7
53 changed files with 220 additions and 197 deletions
|
@ -6050,10 +6050,10 @@ String DTR(const String &p_text, const String &p_context) {
|
|||
const String text = p_text.dedent().strip_edges();
|
||||
|
||||
if (TranslationServer::get_singleton()) {
|
||||
return String(TranslationServer::get_singleton()->doc_translate(text, p_context)).replace("$DOCS_URL", VERSION_DOCS_URL);
|
||||
return String(TranslationServer::get_singleton()->doc_translate(text, p_context)).replace("$DOCS_URL", GODOT_VERSION_DOCS_URL);
|
||||
}
|
||||
|
||||
return text.replace("$DOCS_URL", VERSION_DOCS_URL);
|
||||
return text.replace("$DOCS_URL", GODOT_VERSION_DOCS_URL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -6067,14 +6067,14 @@ String DTRN(const String &p_text, const String &p_text_plural, int p_n, const St
|
|||
const String text_plural = p_text_plural.dedent().strip_edges();
|
||||
|
||||
if (TranslationServer::get_singleton()) {
|
||||
return String(TranslationServer::get_singleton()->doc_translate_plural(text, text_plural, p_n, p_context)).replace("$DOCS_URL", VERSION_DOCS_URL);
|
||||
return String(TranslationServer::get_singleton()->doc_translate_plural(text, text_plural, p_n, p_context)).replace("$DOCS_URL", GODOT_VERSION_DOCS_URL);
|
||||
}
|
||||
|
||||
// Return message based on English plural rule if translation is not possible.
|
||||
if (p_n == 1) {
|
||||
return text.replace("$DOCS_URL", VERSION_DOCS_URL);
|
||||
return text.replace("$DOCS_URL", GODOT_VERSION_DOCS_URL);
|
||||
}
|
||||
return text_plural.replace("$DOCS_URL", VERSION_DOCS_URL);
|
||||
return text_plural.replace("$DOCS_URL", GODOT_VERSION_DOCS_URL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue