You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Make --doctool locale aware
* Adds `indent(str)` to `String`:
* Indent the (multiline) string with the given indentation.
* This method is added in order to keep the translated XML correctly
indented.
* Moves the loading of tool/doc translation into
`editor/editor_translation.{h,cpp}`.
* This will be used from both `EditorSettings` and the doc tool from
`main`.
* Makes use of doc translation when generating XML class references, and
setup the translation locale based on `-l LOCALE` CLI parameter.
The XML class reference won't be translated if `-l LOCALE` parameter is
not given, or when it's `-l en`.
This commit is contained in:
@@ -1411,6 +1411,7 @@ static void _register_variant_builtin_methods() {
|
||||
bind_method(String, get_basename, sarray(), varray());
|
||||
bind_method(String, plus_file, sarray("file"), varray());
|
||||
bind_method(String, unicode_at, sarray("at"), varray());
|
||||
bind_method(String, indent, sarray("prefix"), varray());
|
||||
bind_method(String, dedent, sarray(), varray());
|
||||
bind_method(String, hash, sarray(), varray());
|
||||
bind_method(String, md5_text, sarray(), varray());
|
||||
|
||||
Reference in New Issue
Block a user