You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #102049 from timothyqiu/editor-i18n
Fix several i18n issues in editor
This commit is contained in:
@@ -1911,7 +1911,9 @@ CodeTextEditor::CodeTextEditor() {
|
|||||||
zoom_button->set_flat(true);
|
zoom_button->set_flat(true);
|
||||||
zoom_button->set_v_size_flags(SIZE_EXPAND | SIZE_SHRINK_CENTER);
|
zoom_button->set_v_size_flags(SIZE_EXPAND | SIZE_SHRINK_CENTER);
|
||||||
zoom_button->set_tooltip_text(
|
zoom_button->set_tooltip_text(
|
||||||
TTR("Zoom factor") + "\n" + vformat(TTR("%sMouse wheel, %s/%s: Finetune\n%s: Reset"), keycode_get_string((Key)KeyModifierMask::CMD_OR_CTRL), ED_GET_SHORTCUT("script_editor/zoom_in")->get_as_text(), ED_GET_SHORTCUT("script_editor/zoom_out")->get_as_text(), ED_GET_SHORTCUT("script_editor/reset_zoom")->get_as_text()));
|
TTR("Zoom factor") + "\n" +
|
||||||
|
// TRANSLATORS: The placeholders are keyboard shortcuts. The first one is in the form of "Ctrl+"/"Cmd+".
|
||||||
|
vformat(TTR("%sMouse wheel, %s/%s: Finetune\n%s: Reset"), keycode_get_string((Key)KeyModifierMask::CMD_OR_CTRL), ED_GET_SHORTCUT("script_editor/zoom_in")->get_as_text(), ED_GET_SHORTCUT("script_editor/zoom_out")->get_as_text(), ED_GET_SHORTCUT("script_editor/reset_zoom")->get_as_text()));
|
||||||
zoom_button->set_text("100 %");
|
zoom_button->set_text("100 %");
|
||||||
|
|
||||||
PopupMenu *zoom_menu = zoom_button->get_popup();
|
PopupMenu *zoom_menu = zoom_button->get_popup();
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ void EditorPropertyArray::update_property() {
|
|||||||
} else {
|
} else {
|
||||||
edit->set_text_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
edit->set_text_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||||
edit->set_button_icon(Ref<Texture2D>());
|
edit->set_button_icon(Ref<Texture2D>());
|
||||||
edit->set_text(vformat(TTR("%s (size %s)"), array_type_name, itos(size)));
|
edit->set_text(vformat(TTR("%s (size %d)"), array_type_name, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool unfolded = get_edited_object()->editor_is_section_unfolded(get_edited_property());
|
bool unfolded = get_edited_object()->editor_is_section_unfolded(get_edited_property());
|
||||||
|
|||||||
@@ -439,6 +439,7 @@ TreeItem *EditorSettingsDialog::_create_shortcut_treeitem(TreeItem *p_parent, co
|
|||||||
|
|
||||||
TreeItem *event_item = shortcuts->create_item(shortcut_item);
|
TreeItem *event_item = shortcuts->create_item(shortcut_item);
|
||||||
|
|
||||||
|
// TRANSLATORS: This is the label for the main input event of a shortcut.
|
||||||
event_item->set_text(0, shortcut_item->get_child_count() == 1 ? TTRC("Primary") : "");
|
event_item->set_text(0, shortcut_item->get_child_count() == 1 ? TTRC("Primary") : "");
|
||||||
event_item->set_text(1, ie->as_text());
|
event_item->set_text(1, ie->as_text());
|
||||||
event_item->set_auto_translate_mode(1, AUTO_TRANSLATE_MODE_DISABLED);
|
event_item->set_auto_translate_mode(1, AUTO_TRANSLATE_MODE_DISABLED);
|
||||||
|
|||||||
@@ -303,6 +303,7 @@ void FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory
|
|||||||
file_item->set_icon(0, _get_tree_item_icon(!file_info.import_broken, file_info.type, file_info.icon_path));
|
file_item->set_icon(0, _get_tree_item_icon(!file_info.import_broken, file_info.type, file_info.icon_path));
|
||||||
if (da->is_link(file_metadata)) {
|
if (da->is_link(file_metadata)) {
|
||||||
file_item->set_icon_overlay(0, get_editor_theme_icon(SNAME("LinkOverlay")));
|
file_item->set_icon_overlay(0, get_editor_theme_icon(SNAME("LinkOverlay")));
|
||||||
|
// TRANSLATORS: This is a tooltip for a file that is a symbolic link to another file.
|
||||||
file_item->set_tooltip_text(0, vformat(TTR("Link to: %s"), da->read_link(file_metadata)));
|
file_item->set_tooltip_text(0, vformat(TTR("Link to: %s"), da->read_link(file_metadata)));
|
||||||
}
|
}
|
||||||
file_item->set_icon_max_width(0, icon_size);
|
file_item->set_icon_max_width(0, icon_size);
|
||||||
|
|||||||
@@ -3529,7 +3529,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
|
|||||||
src_apk = find_export_template("android_release.apk");
|
src_apk = find_export_template("android_release.apk");
|
||||||
}
|
}
|
||||||
if (src_apk.is_empty()) {
|
if (src_apk.is_empty()) {
|
||||||
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), vformat(TTR("%s export template not found: \"%s\"."), (p_debug ? "Debug" : "Release"), src_apk));
|
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), vformat(p_debug ? TTR("Debug export template not found: \"%s\".") : TTR("Release export template not found: \"%s\"."), src_apk));
|
||||||
return ERR_FILE_NOT_FOUND;
|
return ERR_FILE_NOT_FOUND;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user