From c020755f220021ec66547a00935344848d7adca4 Mon Sep 17 00:00:00 2001 From: Peter Dell Date: Sat, 10 Sep 2022 16:49:16 +0200 Subject: [PATCH] Make "assembler/compiler" a variable in messages --- com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts.properties | 6 +++--- com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_de.properties | 4 ++-- com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_pl.properties | 6 +++--- .../wudsn/ide/lng/editor/LanguageEditorCompileCommand.java | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts.properties b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts.properties index f5d1df81..f5f4c731 100644 --- a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts.properties +++ b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts.properties @@ -89,7 +89,7 @@ PREFERENCES_ITALIC_LABEL=&Italic PREFERENCES_DOWNLOAD_LINK=Download PREFERENCES_DOWNLOAD_LINK_TOOL_TIP=Open download page {0} -PREFERENCES_COMPILER_TARGET_LABEL=&TOC_COMPILER_SUPPORTED_TARGETS_LABELt +PREFERENCES_COMPILER_TARGET_LABEL=&Target PREFERENCES_COMPILER_EXECUTABLE_PATH_LABEL=Path to &Compiler PREFERENCES_COMPILER_HARDWARE_ACTIVE_LABEL=Use for {0} PREFERENCES_COMPILER_DEFAULT_PARAMETERS_LABEL=&Default Parameters @@ -165,10 +165,10 @@ TOC_TARGET_NAME_LABEL=Target TOC_TARGET_LANGUAGE_LABEL=Language TOC_TARGET_OPCODE_LABEL=Opcode -MESSAGE_E100=Path to '{0}' {1} executable is not set in the '{2}' preferences. +MESSAGE_E100=Path to {0} '{1}' executable is not set in the '{2}' preferences. MESSAGE_E101=The {0} '{1}' does not specify default parameters. MESSAGE_E102=The {0} '{1}' does not specify help documents. -MESSAGE_E103=Path to '{0}' {1} executable in the '{2}' preferences points to non-existing file '{3}'. +MESSAGE_E103=Path to {0} '{1}' executable in the '{2}' preferences points to non-existing file '{3}'. MESSAGE_E104=Output file extension must be set in the preferences of {0} '{1}' or via the annotation '{2}'. MESSAGE_E105=Cannot execute {0} process '{1}' in working directory '{2}'. System error: {3} MESSAGE_E106=Output file '{0}' cannot be opened for writing. End all applications which may keep the file open. diff --git a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_de.properties b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_de.properties index ae1aef52..453c58b6 100644 --- a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_de.properties +++ b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_de.properties @@ -163,10 +163,10 @@ TOC_TARGET_NAME_LABEL=Ziel TOC_TARGET_LANGUAGE_LABEL=Sprache TOC_TARGET_OPCODE_LABEL=Opcode -MESSAGE_E100=Pfad zur ausführbaren Datei des Kompilers '{0}' ist in den '{1}' Voreinstellungen nicht angegeben. +MESSAGE_E100=Pfad zur ausführbaren Datei des {0}s '{1}' ist in den '{2}' Voreinstellungen nicht angegeben. MESSAGE_E101=Der {0} '{1}' definiert keine Standardparameter. MESSAGE_E102=Der {0} '{1}' definiert keine Hilfedokumentes. -MESSAGE_E103=Pfad zur ausführbaren Datei des Kompilers '{0}' in den Voreinstellungen verweist auf die nicht existierende Datei '{1}'. +MESSAGE_E103=Pfad zur ausführbaren Datei des {0}s '{1}' in den Voreinstellungen verweist auf die nicht existierende Datei '{2}'. MESSAGE_E104=Ausgabe-Dateierweiterung muss in den Voreinstellungen des Kompilers '{0}' oder mit der Annotation '{1}' angegeben werden. MESSAGE_E105=Kompilerprozess '{0}' kann im Arbeitsverzeichnis '{1}' nicht ausgeführt werden. Systemfehler: {2} MESSAGE_E106=Ausgabe-Datei '{0}' kann nicht zum Schreiben geöffnet werden. Beenden Sie alle Anwendungen welche die Datei geöffnet haben könnten. diff --git a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_pl.properties b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_pl.properties index 0cb891cb..6c866637 100644 --- a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_pl.properties +++ b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/Texts_pl.properties @@ -89,7 +89,7 @@ PREFERENCES_ITALIC_LABEL=&Italic PREFERENCES_DOWNLOAD_LINK=Download PREFERENCES_DOWNLOAD_LINK_TOOL_TIP=Open download page {0} -PREFERENCES_COMPILER_TARGET_LABEL=&TOC_COMPILER_SUPPORTED_TARGETS_LABELt +PREFERENCES_COMPILER_TARGET_LABEL=&Target PREFERENCES_COMPILER_EXECUTABLE_PATH_LABEL=Path to &Compiler PREFERENCES_COMPILER_HARDWARE_ACTIVE_LABEL=Use for {0} PREFERENCES_COMPILER_DEFAULT_PARAMETERS_LABEL=&Default Parameters @@ -166,10 +166,10 @@ TOC_TARGET_NAME_LABEL=Cel TOC_TARGET_LANGUAGE_LABEL=J\u0119zyk TOC_TARGET_OPCODE_LABEL=Kod operacji -MESSAGE_E100=Path to '{0}' {1} executable is not set in the '{2}' preferences. +MESSAGE_E100=Path to {0} '{1}' executable is not set in the '{2}' preferences. MESSAGE_E101=The {0} '{1}' does not specify default parameters. MESSAGE_E102=The {0} '{1}' does not specify help documents. -MESSAGE_E103=Path to '{0}' {1} executable in the '{2}' preferences points to non-existing file '{3}'. +MESSAGE_E103=Path to {0} '{1}' executable in the '{2}' preferences points to non-existing file '{3}'. MESSAGE_E104=Output file extension must be set in the preferences of {0} '{1}' or via the annotation '{2}'. MESSAGE_E105=Cannot execute {0} process '{1}' in working directory '{2}'. System error: {3} MESSAGE_E106=Output file '{0}' cannot be opened for writing. End all applications which may keep the file open. diff --git a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/editor/LanguageEditorCompileCommand.java b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/editor/LanguageEditorCompileCommand.java index 59a1bece..a5627651 100644 --- a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/editor/LanguageEditorCompileCommand.java +++ b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/editor/LanguageEditorCompileCommand.java @@ -252,14 +252,14 @@ final class LanguageEditorCompileCommand { String compilerExecutablePath = languageEditor.getCompilerPreferences().getCompilerExecutablePathOrDefault(); if (StringUtility.isEmpty(compilerExecutablePath)) { - // ERROR: Path to '{0}' {1} executable is not set in the '{2}' preferences. + // ERROR: Path to {0} '{1}' executable is not set in the '{2}' preferences. createMainSourceFileMessage(files, IMarker.SEVERITY_ERROR, Texts.MESSAGE_E100, compilerDefinitionText, compilerDefinition.getName(), compilerPreferencesText); return false; } File compilerExecutableFile = new File(compilerExecutablePath); if (!compilerExecutableFile.exists()) { - // ERROR: Path to '{0}' {1} executable in the {2} preferences points to + // ERROR: Path to {0} '{1}' executable in the '{2}' preferences points to // non-existing file '{3}'. createMainSourceFileMessage(files, IMarker.SEVERITY_ERROR, Texts.MESSAGE_E103, compilerDefinitionText, compilerDefinition.getName(), compilerPreferencesText, compilerExecutablePath);