Merge pull request #68658 from Calinou/message-fix-periods
Fix periods in editor strings and messages
This commit is contained in:
commit
d7d34e4bc1
@ -1420,7 +1420,7 @@ bool Expression::_execute(const Array &p_inputs, Object *p_instance, Expression:
|
||||
Callable::CallError ce;
|
||||
Variant::call_utility_function(bifunc->func, &r_ret, (const Variant **)argp.ptr(), argp.size(), ce);
|
||||
if (ce.error != Callable::CallError::CALL_OK) {
|
||||
r_error_str = "Builtin Call Failed. " + Variant::get_call_error_text(bifunc->func, (const Variant **)argp.ptr(), argp.size(), ce);
|
||||
r_error_str = "Builtin call failed: " + Variant::get_call_error_text(bifunc->func, (const Variant **)argp.ptr(), argp.size(), ce);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3609,16 +3609,16 @@ String Variant::get_call_error_text(Object *p_base, const StringName &p_method,
|
||||
if (ce.error == Callable::CallError::CALL_ERROR_INVALID_ARGUMENT) {
|
||||
int errorarg = ce.argument;
|
||||
if (p_argptrs) {
|
||||
err_text = "Cannot convert argument " + itos(errorarg + 1) + " from " + Variant::get_type_name(p_argptrs[errorarg]->get_type()) + " to " + Variant::get_type_name(Variant::Type(ce.expected)) + ".";
|
||||
err_text = "Cannot convert argument " + itos(errorarg + 1) + " from " + Variant::get_type_name(p_argptrs[errorarg]->get_type()) + " to " + Variant::get_type_name(Variant::Type(ce.expected));
|
||||
} else {
|
||||
err_text = "Cannot convert argument " + itos(errorarg + 1) + " from [missing argptr, type unknown] to " + Variant::get_type_name(Variant::Type(ce.expected)) + ".";
|
||||
err_text = "Cannot convert argument " + itos(errorarg + 1) + " from [missing argptr, type unknown] to " + Variant::get_type_name(Variant::Type(ce.expected));
|
||||
}
|
||||
} else if (ce.error == Callable::CallError::CALL_ERROR_TOO_MANY_ARGUMENTS) {
|
||||
err_text = "Method expected " + itos(ce.argument) + " arguments, but called with " + itos(p_argcount) + ".";
|
||||
err_text = "Method expected " + itos(ce.argument) + " arguments, but called with " + itos(p_argcount);
|
||||
} else if (ce.error == Callable::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS) {
|
||||
err_text = "Method expected " + itos(ce.argument) + " arguments, but called with " + itos(p_argcount) + ".";
|
||||
err_text = "Method expected " + itos(ce.argument) + " arguments, but called with " + itos(p_argcount);
|
||||
} else if (ce.error == Callable::CallError::CALL_ERROR_INVALID_METHOD) {
|
||||
err_text = "Method not found.";
|
||||
err_text = "Method not found";
|
||||
} else if (ce.error == Callable::CallError::CALL_ERROR_INSTANCE_IS_NULL) {
|
||||
err_text = "Instance is null";
|
||||
} else if (ce.error == Callable::CallError::CALL_ERROR_METHOD_NOT_CONST) {
|
||||
|
@ -9186,7 +9186,7 @@ void RenderingDeviceVulkan::_free_pending_resources(int p_frame) {
|
||||
Texture *texture = &frames[p_frame].textures_to_dispose_of.front()->get();
|
||||
|
||||
if (texture->bound) {
|
||||
WARN_PRINT("Deleted a texture while it was bound..");
|
||||
WARN_PRINT("Deleted a texture while it was bound.");
|
||||
}
|
||||
vkDestroyImageView(device, texture->view, nullptr);
|
||||
if (texture->owner.is_null()) {
|
||||
|
@ -202,7 +202,7 @@ ReplicationEditor::ReplicationEditor() {
|
||||
|
||||
add_pick_button = memnew(Button);
|
||||
add_pick_button->connect("pressed", callable_mp(this, &ReplicationEditor::_pick_new_property));
|
||||
add_pick_button->set_text(TTR("Add property to sync.."));
|
||||
add_pick_button->set_text(TTR("Add property to sync..."));
|
||||
hb->add_child(add_pick_button);
|
||||
VSeparator *vs = memnew(VSeparator);
|
||||
vs->set_custom_minimum_size(Size2(30 * EDSCALE, 0));
|
||||
|
@ -802,7 +802,7 @@ void EditorExportPlatformAndroid::_get_permissions(const Ref<EditorExportPreset>
|
||||
}
|
||||
|
||||
void EditorExportPlatformAndroid::_write_tmp_manifest(const Ref<EditorExportPreset> &p_preset, bool p_give_internet, bool p_debug) {
|
||||
print_verbose("Building temporary manifest..");
|
||||
print_verbose("Building temporary manifest...");
|
||||
String manifest_text =
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
|
||||
"<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n"
|
||||
@ -2491,7 +2491,7 @@ void EditorExportPlatformAndroid::_clear_assets_directory() {
|
||||
|
||||
// Clear the APK assets directory
|
||||
if (da_res->dir_exists(APK_ASSETS_DIRECTORY)) {
|
||||
print_verbose("Clearing APK assets directory..");
|
||||
print_verbose("Clearing APK assets directory...");
|
||||
Ref<DirAccess> da_assets = DirAccess::open(APK_ASSETS_DIRECTORY);
|
||||
da_assets->erase_contents_recursive();
|
||||
da_res->remove(APK_ASSETS_DIRECTORY);
|
||||
@ -2499,7 +2499,7 @@ void EditorExportPlatformAndroid::_clear_assets_directory() {
|
||||
|
||||
// Clear the AAB assets directory
|
||||
if (da_res->dir_exists(AAB_ASSETS_DIRECTORY)) {
|
||||
print_verbose("Clearing AAB assets directory..");
|
||||
print_verbose("Clearing AAB assets directory...");
|
||||
Ref<DirAccess> da_assets = DirAccess::open(AAB_ASSETS_DIRECTORY);
|
||||
da_assets->erase_contents_recursive();
|
||||
da_res->remove(AAB_ASSETS_DIRECTORY);
|
||||
@ -2615,10 +2615,10 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
|
||||
}
|
||||
|
||||
if (use_custom_build) {
|
||||
print_verbose("Starting custom build..");
|
||||
print_verbose("Starting custom build...");
|
||||
//test that installed build version is alright
|
||||
{
|
||||
print_verbose("Checking build version..");
|
||||
print_verbose("Checking build version...");
|
||||
Ref<FileAccess> f = FileAccess::open("res://android/.build_version", FileAccess::READ);
|
||||
if (f.is_null()) {
|
||||
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), TTR("Trying to build from a custom built template, but no version info for it exists. Please reinstall from the 'Project' menu."));
|
||||
@ -2651,7 +2651,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
|
||||
_clear_assets_directory();
|
||||
_remove_copied_libs();
|
||||
if (!apk_expansion) {
|
||||
print_verbose("Exporting project files..");
|
||||
print_verbose("Exporting project files...");
|
||||
CustomExportData user_data;
|
||||
user_data.assets_directory = assets_directory;
|
||||
user_data.debug = p_debug;
|
||||
@ -2665,14 +2665,14 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
|
||||
fa->store_string(JSON::stringify(user_data.libs, "\t"));
|
||||
}
|
||||
} else {
|
||||
print_verbose("Saving apk expansion file..");
|
||||
print_verbose("Saving apk expansion file...");
|
||||
err = save_apk_expansion_file(p_preset, p_debug, p_path);
|
||||
if (err != OK) {
|
||||
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), TTR("Could not write expansion package file!"));
|
||||
return err;
|
||||
}
|
||||
}
|
||||
print_verbose("Storing command line flags..");
|
||||
print_verbose("Storing command line flags...");
|
||||
store_file_at_path(assets_directory + "/_cl_", command_line_flags);
|
||||
|
||||
print_verbose("Updating ANDROID_HOME environment to " + sdk_path);
|
||||
@ -2825,7 +2825,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
|
||||
return OK;
|
||||
}
|
||||
// This is the start of the Legacy build system
|
||||
print_verbose("Starting legacy build system..");
|
||||
print_verbose("Starting legacy build system...");
|
||||
if (p_debug) {
|
||||
src_apk = p_preset->get("custom_template/debug");
|
||||
} else {
|
||||
|
@ -4964,7 +4964,7 @@ void Animation::compress(uint32_t p_page_size, uint32_t p_fps, float p_split_tol
|
||||
|
||||
if (rollback || best_frame == FRAME_MAX) {
|
||||
// Commit the page if had to rollback or if no track was found
|
||||
print_animc("\tCommiting page..");
|
||||
print_animc("\tCommiting page...");
|
||||
|
||||
// The end frame for the page depends entirely on whether its valid or
|
||||
// no more keys were found.
|
||||
|
Loading…
Reference in New Issue
Block a user