diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-03 15:11:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 15:11:41 +0100 |
commit | d699ff6dc002526717837ac9621444c7bbcbf627 (patch) | |
tree | f16be73e8b0968507f38151db79ff4bb609421bd /editor | |
parent | cfd4433bbc26f8a1eb706695862b4c31dc82e594 (diff) | |
parent | b058f6b80c64015143cc3e42d31a86969f5d8cd5 (diff) |
Merge pull request #58705 from timothyqiu/ttr-vformat
Use `vformat()` instead of string concatenation inside `TTR()`
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_help.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index fe39f7acc9..39c8509148 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -477,9 +477,9 @@ void EditorHelp::_update_method_descriptions(const DocData::ClassDoc p_classdoc, class_desc->add_text(" "); class_desc->push_color(comment_color); if (p_classdoc.is_script_doc) { - class_desc->append_text(TTR("There is currently no description for this " + p_method_type + ".")); + class_desc->append_text(vformat(TTR("There is currently no description for this %s."), p_method_type)); } else { - class_desc->append_text(TTR("There is currently no description for this " + p_method_type + ". Please help us by [color=$color][url=$url]contributing one[/url][/color]!").replace("$url", CONTRIBUTE_URL).replace("$color", link_color_text)); + class_desc->append_text(vformat(TTR("There is currently no description for this %s. Please help us by [color=$color][url=$url]contributing one[/url][/color]!"), p_method_type).replace("$url", CONTRIBUTE_URL).replace("$color", link_color_text)); } class_desc->pop(); } |