externalized strings
authorVictor Kirhenshtein <victor@netxms.org>
Wed, 18 May 2016 17:56:25 +0000 (20:56 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Wed, 18 May 2016 17:56:25 +0000 (20:56 +0300)
36 files changed:
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle.properties
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle_cs.properties
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle_de.properties
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle_es.properties
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle_fr.properties
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle_ru.properties
src/java/netxms-eclipse/NXSL/OSGI-INF/l10n/bundle_zh_CN.properties
src/java/netxms-eclipse/NXSL/plugin.xml
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/Messages.java
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_cs.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_de.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_es.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_fr.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_ru.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_zh_CN.properties
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/views/ScriptEditorView.java
src/java/netxms-eclipse/NXSL/src/org/netxms/ui/eclipse/nxsl/widgets/ScriptEditor.java
webui/webapp/NXSL/OSGI-INF/l10n/bundle.properties
webui/webapp/NXSL/OSGI-INF/l10n/bundle_cs.properties
webui/webapp/NXSL/OSGI-INF/l10n/bundle_de.properties
webui/webapp/NXSL/OSGI-INF/l10n/bundle_es.properties
webui/webapp/NXSL/OSGI-INF/l10n/bundle_fr.properties
webui/webapp/NXSL/OSGI-INF/l10n/bundle_ru.properties
webui/webapp/NXSL/OSGI-INF/l10n/bundle_zh_CN.properties
webui/webapp/NXSL/plugin.xml
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/Messages.java
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_cs.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_de.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_es.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_fr.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_ru.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/messages_zh_CN.properties
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/views/ScriptEditorView.java
webui/webapp/NXSL/src/org/netxms/ui/eclipse/nxsl/widgets/ScriptEditor.java

index 1254ecc..c4e47d6 100644 (file)
@@ -1,8 +1,17 @@
 #Properties file for org.netxms.ui.eclipse.nxsl
 #Properties file for org.netxms.ui.eclipse.nxsl
-view.name.ScriptLibrary = Script Library
-view.name.EditScript = Edit Script
-command.description.ScriptLibrary = Open Script Library
-command.name.ScriptLibrary = Script Library
-actionSet.label.ScriptLibrary = Script Library
-action.label.ScriptLibrary = Script Library
-action.tooltip.ScriptLibrary = Open Script Library
\ No newline at end of file
+view.name.EditScript=Edit Script
+view.name.ScriptExecutor=Script Executor
+view.name.ScriptLibrary=Script Library
+command.description.ScriptLibrary=Open script library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
+command.name.ScriptLibrary = Script library
+command.name.ShowLineNumbers=Show line numbers
+actionSet.label.ScriptLibrary = Script library
+action.label.ScriptLibrary = Script library
+action.tooltip.ScriptLibrary = Open script library
index ead3f4d..0208a5b 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=Knihovna skript\u016F
 action.tooltip.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
 actionSet.label.ScriptLibrary=Knihovna skript\u016F
 command.description.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
 action.tooltip.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
 actionSet.label.ScriptLibrary=Knihovna skript\u016F
 command.description.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=Knihovna skript\u016F
 command.name.ScriptLibrary=Knihovna skript\u016F
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=Upravit skript
 view.name.EditScript=Upravit skript
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=Knihovna skript\u016F
 view.name.ScriptLibrary=Knihovna skript\u016F
index 3db1951..caa1a82 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary= Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary= Script Library
 command.name.ScriptLibrary= Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript= Edit Script
 view.name.EditScript= Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary= Script Library
 view.name.ScriptLibrary= Script Library
index 709eee5..339ad90 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=Script Library
 command.name.ScriptLibrary=Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=Edit Script
 view.name.EditScript=Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=Script Library
 view.name.ScriptLibrary=Script Library
index 3db1951..caa1a82 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary= Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary= Script Library
 command.name.ScriptLibrary= Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript= Edit Script
 view.name.EditScript= Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary= Script Library
 view.name.ScriptLibrary= Script Library
index b861190..d65b234 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043
 action.tooltip.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 actionSet.label.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 command.description.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 action.tooltip.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 actionSet.label.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 command.description.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 command.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442
 view.name.EditScript=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 view.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
index 709eee5..339ad90 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=Script Library
 command.name.ScriptLibrary=Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=Edit Script
 view.name.EditScript=Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=Script Library
 view.name.ScriptLibrary=Script Library
index ee0958a..e88fe33 100644 (file)
@@ -25,7 +25,7 @@
             class="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
             icon="icons/script_exec.gif"
             id="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
             class="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
             icon="icons/script_exec.gif"
             id="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
-            name="Script Executor"
+            name="%view.name.ScriptExecutor"
             restorable="false">
       </view>
    </extension>
             restorable="false">
       </view>
    </extension>
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
-            name="Execute server script">
+            name="%command.name.ExecuteServerScript">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.execute_script"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.execute_script"
-            name="Execute">
+            name="%command.name.Execute">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save"
-            name="Save">
+            name="%command.name.Save">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save_as"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save_as"
-            name="Save as">
+            name="%command.name.SaveAs">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.clear_output"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.clear_output"
-            name="Clear output">
+            name="%command.name.ClearOutput">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.compile"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.compile"
-            name="Compile">
+            name="%command.name.Compile">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.showLineNumbers"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.showLineNumbers"
-            name="Show line numbers">
+            name="%command.name.ShowLineNumbers">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.goToLine"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.goToLine"
-            name="Go to line">
+            name="%command.name.GoToLine">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.cut"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.cut"
          <command
                commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
                icon="icons/script_exec.gif"
          <command
                commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
                icon="icons/script_exec.gif"
-               label="Execute server script"
+               label="%command.name.ExecuteServerScript"
                style="push">
             <visibleWhen
                   checkEnabled="false">
                style="push">
             <visibleWhen
                   checkEnabled="false">
index 0adff82..0ec9584 100644 (file)
@@ -21,14 +21,32 @@ public class Messages extends NLS
    public static String SaveScriptDialog_SaveAs;
    public static String SaveScriptDialog_Title;
    public static String ScriptEditDialog_Title;
    public static String SaveScriptDialog_SaveAs;
    public static String SaveScriptDialog_Title;
    public static String ScriptEditDialog_Title;
+   public static String ScriptEditor_HideMessage;
+   public static String ScriptEditor_Hints;
+   public static String ScriptEditorView_CannotCompileScript;
+   public static String ScriptEditorView_CompilationErrors;
+   public static String ScriptEditorView_Compile;
+   public static String ScriptEditorView_CompileScript;
+   public static String ScriptEditorView_Copy;
+   public static String ScriptEditorView_Cut;
+   public static String ScriptEditorView_EnterLineNumber;
    public static String ScriptEditorView_Error;
    public static String ScriptEditorView_Error;
+   public static String ScriptEditorView_GoToLine;
+   public static String ScriptEditorView_GoToLine_DlgTitle;
+   public static String ScriptEditorView_InvalidNumber;
    public static String ScriptEditorView_LoadJobError;
    public static String ScriptEditorView_LoadJobTitle;
    public static String ScriptEditorView_LoadJobError;
    public static String ScriptEditorView_LoadJobTitle;
+   public static String ScriptEditorView_NumberOutOfRange;
    public static String ScriptEditorView_PartName;
    public static String ScriptEditorView_PartName;
+   public static String ScriptEditorView_Paste;
    public static String ScriptEditorView_Save;
    public static String ScriptEditorView_SaveErrorMessage;
    public static String ScriptEditorView_SaveJobError;
    public static String ScriptEditorView_SaveJobTitle;
    public static String ScriptEditorView_Save;
    public static String ScriptEditorView_SaveErrorMessage;
    public static String ScriptEditorView_SaveJobError;
    public static String ScriptEditorView_SaveJobTitle;
+   public static String ScriptEditorView_ScriptCompilationFailed;
+   public static String ScriptEditorView_ScriptCompiledSuccessfully;
+   public static String ScriptEditorView_SelectAll;
+   public static String ScriptEditorView_ShowLineNumbers;
    public static String ScriptExecutor_Clear;
    public static String ScriptExecutor_ClearOutput;
    public static String ScriptExecutor_Error;
    public static String ScriptExecutor_Clear;
    public static String ScriptExecutor_ClearOutput;
    public static String ScriptExecutor_Error;
index 3773da2..0a7ace4 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3283379..14f400b 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Chyba
 ScriptEditorView_Error=Chyba
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Ze serveru nelze na\u010D\u00EDst skript s ID %d
 ScriptEditorView_LoadJobTitle=Na\u010D\u00EDt\u00E1n\u00ED skriptu [%d]
 ScriptEditorView_LoadJobError=Ze serveru nelze na\u010D\u00EDst skript s ID %d
 ScriptEditorView_LoadJobTitle=Na\u010D\u00EDt\u00E1n\u00ED skriptu [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Editovat skript - %s
 ScriptEditorView_PartName=Editovat skript - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Ulo\u017Eit
 ScriptEditorView_SaveErrorMessage=Nelze ulo\u017Eit skript\: %s
 ScriptEditorView_SaveJobError=Nelze ulo\u017Eit skript do datab\u00E1ze
 ScriptEditorView_SaveJobTitle=Ukl\u00E1d\u00E1n\u00ED skriptu do knihovny
 ScriptEditorView_Save=&Ulo\u017Eit
 ScriptEditorView_SaveErrorMessage=Nelze ulo\u017Eit skript\: %s
 ScriptEditorView_SaveJobError=Nelze ulo\u017Eit skript do datab\u00E1ze
 ScriptEditorView_SaveJobTitle=Ukl\u00E1d\u00E1n\u00ED skriptu do knihovny
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 891c065..9b8c092 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c
 SaveScriptDialog_SaveAs=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c &\u043a\u0430\u043a...
 SaveScriptDialog_Title=\u041d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f
 ScriptEditDialog_Title=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430
 SaveScriptDialog_SaveAs=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c &\u043a\u0430\u043a...
 SaveScriptDialog_Title=\u041d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f
 ScriptEditDialog_Title=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=\u041e\u0448\u0438\u0431\u043a\u0430
 ScriptEditorView_Error=\u041e\u0448\u0438\u0431\u043a\u0430
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043a\u043e\u0434\u043e\u043c %d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430
 ScriptEditorView_LoadJobTitle=\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 [%d]
 ScriptEditorView_LoadJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043a\u043e\u0434\u043e\u043c %d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430
 ScriptEditorView_LoadJobTitle=\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 - %s
 ScriptEditorView_PartName=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c
 ScriptEditorView_SaveErrorMessage=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442: %s
 ScriptEditorView_SaveJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445
 ScriptEditorView_SaveJobTitle=\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435
 ScriptEditorView_Save=&\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c
 ScriptEditorView_SaveErrorMessage=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442: %s
 ScriptEditorView_SaveJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445
 ScriptEditorView_SaveJobTitle=\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434
 ScriptExecutor_ClearOutput=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434
 ScriptExecutor_Error=\u041e\u0448\u0438\u0431\u043a\u0430
 ScriptExecutor_Clear=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434
 ScriptExecutor_ClearOutput=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434
 ScriptExecutor_Error=\u041e\u0448\u0438\u0431\u043a\u0430
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index cb3589f..7b1a295 100644 (file)
@@ -1,6 +1,6 @@
 /**
  * NetXMS - open source network management system
 /**
  * NetXMS - open source network management system
- * Copyright (C) 2003-2015 Victor Kirhenshtein
+ * Copyright (C) 2003-2016 Victor Kirhenshtein
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  */
 package org.netxms.ui.eclipse.nxsl.views;
 
  */
 package org.netxms.ui.eclipse.nxsl.views;
 
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.PropertyResourceBundle;
-import java.util.ResourceBundle;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IMenuListener;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IMenuListener;
@@ -111,8 +107,8 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                scriptId = Long.parseLong(site.getSecondaryId());
                
                IDialogSettings settings = Activator.getDefault().getDialogSettings();
                scriptId = Long.parseLong(site.getSecondaryId());
                
                IDialogSettings settings = Activator.getDefault().getDialogSettings();
-               if (settings.get("ScriptEditor.showLineNumbers") != null)
-                  showLineNumbers = settings.getBoolean("ScriptEditor.showLineNumbers");
+               if (settings.get("ScriptEditor.showLineNumbers") != null) //$NON-NLS-1$
+                  showLineNumbers = settings.getBoolean("ScriptEditor.showLineNumbers"); //$NON-NLS-1$
        }
 
        /* (non-Javadoc)
        }
 
        /* (non-Javadoc)
@@ -216,7 +212,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       actionSave.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.save"); //$NON-NLS-1$
       handlerService.activateHandler(actionSave.getActionDefinitionId(), new ActionHandler(actionSave));
                
       actionSave.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.save"); //$NON-NLS-1$
       handlerService.activateHandler(actionSave.getActionDefinitionId(), new ActionHandler(actionSave));
                
-               actionCompile = new Action("&Compile", Activator.getImageDescriptor("icons/compile.gif")) {
+               actionCompile = new Action(Messages.get().ScriptEditorView_Compile, Activator.getImageDescriptor("icons/compile.gif")) { //$NON-NLS-2$
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -226,7 +222,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       actionCompile.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.compile"); //$NON-NLS-1$
       handlerService.activateHandler(actionCompile.getActionDefinitionId(), new ActionHandler(actionCompile));
       
       actionCompile.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.compile"); //$NON-NLS-1$
       handlerService.activateHandler(actionCompile.getActionDefinitionId(), new ActionHandler(actionCompile));
       
-      actionShowLineNumbers = new Action("Show line &numbers", Action.AS_CHECK_BOX) {
+      actionShowLineNumbers = new Action(Messages.get().ScriptEditorView_ShowLineNumbers, Action.AS_CHECK_BOX) {
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -238,7 +234,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       actionShowLineNumbers.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.showLineNumbers"); //$NON-NLS-1$
       handlerService.activateHandler(actionShowLineNumbers.getActionDefinitionId(), new ActionHandler(actionShowLineNumbers));
       
       actionShowLineNumbers.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.showLineNumbers"); //$NON-NLS-1$
       handlerService.activateHandler(actionShowLineNumbers.getActionDefinitionId(), new ActionHandler(actionShowLineNumbers));
       
-      actionGoToLine = new Action("&Go to line...") {
+      actionGoToLine = new Action(Messages.get().ScriptEditorView_GoToLine) {
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -248,7 +244,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       actionGoToLine.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.goToLine"); //$NON-NLS-1$
       handlerService.activateHandler(actionGoToLine.getActionDefinitionId(), new ActionHandler(actionGoToLine));
       
       actionGoToLine.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.goToLine"); //$NON-NLS-1$
       handlerService.activateHandler(actionGoToLine.getActionDefinitionId(), new ActionHandler(actionGoToLine));
       
-      actionSelectAll = new Action("Select &all") {
+      actionSelectAll = new Action(Messages.get().ScriptEditorView_SelectAll) {
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -258,7 +254,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       actionSelectAll.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.selectAll"); //$NON-NLS-1$
       handlerService.activateHandler(actionSelectAll.getActionDefinitionId(), new ActionHandler(actionSelectAll));
 
       actionSelectAll.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.selectAll"); //$NON-NLS-1$
       handlerService.activateHandler(actionSelectAll.getActionDefinitionId(), new ActionHandler(actionSelectAll));
 
-      actionCut = new Action("C&ut", SharedIcons.CUT) {
+      actionCut = new Action(Messages.get().ScriptEditorView_Cut, SharedIcons.CUT) {
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -269,7 +265,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       handlerService.activateHandler(actionCut.getActionDefinitionId(), new ActionHandler(actionCut));
       actionCut.setEnabled(false);
 
       handlerService.activateHandler(actionCut.getActionDefinitionId(), new ActionHandler(actionCut));
       actionCut.setEnabled(false);
 
-      actionCopy = new Action("&Copy", SharedIcons.COPY) {
+      actionCopy = new Action(Messages.get().ScriptEditorView_Copy, SharedIcons.COPY) {
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -280,7 +276,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       handlerService.activateHandler(actionCopy.getActionDefinitionId(), new ActionHandler(actionCopy));
       actionCopy.setEnabled(false);
 
       handlerService.activateHandler(actionCopy.getActionDefinitionId(), new ActionHandler(actionCopy));
       actionCopy.setEnabled(false);
 
-      actionPaste = new Action("&Paste", SharedIcons.PASTE) {
+      actionPaste = new Action(Messages.get().ScriptEditorView_Paste, SharedIcons.PASTE) {
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -413,8 +409,8 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
           StyledText textControl = editor.getTextWidget();
           final int maxLine = textControl.getLineCount();
           
           StyledText textControl = editor.getTextWidget();
           final int maxLine = textControl.getLineCount();
           
-          InputDialog dlg = new InputDialog(getSite().getShell(), "Go to Line"
-                String.format("Enter line number (1..%d)", maxLine), 
+          InputDialog dlg = new InputDialog(getSite().getShell(), Messages.get().ScriptEditorView_GoToLine_DlgTitle
+                String.format(Messages.get().ScriptEditorView_EnterLineNumber, maxLine), 
                 Integer.toString(textControl.getLineAtOffset(textControl.getCaretOffset()) + 1), 
                 new IInputValidator() {
                @Override
                 Integer.toString(textControl.getLineAtOffset(textControl.getCaretOffset()) + 1), 
                 new IInputValidator() {
                @Override
@@ -424,12 +420,12 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                   {
                      int n = Integer.parseInt(newText);
                      if ((n < 1) || (n > maxLine))
                   {
                      int n = Integer.parseInt(newText);
                      if ((n < 1) || (n > maxLine))
-                        return "Number out of range";
+                        return Messages.get().ScriptEditorView_NumberOutOfRange;
                      return null;
                   }
                   catch(NumberFormatException e)
                   {
                      return null;
                   }
                   catch(NumberFormatException e)
                   {
-                     return "Invalid number";
+                     return Messages.get().ScriptEditorView_InvalidNumber;
                   }
                }
             });
                   }
                }
             });
@@ -480,11 +476,11 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
        {
       final String source = editor.getText();
       editor.getTextWidget().setEditable(false);
        {
       final String source = editor.getText();
       editor.getTextWidget().setEditable(false);
-      new ConsoleJob("Compile script", this, Activator.PLUGIN_ID, null) {
+      new ConsoleJob(Messages.get().ScriptEditorView_CompileScript, this, Activator.PLUGIN_ID, null) {
          @Override
          protected String getErrorMessage()
          {
          @Override
          protected String getErrorMessage()
          {
-            return "Cannot compile script";
+            return Messages.get().ScriptEditorView_CannotCompileScript;
          }
 
          @Override
          }
 
          @Override
@@ -499,7 +495,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                   s.setLineBackground(0, s.getLineCount(), null);
                   if (result.success)
                   {
                   s.setLineBackground(0, s.getLineCount(), null);
                   if (result.success)
                   {
-                     editorMessageBar.showMessage(CompositeWithMessageBar.INFORMATION, "Script compiled successfully");
+                     editorMessageBar.showMessage(CompositeWithMessageBar.INFORMATION, Messages.get().ScriptEditorView_ScriptCompiledSuccessfully);
                   }
                   else
                   {
                   }
                   else
                   {
@@ -549,8 +545,8 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                   @Override
                   public void run()
                   {
                   @Override
                   public void run()
                   {
-                     if (MessageDialogHelper.openQuestion(getSite().getShell(), "Compilation Errors"
-                           String.format("Script compilation failed (%s)\r\nSave changes anyway?", result.errorMessage)))
+                     if (MessageDialogHelper.openQuestion(getSite().getShell(), Messages.get().ScriptEditorView_CompilationErrors
+                           String.format(Messages.get().ScriptEditorView_ScriptCompilationFailed, result.errorMessage)))
                         result.success = true;
                      editorMessageBar.showMessage(CompositeWithMessageBar.WARNING, result.errorMessage);
                      StyledText s = editor.getTextWidget();
                         result.success = true;
                      editorMessageBar.showMessage(CompositeWithMessageBar.WARNING, result.errorMessage);
                      StyledText s = editor.getTextWidget();
@@ -681,7 +677,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
    public void dispose()
    {
       IDialogSettings settings = Activator.getDefault().getDialogSettings();
    public void dispose()
    {
       IDialogSettings settings = Activator.getDefault().getDialogSettings();
-      settings.put("ScriptEditor.showLineNumbers", showLineNumbers);
+      settings.put("ScriptEditor.showLineNumbers", showLineNumbers); //$NON-NLS-1$
       super.dispose();
    }
 }
       super.dispose();
    }
 }
index 1539ee2..6826486 100644 (file)
@@ -47,6 +47,7 @@ import org.eclipse.swt.widgets.Text;
 import org.netxms.ui.eclipse.console.resources.SharedColors;
 import org.netxms.ui.eclipse.console.resources.SharedIcons;
 import org.netxms.ui.eclipse.nxsl.Activator;
 import org.netxms.ui.eclipse.console.resources.SharedColors;
 import org.netxms.ui.eclipse.console.resources.SharedIcons;
 import org.netxms.ui.eclipse.nxsl.Activator;
+import org.netxms.ui.eclipse.nxsl.Messages;
 import org.netxms.ui.eclipse.nxsl.widgets.internal.NXSLDocument;
 import org.netxms.ui.eclipse.nxsl.widgets.internal.NXSLSourceViewerConfiguration;
 
 import org.netxms.ui.eclipse.nxsl.widgets.internal.NXSLDocument;
 import org.netxms.ui.eclipse.nxsl.widgets.internal.NXSLSourceViewerConfiguration;
 
@@ -185,7 +186,7 @@ public class ScriptEditor extends Composite
                control.setFont(JFaceResources.getTextFont());
                control.setWordWrap(false);
                
                control.setFont(JFaceResources.getTextFont());
                control.setWordWrap(false);
                
-               editor.setDocument(new NXSLDocument(""));
+               editor.setDocument(new NXSLDocument("")); //$NON-NLS-1$
        }
        
        /**
        }
        
        /**
@@ -207,7 +208,7 @@ public class ScriptEditor extends Composite
       hintsTitle.setBackground(SharedColors.getColor(SharedColors.MESSAGE_BAR_BACKGROUND, getDisplay()));
       hintsTitle.setForeground(SharedColors.getColor(SharedColors.MESSAGE_BAR_TEXT, getDisplay()));
       hintsTitle.setImage(SharedIcons.IMG_INFORMATION);
       hintsTitle.setBackground(SharedColors.getColor(SharedColors.MESSAGE_BAR_BACKGROUND, getDisplay()));
       hintsTitle.setForeground(SharedColors.getColor(SharedColors.MESSAGE_BAR_TEXT, getDisplay()));
       hintsTitle.setImage(SharedIcons.IMG_INFORMATION);
-      hintsTitle.setText("Hints");
+      hintsTitle.setText(Messages.get().ScriptEditor_Hints);
       hintsTitle.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
       hintsTitle.addMouseListener(new MouseAdapter() {
          @Override
       hintsTitle.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
       hintsTitle.addMouseListener(new MouseAdapter() {
          @Override
@@ -222,7 +223,7 @@ public class ScriptEditor extends Composite
       hintsExpandButton.setBackground(hintArea.getBackground());
       hintsExpandButton.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_HAND));
       hintsExpandButton.setImage(SharedIcons.IMG_EXPAND);
       hintsExpandButton.setBackground(hintArea.getBackground());
       hintsExpandButton.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_HAND));
       hintsExpandButton.setImage(SharedIcons.IMG_EXPAND);
-      hintsExpandButton.setToolTipText("Hide message");
+      hintsExpandButton.setToolTipText(Messages.get().ScriptEditor_HideMessage);
       GridData gd = new GridData();
       gd.verticalAlignment = SWT.CENTER;
       hintsExpandButton.setLayoutData(gd);
       GridData gd = new GridData();
       gd.verticalAlignment = SWT.CENTER;
       hintsExpandButton.setLayoutData(gd);
index 1254ecc..16472da 100644 (file)
@@ -1,8 +1,17 @@
 #Properties file for org.netxms.ui.eclipse.nxsl
 #Properties file for org.netxms.ui.eclipse.nxsl
-view.name.ScriptLibrary = Script Library
-view.name.EditScript = Edit Script
-command.description.ScriptLibrary = Open Script Library
-command.name.ScriptLibrary = Script Library
-actionSet.label.ScriptLibrary = Script Library
-action.label.ScriptLibrary = Script Library
-action.tooltip.ScriptLibrary = Open Script Library
\ No newline at end of file
+view.name.EditScript=Edit Script
+view.name.ScriptExecutor=Script Executor
+view.name.ScriptLibrary=Script Library
+command.description.ScriptLibrary=Open script library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
+command.name.ScriptLibrary = Script library
+command.name.ShowLineNumbers=Show line numbers
+actionSet.label.ScriptLibrary = Script library
+action.label.ScriptLibrary = Script library
+action.tooltip.ScriptLibrary = Open script library
\ No newline at end of file
index ead3f4d..0208a5b 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=Knihovna skript\u016F
 action.tooltip.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
 actionSet.label.ScriptLibrary=Knihovna skript\u016F
 command.description.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
 action.tooltip.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
 actionSet.label.ScriptLibrary=Knihovna skript\u016F
 command.description.ScriptLibrary=Otev\u0159\u00EDt knihovnu skript\u016F
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=Knihovna skript\u016F
 command.name.ScriptLibrary=Knihovna skript\u016F
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=Upravit skript
 view.name.EditScript=Upravit skript
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=Knihovna skript\u016F
 view.name.ScriptLibrary=Knihovna skript\u016F
index 3db1951..caa1a82 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary= Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary= Script Library
 command.name.ScriptLibrary= Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript= Edit Script
 view.name.EditScript= Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary= Script Library
 view.name.ScriptLibrary= Script Library
index 709eee5..339ad90 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=Script Library
 command.name.ScriptLibrary=Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=Edit Script
 view.name.EditScript=Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=Script Library
 view.name.ScriptLibrary=Script Library
index 3db1951..caa1a82 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary= Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
 action.tooltip.ScriptLibrary= Open Script Library
 actionSet.label.ScriptLibrary= Script Library
 command.description.ScriptLibrary= Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary= Script Library
 command.name.ScriptLibrary= Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript= Edit Script
 view.name.EditScript= Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary= Script Library
 view.name.ScriptLibrary= Script Library
index b861190..d65b234 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043
 action.tooltip.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 actionSet.label.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 command.description.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 action.tooltip.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 actionSet.label.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 command.description.ScriptLibrary=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 command.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442
 view.name.EditScript=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
 view.name.ScriptLibrary=\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432
index 709eee5..339ad90 100644 (file)
@@ -2,6 +2,15 @@ action.label.ScriptLibrary=Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
 action.tooltip.ScriptLibrary=Open Script Library
 actionSet.label.ScriptLibrary=Script Library
 command.description.ScriptLibrary=Open Script Library
+command.name.ClearOutput=Clear output
+command.name.Compile=Compile
+command.name.Execute=Execute
+command.name.ExecuteServerScript=Execute server script
+command.name.GoToLine=Go to line
+command.name.Save=Save
+command.name.SaveAs=Save as
 command.name.ScriptLibrary=Script Library
 command.name.ScriptLibrary=Script Library
+command.name.ShowLineNumbers=Show line numbers
 view.name.EditScript=Edit Script
 view.name.EditScript=Edit Script
+view.name.ScriptExecutor=Script Executor
 view.name.ScriptLibrary=Script Library
 view.name.ScriptLibrary=Script Library
index 0f60018..25d2ef0 100644 (file)
@@ -25,7 +25,7 @@
             class="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
             icon="icons/script_exec.gif"
             id="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
             class="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
             icon="icons/script_exec.gif"
             id="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
-            name="Script Executor"
+            name="%view.name.ScriptExecutor"
             restorable="false">
       </view>
    </extension>
             restorable="false">
       </view>
    </extension>
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
-            name="Execute server script">
+            name="%command.name.ExecuteServerScript">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.execute_script"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.execute_script"
-            name="Execute">
+            name="%command.name.Execute">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save"
-            name="Save">
+            name="%command.name.Save">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save_as"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.save_as"
-            name="Save as">
+            name="%command.name.SaveAs">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.clear_output"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.clear_output"
-            name="Clear output">
+            name="%command.name.ClearOutput">
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.compile"
       </command>
       <command
             id="org.netxms.ui.eclipse.nxsl.commands.compile"
-            name="Compile">
+            name="%command.name.Compile">
       </command>
 
    </extension>
       </command>
 
    </extension>
@@ -90,7 +90,7 @@
          <command
                commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
                icon="icons/script_exec.gif"
          <command
                commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
                icon="icons/script_exec.gif"
-               label="Execute server script"
+               label="%command.name.ExecuteServerScript"
                style="push">
             <visibleWhen
                   checkEnabled="false">
                style="push">
             <visibleWhen
                   checkEnabled="false">
index 4098c2d..28e831c 100644 (file)
@@ -24,14 +24,32 @@ public class Messages extends NLS
    public String SaveScriptDialog_SaveAs;
    public String SaveScriptDialog_Title;
    public String ScriptEditDialog_Title;
    public String SaveScriptDialog_SaveAs;
    public String SaveScriptDialog_Title;
    public String ScriptEditDialog_Title;
+   public String ScriptEditor_HideMessage;
+   public String ScriptEditor_Hints;
+   public String ScriptEditorView_CannotCompileScript;
+   public String ScriptEditorView_CompilationErrors;
+   public String ScriptEditorView_Compile;
+   public String ScriptEditorView_CompileScript;
+   public String ScriptEditorView_Copy;
+   public String ScriptEditorView_Cut;
+   public String ScriptEditorView_EnterLineNumber;
    public String ScriptEditorView_Error;
    public String ScriptEditorView_Error;
+   public String ScriptEditorView_GoToLine;
+   public String ScriptEditorView_GoToLine_DlgTitle;
+   public String ScriptEditorView_InvalidNumber;
    public String ScriptEditorView_LoadJobError;
    public String ScriptEditorView_LoadJobTitle;
    public String ScriptEditorView_LoadJobError;
    public String ScriptEditorView_LoadJobTitle;
+   public String ScriptEditorView_NumberOutOfRange;
    public String ScriptEditorView_PartName;
    public String ScriptEditorView_PartName;
+   public String ScriptEditorView_Paste;
    public String ScriptEditorView_Save;
    public String ScriptEditorView_SaveErrorMessage;
    public String ScriptEditorView_SaveJobError;
    public String ScriptEditorView_SaveJobTitle;
    public String ScriptEditorView_Save;
    public String ScriptEditorView_SaveErrorMessage;
    public String ScriptEditorView_SaveJobError;
    public String ScriptEditorView_SaveJobTitle;
+   public String ScriptEditorView_ScriptCompilationFailed;
+   public String ScriptEditorView_ScriptCompiledSuccessfully;
+   public String ScriptEditorView_SelectAll;
+   public String ScriptEditorView_ShowLineNumbers;
    public String ScriptExecutor_Clear;
    public String ScriptExecutor_ClearOutput;
    public String ScriptExecutor_Error;
    public String ScriptExecutor_Clear;
    public String ScriptExecutor_ClearOutput;
    public String ScriptExecutor_Error;
index 3773da2..0a7ace4 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3283379..14f400b 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Chyba
 ScriptEditorView_Error=Chyba
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Ze serveru nelze na\u010D\u00EDst skript s ID %d
 ScriptEditorView_LoadJobTitle=Na\u010D\u00EDt\u00E1n\u00ED skriptu [%d]
 ScriptEditorView_LoadJobError=Ze serveru nelze na\u010D\u00EDst skript s ID %d
 ScriptEditorView_LoadJobTitle=Na\u010D\u00EDt\u00E1n\u00ED skriptu [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Editovat skript - %s
 ScriptEditorView_PartName=Editovat skript - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Ulo\u017Eit
 ScriptEditorView_SaveErrorMessage=Nelze ulo\u017Eit skript\: %s
 ScriptEditorView_SaveJobError=Nelze ulo\u017Eit skript do datab\u00E1ze
 ScriptEditorView_SaveJobTitle=Ukl\u00E1d\u00E1n\u00ED skriptu do knihovny
 ScriptEditorView_Save=&Ulo\u017Eit
 ScriptEditorView_SaveErrorMessage=Nelze ulo\u017Eit skript\: %s
 ScriptEditorView_SaveJobError=Nelze ulo\u017Eit skript do datab\u00E1ze
 ScriptEditorView_SaveJobTitle=Ukl\u00E1d\u00E1n\u00ED skriptu do knihovny
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 891c065..9b8c092 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c
 SaveScriptDialog_SaveAs=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c &\u043a\u0430\u043a...
 SaveScriptDialog_Title=\u041d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f
 ScriptEditDialog_Title=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430
 SaveScriptDialog_SaveAs=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c &\u043a\u0430\u043a...
 SaveScriptDialog_Title=\u041d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f
 ScriptEditDialog_Title=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=\u041e\u0448\u0438\u0431\u043a\u0430
 ScriptEditorView_Error=\u041e\u0448\u0438\u0431\u043a\u0430
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043a\u043e\u0434\u043e\u043c %d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430
 ScriptEditorView_LoadJobTitle=\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 [%d]
 ScriptEditorView_LoadJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043a\u043e\u0434\u043e\u043c %d \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430
 ScriptEditorView_LoadJobTitle=\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 - %s
 ScriptEditorView_PartName=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c
 ScriptEditorView_SaveErrorMessage=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442: %s
 ScriptEditorView_SaveJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445
 ScriptEditorView_SaveJobTitle=\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435
 ScriptEditorView_Save=&\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c
 ScriptEditorView_SaveErrorMessage=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442: %s
 ScriptEditorView_SaveJobError=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445
 ScriptEditorView_SaveJobTitle=\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434
 ScriptExecutor_ClearOutput=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434
 ScriptExecutor_Error=\u041e\u0448\u0438\u0431\u043a\u0430
 ScriptExecutor_Clear=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434
 ScriptExecutor_ClearOutput=\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434
 ScriptExecutor_Error=\u041e\u0448\u0438\u0431\u043a\u0430
index 3773da2..26ef125 100644 (file)
@@ -14,14 +14,32 @@ SaveScriptDialog_Save=&Save
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
 SaveScriptDialog_SaveAs=Save &as...
 SaveScriptDialog_Title=Unsaved Changes
 ScriptEditDialog_Title=Edit Script
+ScriptEditorView_CannotCompileScript=Cannot compile script
+ScriptEditorView_CompilationErrors=Compilation Errors
+ScriptEditorView_Compile=&Compile
+ScriptEditorView_CompileScript=Compile script
+ScriptEditorView_Copy=&Copy
+ScriptEditorView_Cut=C&ut
+ScriptEditorView_EnterLineNumber=Enter line number (1..%d)
 ScriptEditorView_Error=Error
 ScriptEditorView_Error=Error
+ScriptEditorView_GoToLine=&Go to line...
+ScriptEditorView_GoToLine_DlgTitle=Go to Line
+ScriptEditorView_InvalidNumber=Invalid number
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
 ScriptEditorView_LoadJobError=Cannot load script with ID %d from server
 ScriptEditorView_LoadJobTitle=Loading script [%d]
+ScriptEditorView_NumberOutOfRange=Number out of range
 ScriptEditorView_PartName=Edit Script - %s
 ScriptEditorView_PartName=Edit Script - %s
+ScriptEditorView_Paste=&Paste
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
 ScriptEditorView_Save=&Save
 ScriptEditorView_SaveErrorMessage=Cannot save script: %s
 ScriptEditorView_SaveJobError=Cannot save script to database
 ScriptEditorView_SaveJobTitle=Saving script to library
+ScriptEditorView_ScriptCompilationFailed=Script compilation failed (%s)\r\nSave changes anyway?
+ScriptEditorView_ScriptCompiledSuccessfully=Script compiled successfully
+ScriptEditorView_SelectAll=Select &all
+ScriptEditorView_ShowLineNumbers=Show line &numbers
+ScriptEditor_HideMessage=Hide message
+ScriptEditor_Hints=Hints
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
 ScriptExecutor_Clear=Clear source
 ScriptExecutor_ClearOutput=Clear output
 ScriptExecutor_Error=Error
index 7bd9be6..6e44032 100644 (file)
@@ -81,8 +81,8 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                scriptId = Long.parseLong(site.getSecondaryId());
                
                IDialogSettings settings = Activator.getDefault().getDialogSettings();
                scriptId = Long.parseLong(site.getSecondaryId());
                
                IDialogSettings settings = Activator.getDefault().getDialogSettings();
-               if (settings.get("ScriptEditor.showLineNumbers") != null)
-                  showLineNumbers = settings.getBoolean("ScriptEditor.showLineNumbers");
+               if (settings.get("ScriptEditor.showLineNumbers") != null) //$NON-NLS-1$
+                  showLineNumbers = settings.getBoolean("ScriptEditor.showLineNumbers"); //$NON-NLS-1$
        }
 
        /* (non-Javadoc)
        }
 
        /* (non-Javadoc)
@@ -129,7 +129,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       }
    }
 
       }
    }
 
-       /* (non-Javadoc)
+   /* (non-Javadoc)
         * @see org.eclipse.ui.part.WorkbenchPart#setFocus()
         */
        @Override
         * @see org.eclipse.ui.part.WorkbenchPart#setFocus()
         */
        @Override
@@ -137,11 +137,11 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
        {
                editor.setFocus();
        }
        {
                editor.setFocus();
        }
-       
+
        /**
         * Create actions
         */
        /**
         * Create actions
         */
-   private void createActions()
+       private void createActions()
        {
       final IHandlerService handlerService = (IHandlerService)getSite().getService(IHandlerService.class);
       
        {
       final IHandlerService handlerService = (IHandlerService)getSite().getService(IHandlerService.class);
       
@@ -163,7 +163,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
       actionSave.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.save"); //$NON-NLS-1$
       handlerService.activateHandler(actionSave.getActionDefinitionId(), new ActionHandler(actionSave));
                
       actionSave.setActionDefinitionId("org.netxms.ui.eclipse.nxsl.commands.save"); //$NON-NLS-1$
       handlerService.activateHandler(actionSave.getActionDefinitionId(), new ActionHandler(actionSave));
                
-               actionCompile = new Action("&Compile", Activator.getImageDescriptor("icons/compile.gif")) {
+               actionCompile = new Action(Messages.get().ScriptEditorView_Compile, Activator.getImageDescriptor("icons/compile.gif")) { //$NON-NLS-2$
          @Override
          public void run()
          {
          @Override
          public void run()
          {
@@ -251,11 +251,11 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
        {
       final String source = editor.getText();
       editor.getTextWidget().setEditable(false);
        {
       final String source = editor.getText();
       editor.getTextWidget().setEditable(false);
-      new ConsoleJob("Compile script", this, Activator.PLUGIN_ID, null) {
+      new ConsoleJob(Messages.get().ScriptEditorView_CompileScript, this, Activator.PLUGIN_ID, null) {
          @Override
          protected String getErrorMessage()
          {
          @Override
          protected String getErrorMessage()
          {
-            return "Cannot compile script";
+            return Messages.get().ScriptEditorView_CannotCompileScript;
          }
 
          @Override
          }
 
          @Override
@@ -268,7 +268,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                {
                   if (result.success)
                   {
                {
                   if (result.success)
                   {
-                     editorMessageBar.showMessage(CompositeWithMessageBar.INFORMATION, "Script compiled successfully");
+                     editorMessageBar.showMessage(CompositeWithMessageBar.INFORMATION, Messages.get().ScriptEditorView_ScriptCompiledSuccessfully);
                   }
                   else
                   {
                   }
                   else
                   {
@@ -280,7 +280,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
          }
       }.start();
        }
          }
       }.start();
        }
-
+       
        /**
         * Save script
         */
        /**
         * Save script
         */
@@ -315,8 +315,8 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
                   @Override
                   public void run()
                   {
                   @Override
                   public void run()
                   {
-                     if (MessageDialogHelper.openQuestion(getSite().getShell(), "Compilation Errors"
-                           String.format("Script compilation failed (%s)\r\nSave changes anyway?", result.errorMessage)))
+                     if (MessageDialogHelper.openQuestion(getSite().getShell(), Messages.get().ScriptEditorView_CompilationErrors
+                           String.format(Messages.get().ScriptEditorView_ScriptCompilationFailed, result.errorMessage)))
                         result.success = true;
                      editorMessageBar.showMessage(CompositeWithMessageBar.WARNING, result.errorMessage);
                   }
                         result.success = true;
                      editorMessageBar.showMessage(CompositeWithMessageBar.WARNING, result.errorMessage);
                   }
@@ -324,8 +324,8 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
             }
             if (result.success)
             {
             }
             if (result.success)
             {
-                               doScriptSave(source, monitor);
-                       }
+               doScriptSave(source, monitor);
+            }
             else
             {
                runInUIThread(new Runnable() {
             else
             {
                runInUIThread(new Runnable() {
@@ -440,7 +440,7 @@ public class ScriptEditorView extends ViewPart implements ISaveablePart
    public void dispose()
    {
       IDialogSettings settings = Activator.getDefault().getDialogSettings();
    public void dispose()
    {
       IDialogSettings settings = Activator.getDefault().getDialogSettings();
-      settings.put("ScriptEditor.showLineNumbers", showLineNumbers);
+      settings.put("ScriptEditor.showLineNumbers", showLineNumbers); //$NON-NLS-1$
       super.dispose();
    }
 }
       super.dispose();
    }
 }
index 58edcb0..cdaf5e2 100644 (file)
@@ -35,6 +35,7 @@ import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 import org.netxms.ui.eclipse.console.resources.SharedColors;
 import org.netxms.ui.eclipse.console.resources.SharedIcons;
 import org.eclipse.swt.widgets.Text;
 import org.netxms.ui.eclipse.console.resources.SharedColors;
 import org.netxms.ui.eclipse.console.resources.SharedIcons;
+import org.netxms.ui.eclipse.nxsl.Messages;
 
 /**
  * NXSL script editor
 
 /**
  * NXSL script editor
@@ -98,11 +99,11 @@ public class ScriptEditor extends Composite
                editor.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        }
        
                editor.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        }
        
-   /**
-    * Create hints area
-    */
-   private void createHintsArea()
-   {
+       /**
+        * Create hints area
+        */
+       private void createHintsArea()
+       {
       hintArea = new Composite(this, SWT.NONE);
       GridLayout layout = new GridLayout();
       layout.marginWidth = 0;
       hintArea = new Composite(this, SWT.NONE);
       GridLayout layout = new GridLayout();
       layout.marginWidth = 0;
@@ -117,7 +118,7 @@ public class ScriptEditor extends Composite
       hintsTitle.setBackground(SharedColors.getColor(SharedColors.MESSAGE_BAR_BACKGROUND, getDisplay()));
       hintsTitle.setForeground(SharedColors.getColor(SharedColors.MESSAGE_BAR_TEXT, getDisplay()));
       hintsTitle.setImage(SharedIcons.IMG_INFORMATION);
       hintsTitle.setBackground(SharedColors.getColor(SharedColors.MESSAGE_BAR_BACKGROUND, getDisplay()));
       hintsTitle.setForeground(SharedColors.getColor(SharedColors.MESSAGE_BAR_TEXT, getDisplay()));
       hintsTitle.setImage(SharedIcons.IMG_INFORMATION);
-      hintsTitle.setText("Hints");
+      hintsTitle.setText(Messages.get().ScriptEditor_Hints);
       hintsTitle.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
       hintsTitle.addMouseListener(new MouseAdapter() {
          @Override
       hintsTitle.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
       hintsTitle.addMouseListener(new MouseAdapter() {
          @Override
@@ -132,7 +133,7 @@ public class ScriptEditor extends Composite
       hintsExpandButton.setBackground(hintArea.getBackground());
       hintsExpandButton.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_HAND));
       hintsExpandButton.setImage(SharedIcons.IMG_EXPAND);
       hintsExpandButton.setBackground(hintArea.getBackground());
       hintsExpandButton.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_HAND));
       hintsExpandButton.setImage(SharedIcons.IMG_EXPAND);
-      hintsExpandButton.setToolTipText("Hide message");
+      hintsExpandButton.setToolTipText(Messages.get().ScriptEditor_HideMessage);
       GridData gd = new GridData();
       gd.verticalAlignment = SWT.CENTER;
       hintsExpandButton.setLayoutData(gd);
       GridData gd = new GridData();
       gd.verticalAlignment = SWT.CENTER;
       hintsExpandButton.setLayoutData(gd);