Skip to content

Commit f3344b7

Browse files
committed
Fix incorrect order: TTR(vformat instead of vformat(TTR
1 parent 76fa7b2 commit f3344b7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

editor/editor_help_search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ TreeItem *EditorHelpSearch::Runner::_create_class_item(TreeItem *p_parent, const
11661166
if (p_matching_keyword.is_empty()) {
11671167
item->set_text(0, p_doc->name);
11681168
} else {
1169-
item->set_text(0, p_doc->name + " - " + TTR(vformat("Matches the \"%s\" keyword.", p_matching_keyword)));
1169+
item->set_text(0, p_doc->name + " - " + vformat(TTR("Matches the \"%s\" keyword."), p_matching_keyword));
11701170
}
11711171

11721172
if (!term.is_empty()) {
@@ -1272,7 +1272,7 @@ TreeItem *EditorHelpSearch::Runner::_create_member_item(TreeItem *p_parent, cons
12721272
text = p_class_name + "." + p_text;
12731273
}
12741274
if (!p_matching_keyword.is_empty()) {
1275-
text += " - " + TTR(vformat("Matches the \"%s\" keyword.", p_matching_keyword));
1275+
text += " - " + vformat(TTR("Matches the \"%s\" keyword."), p_matching_keyword);
12761276
}
12771277
item->set_text(0, text);
12781278

editor/export/editor_export_platform_pc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ Error EditorExportPlatformPC::export_project_data(const Ref<EditorExportPreset>
223223
if (err == OK) {
224224
err = da->copy_dir(src_path, target_path, -1, true);
225225
if (err != OK) {
226-
add_message(EXPORT_MESSAGE_ERROR, TTR("GDExtension"), TTR(vformat("Failed to copy shared object \"%s\".", src_path)));
226+
add_message(EXPORT_MESSAGE_ERROR, TTR("GDExtension"), vformat(TTR("Failed to copy shared object \"%s\"."), src_path));
227227
}
228228
}
229229
} else {
230230
err = da->copy(src_path, target_path);
231231
if (err != OK) {
232-
add_message(EXPORT_MESSAGE_ERROR, TTR("GDExtension"), TTR(vformat("Failed to copy shared object \"%s\".", src_path)));
232+
add_message(EXPORT_MESSAGE_ERROR, TTR("GDExtension"), vformat(TTR("Failed to copy shared object \"%s\"."), src_path));
233233
}
234234
if (err == OK) {
235235
err = sign_shared_object(p_preset, p_debug, target_path);

modules/gridmap/editor/grid_map_editor_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,9 +1462,9 @@ GridMapEditor::GridMapEditor() {
14621462
floor->set_max(32767);
14631463
floor->set_step(1);
14641464
floor->set_tooltip_text(
1465-
TTR(vformat("Change Grid Floor:\nPrevious Plane (%s)\nNext Plane (%s)",
1465+
vformat(TTR("Change Grid Floor:\nPrevious Plane (%s)\nNext Plane (%s)"),
14661466
ED_GET_SHORTCUT("grid_map/previous_floor")->get_as_text(),
1467-
ED_GET_SHORTCUT("grid_map/next_floor")->get_as_text())));
1467+
ED_GET_SHORTCUT("grid_map/next_floor")->get_as_text()));
14681468
toolbar->add_child(floor);
14691469
floor->get_line_edit()->add_theme_constant_override("minimum_character_width", 2);
14701470
floor->get_line_edit()->set_context_menu_enabled(false);

0 commit comments

Comments
 (0)