ExportDialog: Make error messages translatable

Also fix missing newlines that caused #24202.
This commit is contained in:
Rémi Verschelde
2019-01-21 18:34:53 +01:00
parent 26cf4fed6e
commit 2323464f5e
6 changed files with 48 additions and 65 deletions

View File

@@ -378,7 +378,7 @@ String EditorExportPlatform::find_export_template(String template_file_name, Str
// Not found
if (err) {
*err += "No export template found at \"" + template_path + "\".";
*err += TTR("No export template found at the expected path:") + "\n" + template_path + "\n";
}
return String();
}
@@ -1404,12 +1404,12 @@ bool EditorExportPlatformPC::can_export(const Ref<EditorExportPreset> &p_preset,
if (!FileAccess::exists(custom_debug_binary)) {
dvalid = false;
err = "Custom debug binary not found.\n";
err += TTR("Custom debug template not found.") + "\n";
}
if (!FileAccess::exists(custom_release_binary)) {
rvalid = false;
err += "Custom release binary not found.\n";
err += TTR("Custom release template not found.") + "\n";
}
if (dvalid || rvalid)