Preferences: ready to be localized 96/8196/3
Calixte DENIZET [Thu, 19 Jul 2012 13:34:57 +0000 (15:34 +0200)]
Change-Id: I92a2a249f7f12829ec9ec4714f20064a67585045

19 files changed:
scilab/modules/console/etc/XConfiguration-console.xml
scilab/modules/console/etc/XConfiguration-console.xsl
scilab/modules/console/etc/XConfiguration-general.xml
scilab/modules/console/etc/XConfiguration-general.xsl
scilab/modules/gui/etc/XConfiguration-colors.xml
scilab/modules/gui/etc/XConfiguration-colors.xsl
scilab/modules/gui/etc/XConfiguration-font.xml
scilab/modules/gui/etc/XConfiguration-font.xsl
scilab/modules/gui/src/java/org/scilab/modules/gui/utils/WindowsConfigurationManager.java
scilab/modules/history_manager/etc/XConfiguration-history.xml
scilab/modules/history_manager/etc/XConfiguration-history.xsl
scilab/modules/preferences/etc/XConfiguration-preference.xml
scilab/modules/preferences/etc/XConfiguration-preference.xsl
scilab/modules/preferences/etc/XConfiguration.xml
scilab/modules/preferences/src/java/org/scilab/modules/preferences/XCommonManager.java
scilab/modules/preferences/src/java/org/scilab/modules/preferences/XConfigManager.java
scilab/modules/preferences/src/xslt/XConfiguration.xsl
scilab/modules/scinotes/etc/XConfiguration-scinotes.xml
scilab/modules/scinotes/etc/XConfiguration-scinotes.xsl

index 75967b4..c23ba46 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<console title="Console">
+<console title="_(Console)">
   <body>
     <display wrap-lines="true" adapt-to-display="true" lines-to-display="100" columns-to-display="80" tab-size="4" scroll-size="3000"/>
   </body>
index 1062fc2..e303f80 100644 (file)
@@ -9,7 +9,7 @@
                  -->\r
 \r
   <xsl:template match="display">\r
-    <Title text="Display">\r
+    <Title text="_(Display)">\r
       <xsl:variable name="enable">\r
        <xsl:choose>\r
          <xsl:when test="@adapt-to-display='true'">\r
@@ -26,7 +26,7 @@
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Checkbox>\r
-        <Label gridx="1" gridy="3" weightx="0" text="Lines to display: " enable="{$enable}"/>\r
+        <Label gridx="1" gridy="3" weightx="0" text="_(Lines to display: )" enable="{$enable}"/>\r
        <Panel gridx="2" gridy="3" gridheight="4" fill="both"/>\r
        <NumericalSpinner gridx="3"\r
                           gridy="3"\r
@@ -41,7 +41,7 @@
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </NumericalSpinner>\r
-        <Label gridx="1" gridy="4" weightx="0" text="Columns to display: " enable="{$enable}"/>\r
+        <Label gridx="1" gridy="4" weightx="0" text="_(Columns to display: )" enable="{$enable}"/>\r
        <NumericalSpinner gridx="3"\r
                           gridy="4"\r
                          weightx="0"\r
@@ -55,7 +55,7 @@
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </NumericalSpinner>\r
-        <Label gridx="1" gridy="5" weightx="0" text="Number of lines in console scroll buffer: "/>\r
+        <Label gridx="1" gridy="5" weightx="0" text="_(Number of lines in console scroll buffer: )"/>\r
        <NumericalSpinner gridx="3"\r
                           gridy="5"\r
                          weightx="0"\r
index e3bd59e..900ce78 100644 (file)
 <?xml version="1.0" encoding="utf-8"?>
-<general title="General">
+<general title="_(General)">
   <body>
     <environment fpe="0" printing-format="v" width="10">
-      <fpe code="0" floating-point-exception="Produces an error"/>
-      <fpe code="1" floating-point-exception="Produces a warning"/>
-      <fpe code="2" floating-point-exception="Produces Inf or NaN"/>
-      <printing-format code="v" format="Variable format"/>
-      <printing-format code="e" format="Scientific format"/>
+      <fpe code="0" floating-point-exception="_(Produces an error)"/>
+      <fpe code="1" floating-point-exception="_(Produces a warning)"/>
+      <fpe code="2" floating-point-exception="_(Produces Inf or NaN)"/>
+      <printing-format code="v" format="_(Variable format)"/>
+      <printing-format code="e" format="_(Scientific format)"/>
     </environment>
     <languages lang="en_US">
-      <language code="en_US" desc="English"/>
-      <language code="fr_FR" desc="French"/>
-      <language code="pt_BR" desc="Portugese (Brazil)"/>
-      <language code="ca_ES" desc="Catalan"/>
-      <language code="cs_CZ" desc="Czech"/>
-      <language code="es_ES" desc="Spanish"/>
-      <language code="it_IT" desc="Italian"/>
-      <language code="pl_PL" desc="Polish"/>
-      <language code="ru_RU" desc="Russian"/>
-      <language code="zh_CN" desc="Chinese (Simplified)"/>
-      <language code="zh_TW" desc="Chinese (Traditional)"/>
-      <language code="de_DE" desc="German"/>
-      <language code="ja_JP" desc="Japanese"/>
-      <language code="uk_UA" desc="Ukrainian"/>
+      <language code="en_US" desc="_(English)"/>
+      <language code="fr_FR" desc="_(French)"/>
+      <language code="pt_BR" desc="_(Portugese (Brazil))"/>
+      <language code="ca_ES" desc="_(Catalan)"/>
+      <language code="cs_CZ" desc="_(Czech)"/>
+      <language code="es_ES" desc="_(Spanish)"/>
+      <language code="it_IT" desc="_(Italian)"/>
+      <language code="pl_PL" desc="_(Polish)"/>
+      <language code="ru_RU" desc="_(Russian)"/>
+      <language code="zh_CN" desc="_(Chinese (Simplified))"/>
+      <language code="zh_TW" desc="_(Chinese (Traditional))"/>
+      <language code="de_DE" desc="_(German)"/>
+      <language code="ja_JP" desc="_(Japanese)"/>
+      <language code="uk_UA" desc="_(Ukrainian)"/>
     </languages>
     <java-heap-memory heap-size="256"/>
   </body>
-  <confirmation-dialogs title="Confirmation dialogs"> 
+  <confirmation-dialogs title="_(Confirmation dialogs)"> 
     <body>
       <tools>
-        <tool state="checked" id="console-exit" name="Console" description="Warn before exiting Scilab"/>
-        <tool state="checked" id="delete-history-item" name="Command History" description="Warn before deleting Command History items"/>
-        <tool state="checked" id="console-clear" name="Console" description="Warn before clearing the Console"/>
+        <tool state="checked" id="console-exit" name="Console" description="_(Warn before exiting Scilab)"/>
+        <tool state="checked" id="delete-history-item" name="Command History" description="_(Warn before deleting Command History items)"/>
+        <tool state="checked" id="console-clear" name="Console" description="_(Warn before clearing the Console)"/>
       </tools>
     </body>
   </confirmation-dialogs>
-  <desktop-layout title="Desktop layout">
+  <desktop-layout title="_(Desktop layout)">
     <body>
-      <layouts name="Integrated">
-        <layout name="Integrated" path="$SCI/modules/gui/etc/integratedConfiguration.xml" image="file:///$SCI/modules/gui/images/preferences/integrated.png"/>
-        <layout name="Simple" path="$SCI/modules/gui/etc/simpleConfiguration.xml" image="file:///$SCI/modules/gui/images/preferences/simple.png"/>
+      <layouts id="0">
+        <layout id="0" name="_(Integrated)" path="$SCI/modules/gui/etc/integratedConfiguration.xml" image="file:///$SCI/modules/gui/images/preferences/integrated.png"/>
+        <layout id="1" name="_(Simple)" path="$SCI/modules/gui/etc/simpleConfiguration.xml" image="file:///$SCI/modules/gui/images/preferences/simple.png"/>
       </layouts>
     </body>
   </desktop-layout>
-  <shortcuts title="Shortcuts">
+  <shortcuts title="_(Shortcuts)">
     <body>
       <actions active="scilab" name="Console" item="1" browse="--choose a file --" filter="">
         <action-folder name="Console" xconf-uid="console">
-          <action key="OSSCKEY X" description="Cut or interrupt" name="console-cut-or-interrupt"/>
-          <action key="OSSCKEY C" description="Copy or interrupt" name="console-copy-or-interrupt"/>
-          <action key="OSSCKEY S" description="Select all" name="console-select-all"/>
-          <action key="OSSCKEY A" description="Line beginning" name="console-line-begin"/>
-          <action key="OSSCKEY E" description="Line end" name="console-line-end"/>
-          <action key="OSSCKEY B" description="Previous char" name="console-prev-char"/>
-          <action key="OSSCKEY F" description="Next char" name="console-next-char"/>
-          <action key="OSSCKEY D" description="Delete next char" name="console-del-next-char"/>
-          <action key="OSSCKEY H" description="Delete previous char" name="console-del-prev-char"/>
-          <action key="OSSCKEY K" description="Delete end of line" name="console-del-end-line"/>
-          <action key="OSSCKEY U" description="Delete whole line" name="console-del-whole-line"/>
-          <action key="OSSCKEY ESCAPE" description="Delete whole line" name="console-del-whole-line"/>
-          <action key="OSSCKEY W" description="Delete last word" name="console-del-last-word"/>
-          <action key="OSSCKEY X" description="Delete last word" name="console-del-last-word"/>
-          <action key="PAGE_UP" description="Previous console page" name="console-prev-page"/>
-          <action key="PAGE_DOWN" description="Next console page" name="console-next-page"/>
-          <action key="ENTER" description="Validate input" name="console-enter"/>
-          <action key="F2" description="Clear console" name="console-clear"/>
-          <action key="F12" description="Console box" name="console-box"/>
-          <action key="OSSCKEY SPACE" description="Completion" name="console-completion"/>
-          <action key="TAB" description="Completion" name="console-completion"/>
-          <action key="UP" description="Previous history line" name="console-prev-history"/>
-          <action key="DOWN" description="Next history line" name="console-next-history"/>
-          <action key="OSSCKEY N" description="Previous history line" name="console-prev-history"/>
-          <action key="OSSCKEY P" description="Next history line" name="console-next-history"/>
-          <action key="F1" description="Help Browser" name="console-help-browser"/>
-          <!--action key="OSSCKEY V" description="Paste" name="console-paste"/>
-          <action key="OSSCKEY O" description="Open a file" name="console-open"/>
-          <action key="OSSCKEY L" description="Load environment" name="console-load"/>
-          <action key="OSSCKEY S" description="Save environment" name="console-save"/>
-          <action key="OSSCKEY Q" description="Quit" name="console-quit"/>
-          <action key="" description="Execute" name="console-execute"/>
-          <action key="" description="Empty clipboard" name="console-empty-clipboard"/>
-          <action key="" description="Change current directory" name="console-change-cwd"/>
-          <action key="" description="Display current directory" name="console-display-cwd"/>
-          <action key="" description="Page setup" name="console-page-setup"/>
-          <action key="" description="Print" name="console-print"/>
-          <action key="" description="Preferences" name="console-prefs"/>
-          <action key="" description="Show/Hide toolbar" name="console-sh-toolbar"/>
-          <action key="" description="Clear history" name="console-clear-history"/>
-         <action key="" description="Resume" name="console-resume"/>
-          <action key="" description="Abort" name="console-abort"/>
-          <action key="" description="Interrupt" name="console-interrupt"/>
-          <action key="" description="Launch SciNotes" name="console-scinotes"/>
-          <action key="" description="Launch Xcos" name="console-xcos"/>
-          <action key="" description="Matlab to Scilab Translator" name="console-matsci-translator"/>
-          <action key="" description="Module manager" name="console-atoms"/>
-          <action key="" description="Variable Browser" name="console-variable-browser"/>
-          <action key="" description="Command History" name="console-history-browser"/>
-          <action key="" description="File Browser" name="console-file-browser"/>
-          <action key="" description="Demonstrations" name="console-demos"/>
-          <action key="" description="Open Scilab website" name="console-scilab-website"/>
-          <action key="" description="Open Online Help" name="console-help-website"/>
-          <action key="" description="Open Scilab wiki" name="console-wiki-website"/>
-          <action key="" description="Open ATOM website" name="console-atom-website"/>
-          <action key="" description="Open File Exchange website" name="console-fileex-website"/>
-          <action key="" description="Open Mailing lists" name="console-ml-website"/>
-          <action key="" description="Open Forge website" name="console-forge-website"/>
-          <action key="" description="Open Bugzilla" name="console-bugzilla-website"/>
-          <action key="Shift F1" description="About Scilab" name="console-about"/-->
+          <action key="OSSCKEY X" description="_(Cut or interrupt)" name="console-cut-or-interrupt"/>
+          <action key="OSSCKEY C" description="_(Copy or interrupt)" name="console-copy-or-interrupt"/>
+          <action key="OSSCKEY S" description="_(Select all)" name="console-select-all"/>
+          <action key="OSSCKEY A" description="_(Line beginning)" name="console-line-begin"/>
+          <action key="OSSCKEY E" description="_(Line end)" name="console-line-end"/>
+          <action key="OSSCKEY B" description="_(Previous char)" name="console-prev-char"/>
+          <action key="OSSCKEY F" description="_(Next char)" name="console-next-char"/>
+          <action key="OSSCKEY D" description="_(Delete next char)" name="console-del-next-char"/>
+          <action key="OSSCKEY H" description="_(Delete previous char)" name="console-del-prev-char"/>
+          <action key="OSSCKEY K" description="_(Delete end of line)" name="console-del-end-line"/>
+          <action key="OSSCKEY U" description="_(Delete whole line)" name="console-del-whole-line"/>
+          <action key="OSSCKEY ESCAPE" description="_(Delete whole line)" name="console-del-whole-line"/>
+          <action key="OSSCKEY W" description="_(Delete last word)" name="console-del-last-word"/>
+          <action key="OSSCKEY X" description="_(Delete last word)" name="console-del-last-word"/>
+          <action key="PAGE_UP" description="_(Previous console page)" name="console-prev-page"/>
+          <action key="PAGE_DOWN" description="_(Next console page)" name="console-next-page"/>
+          <action key="ENTER" description="_(Validate input)" name="console-enter"/>
+          <action key="F2" description="_(Clear console)" name="console-clear"/>
+          <action key="F12" description="_(Console box)" name="console-box"/>
+          <action key="OSSCKEY SPACE" description="_(Completion)" name="console-completion"/>
+          <action key="TAB" description="_(Completion)" name="console-completion"/>
+          <action key="UP" description="_(Previous history line)" name="console-prev-history"/>
+          <action key="DOWN" description="_(Next history line)" name="console-next-history"/>
+          <action key="OSSCKEY N" description="_(Previous history line)" name="console-prev-history"/>
+          <action key="OSSCKEY P" description="_(Next history line)" name="console-next-history"/>
+          <action key="F1" description="_(Help Browser)" name="console-help-browser"/>
+          <!--action key="OSSCKEY V" description="_(Paste)" name="console-paste"/>
+          <action key="OSSCKEY O" description="_(Open a file)" name="console-open"/>
+          <action key="OSSCKEY L" description="_(Load environment)" name="console-load"/>
+          <action key="OSSCKEY S" description="_(Save environment)" name="console-save"/>
+          <action key="OSSCKEY Q" description="_(Quit)" name="console-quit"/>
+          <action key="" description="_(Execute)" name="console-execute"/>
+          <action key="" description="_(Empty clipboard)" name="console-empty-clipboard"/>
+          <action key="" description="_(Change current directory)" name="console-change-cwd"/>
+          <action key="" description="_(Display current directory)" name="console-display-cwd"/>
+          <action key="" description="_(Page setup)" name="console-page-setup"/>
+          <action key="" description="_(Print)" name="console-print"/>
+          <action key="" description="_(Preferences)" name="console-prefs"/>
+          <action key="" description="_(Show/Hide toolbar)" name="console-sh-toolbar"/>
+          <action key="" description="_(Clear history)" name="console-clear-history"/>
+         <action key="" description="_(Resume)" name="console-resume"/>
+          <action key="" description="_(Abort)" name="console-abort"/>
+          <action key="" description="_(Interrupt)" name="console-interrupt"/>
+          <action key="" description="_(Launch SciNotes)" name="console-scinotes"/>
+          <action key="" description="_(Launch Xcos)" name="console-xcos"/>
+          <action key="" description="_(Matlab to Scilab Translator)" name="console-matsci-translator"/>
+          <action key="" description="_(Module manager)" name="console-atoms"/>
+          <action key="" description="_(Variable Browser)" name="console-variable-browser"/>
+          <action key="" description="_(Command History)" name="console-history-browser"/>
+          <action key="" description="_(File Browser)" name="console-file-browser"/>
+          <action key="" description="_(Demonstrations)" name="console-demos"/>
+          <action key="" description="_(Open Scilab website)" name="console-scilab-website"/>
+          <action key="" description="_(Open Online Help)" name="console-help-website"/>
+          <action key="" description="_(Open Scilab wiki)" name="console-wiki-website"/>
+          <action key="" description="_(Open ATOM website)" name="console-atom-website"/>
+          <action key="" description="_(Open File Exchange website)" name="console-fileex-website"/>
+          <action key="" description="_(Open Mailing lists)" name="console-ml-website"/>
+          <action key="" description="_(Open Forge website)" name="console-forge-website"/>
+          <action key="" description="_(Open Bugzilla)" name="console-bugzilla-website"/>
+          <action key="Shift F1" description="_(About Scilab)" name="console-about"/-->
         </action-folder>
         <action-folder name="Scinotes" xconf-uid="scinotes">
-          <action key="OSSCKEY H" description="Auto complete (, [,..." name="scinotes-autocomplete-openers"/>
-          <action key="OSSCKEY Shift H" description="Auto complete keyword" name="scinotes-autocomplete-keyword"/>
-          <action key="OSSCKEY Shift G" description="Generate Help prototype" name="scinotes-help-prototype"/>
-          <action key="TAB" description="Tabify" name="scinotes-tabify"/>
-          <action key="Shift TAB" description="Untabify" name="scinotes-untabify"/>
-          <action key="OSSCKEY I" description="Indent" name="scinotes-indent"/>
-          <action key="OSSCKEY D" description="Comment" name="scinotes-comment"/>
-          <action key="OSSCKEY Shift D" description="Uncomment" name="scinotes-uncomment"/>
-          <action key="OSSCKEY Shift W" description="Remove trailing whites" name="scinotes-remove-whites"/>
-          <action key="OSSCKEY A" description="Select all" name="scinotes-select-all"/>
-          <action key="OSSCKEY B" description="Select block" name="scinotes-select-block"/>
-          <action key="OSSCKEY Shift T" description="Open current tab in a new window" name="scinotes-clone-current"/>
-          <action key="OSSCKEY Shift X" description="Export current tab in a new window" name="scinotes-export-current"/>
-          <action key="OSSCKEY C" description="Copy" name="scinotes-copy"/>
-          <action key="OSSCKEY X" description="Cut" name="scinotes-cut"/>
-          <action key="OSSCKEY V" description="Paste" name="scinotes-paste"/>
-          <action key="OSSCKEY Shift V" description="Paste a column" name="scinotes-paste-column"/>
-          <action key="OSSCKEY Shift Z" description="Repeat selection on column" name="scinotes-repeat-column"/>
-          <action key="OSSCKEY Z" description="Undo" name="scinotes-undo"/>
-          <action key="OSSCKEY Y" description="Redo" name="scinotes-redo"/>
-          <action key="OSSCKEY Shift C" description="Copy as HTML with line number" name="scinotes-copy-with-lines"/>
-          <action key="OSSCKEY N" description="New" name="scinotes-new"/>
-          <action key="OSSCKEY O" description="Open" name="scinotes-open"/>
-          <action key="OSSCKEY U" description="Open URL" name="scinotes-open-url"/>
-          <action key="OSSCKEY Shift O" description="Open source" name="scinotes-open-source"/>
-          <action key="OSSCKEY S" description="Save" name="scinotes-save"/>
-          <action key="OSSCKEY Shift S" description="Save as" name="scinotes-save-as"/>
-          <action key="OSSCKEY Shift R" description="Reload" name="scinotes-reload"/>
-          <action key="OSSCKEY Shift P" description="Print preview" name="scinotes-print-preview"/>
-          <action key="OSSCKEY P" description="Print" name="scinotes-print"/>
-          <action key="OSSCKEY W" description="Close" name="scinotes-close"/>
-          <action key="OSSCKEY Q" description="Exit" name="scinotes-exit"/>
-          <action key="OSSCKEY J" description="To lower case" name="scinotes-tolowercase"/>
-          <action key="OSSCKEY Shift J" description="To upper case" name="scinotes-touppercase"/>
-          <action key="OSSCKEY Shift A" description="Capitalize" name="scinotes-capitalize"/>
-          <action key="OSSCKEY F1" description="Help on keyword" name="scinotes-help-keyword"/>
-          <action key="OSSCKEY L" description="Load in Scilab" name="scinotes-load-scilab"/>
-          <action key="OSSCKEY Shift E" description="Execute in Scilab" name="scinotes-execute-scilab"/>
-          <action key="OSSCKEY E" description="Evalute selection" name="scinotes-evaluate-selection"/>
-          <action key="F5" description="Save and execute" name="scinotes-save-execute"/>
-          <action key="OSSCKEY F5" description="Save and execute all" name="scinotes-save-execute-all"/>
-          <action key="OSSCKEY F" description="Find" name="scinotes-find"/>
-          <action key="OSSCKEY K" description="Find next" name="scinotes-find-next"/>
-          <action key="OSSCKEY Shift K" description="Find previous" name="scinotes-find-previous"/>
-          <action key="F3" description="Incremental search" name="scinotes-incremental-search"/>
-          <action key="OSSCKEY M" description="Set anchor" name="scinotes-set-anchor"/>
-          <action key="OSSCKEY Shift M" description="Remove anchor" name="scinotes-remove-anchor"/>
-          <action key="OSSCKEY Shift LESS" description="Go to next anchor" name="scinotes-next-anchor"/>
-          <action key="OSSCKEY LESS" description="Go to previous anchor" name="scinotes-previous-anchor"/>
-          <action key="OSSCKEY G" description="Start Code Navigator" name="scinotes-code-navigator"/>
-          <action key="OSSCKEY Shift F" description="Search word in file" name="scinotes-word-file"/>
-          <action key="OSSCKEY Shift B" description="Search files" name="scinotes-search-files"/>
-          <action key="OSSCKEY SPACE" description="Keyword cmppletion" name="scinotes-completion"/>
-          <action key="F1" description="Help" name="scinotes-help"/>
-          <action key="Shift F1" description="About" name="scinotes-about"/>
-          <action key="OSSCKEY PAGE_DOWN" description="Next tab" name="scinotes-next-tab"/>
-          <action key="OSSCKEY PAGE_UP" description="Previous tab" name="scinotes-previous-tab"/>
-          <action key="DELETE" description="Delete" name="scinotes-delete"/>
-          <action key="OSSCKEY DOWN" description="Next paragraph" name="scinotes-next-paragraph"/>
-          <action key="OSSCKEY UP" description="Previous paragraph" name="scinotes-previous-paragraph"/>
-          <action key="" description="Save all" name="scinotes-save-all"/>
-          <action key="" description="Overwrite" name="scinotes-overwrite"/>
-          <action key="" description="Page setup" name="scinotes-page-setup"/>
-          <action key="" description="Close all" name="scinotes-close-all"/>
-          <action key="" description="Close all but" name="scinotes-close-all-but"/>
-          <action key="" description="Convert quote to double quote" name="scinotes-double-quote"/>
-          <action key="" description="Line numbering" name="scinotes-line-numbering"/>
+          <action key="OSSCKEY H" description="_(Auto complete (, [,...)" name="scinotes-autocomplete-openers"/>
+          <action key="OSSCKEY Shift H" description="_(Auto complete keyword)" name="scinotes-autocomplete-keyword"/>
+          <action key="OSSCKEY Shift G" description="_(Generate Help prototype)" name="scinotes-help-prototype"/>
+          <action key="TAB" description="_(Tabify)" name="scinotes-tabify"/>
+          <action key="Shift TAB" description="_(Untabify)" name="scinotes-untabify"/>
+          <action key="OSSCKEY I" description="_(Indent)" name="scinotes-indent"/>
+          <action key="OSSCKEY D" description="_(Comment)" name="scinotes-comment"/>
+          <action key="OSSCKEY Shift D" description="_(Uncomment)" name="scinotes-uncomment"/>
+          <action key="OSSCKEY Shift W" description="_(Remove trailing whites)" name="scinotes-remove-whites"/>
+          <action key="OSSCKEY A" description="_(Select all)" name="scinotes-select-all"/>
+          <action key="OSSCKEY B" description="_(Select block)" name="scinotes-select-block"/>
+          <action key="OSSCKEY Shift T" description="_(Open current tab in a new window)" name="scinotes-clone-current"/>
+          <action key="OSSCKEY Shift X" description="_(Export current tab in a new window)" name="scinotes-export-current"/>
+          <action key="OSSCKEY C" description="_(Copy)" name="scinotes-copy"/>
+          <action key="OSSCKEY X" description="_(Cut)" name="scinotes-cut"/>
+          <action key="OSSCKEY V" description="_(Paste)" name="scinotes-paste"/>
+          <action key="OSSCKEY Shift V" description="_(Paste a column)" name="scinotes-paste-column"/>
+          <action key="OSSCKEY Shift Z" description="_(Repeat selection on column)" name="scinotes-repeat-column"/>
+          <action key="OSSCKEY Z" description="_(Undo)" name="scinotes-undo"/>
+          <action key="OSSCKEY Y" description="_(Redo)" name="scinotes-redo"/>
+          <action key="OSSCKEY Shift C" description="_(Copy as HTML with line number)" name="scinotes-copy-with-lines"/>
+          <action key="OSSCKEY N" description="_(New)" name="scinotes-new"/>
+          <action key="OSSCKEY O" description="_(Open)" name="scinotes-open"/>
+          <action key="OSSCKEY U" description="_(Open URL)" name="scinotes-open-url"/>
+          <action key="OSSCKEY Shift O" description="_(Open source)" name="scinotes-open-source"/>
+          <action key="OSSCKEY S" description="_(Save)" name="scinotes-save"/>
+          <action key="OSSCKEY Shift S" description="_(Save as)" name="scinotes-save-as"/>
+          <action key="OSSCKEY Shift R" description="_(Reload)" name="scinotes-reload"/>
+          <action key="OSSCKEY Shift P" description="_(Print preview)" name="scinotes-print-preview"/>
+          <action key="OSSCKEY P" description="_(Print)" name="scinotes-print"/>
+          <action key="OSSCKEY W" description="_(Close)" name="scinotes-close"/>
+          <action key="OSSCKEY Q" description="_(Exit)" name="scinotes-exit"/>
+          <action key="OSSCKEY J" description="_(To lower case)" name="scinotes-tolowercase"/>
+          <action key="OSSCKEY Shift J" description="_(To upper case)" name="scinotes-touppercase"/>
+          <action key="OSSCKEY Shift A" description="_(Capitalize)" name="scinotes-capitalize"/>
+          <action key="OSSCKEY F1" description="_(Help on keyword)" name="scinotes-help-keyword"/>
+          <action key="OSSCKEY L" description="_(Load in Scilab)" name="scinotes-load-scilab"/>
+          <action key="OSSCKEY Shift E" description="_(Execute in Scilab)" name="scinotes-execute-scilab"/>
+          <action key="OSSCKEY E" description="_(Evalute selection)" name="scinotes-evaluate-selection"/>
+          <action key="F5" description="_(Save and execute)" name="scinotes-save-execute"/>
+          <action key="OSSCKEY F5" description="_(Save and execute all)" name="scinotes-save-execute-all"/>
+          <action key="OSSCKEY F" description="_(Find)" name="scinotes-find"/>
+          <action key="OSSCKEY K" description="_(Find next)" name="scinotes-find-next"/>
+          <action key="OSSCKEY Shift K" description="_(Find previous)" name="scinotes-find-previous"/>
+          <action key="F3" description="_(Incremental search)" name="scinotes-incremental-search"/>
+          <action key="OSSCKEY M" description="_(Set anchor)" name="scinotes-set-anchor"/>
+          <action key="OSSCKEY Shift M" description="_(Remove anchor)" name="scinotes-remove-anchor"/>
+          <action key="OSSCKEY Shift LESS" description="_(Go to next anchor)" name="scinotes-next-anchor"/>
+          <action key="OSSCKEY LESS" description="_(Go to previous anchor)" name="scinotes-previous-anchor"/>
+          <action key="OSSCKEY G" description="_(Start Code Navigator)" name="scinotes-code-navigator"/>
+          <action key="OSSCKEY Shift F" description="_(Search word in file)" name="scinotes-word-file"/>
+          <action key="OSSCKEY Shift B" description="_(Search files)" name="scinotes-search-files"/>
+          <action key="OSSCKEY SPACE" description="_(Keyword cmppletion)" name="scinotes-completion"/>
+          <action key="F1" description="_(Help)" name="scinotes-help"/>
+          <action key="Shift F1" description="_(About)" name="scinotes-about"/>
+          <action key="OSSCKEY PAGE_DOWN" description="_(Next tab)" name="scinotes-next-tab"/>
+          <action key="OSSCKEY PAGE_UP" description="_(Previous tab)" name="scinotes-previous-tab"/>
+          <action key="DELETE" description="_(Delete)" name="scinotes-delete"/>
+          <action key="OSSCKEY DOWN" description="_(Next paragraph)" name="scinotes-next-paragraph"/>
+          <action key="OSSCKEY UP" description="_(Previous paragraph)" name="scinotes-previous-paragraph"/>
+          <action key="" description="_(Save all)" name="scinotes-save-all"/>
+          <action key="" description="_(Overwrite)" name="scinotes-overwrite"/>
+          <action key="" description="_(Page setup)" name="scinotes-page-setup"/>
+          <action key="" description="_(Close all)" name="scinotes-close-all"/>
+          <action key="" description="_(Close all but)" name="scinotes-close-all-but"/>
+          <action key="" description="_(Convert quote to double quote)" name="scinotes-double-quote"/>
+          <action key="" description="_(Line numbering)" name="scinotes-line-numbering"/>
         </action-folder>
         <!--action-folder name="Xcos" xconf-uid="xcos">
-          <action key="OSSCKEY S" description="Save diagramm" name="xcos-save"/>
+          <action key="OSSCKEY S" description="_(Save diagramm)" name="xcos-save"/>
         </action-folder>
         <action-folder name="Variable Browser" xconf-uid="browsevar">
-          <action key="OSSCKEY S" description="Save" name="variablebrowser-save"/>
+          <action key="OSSCKEY S" description="_(Save)" name="variablebrowser-save"/>
         </action-folder>
         <action-folder name="Variable Editor" xconf-uid="editvar">
-          <action key="OSSCKEY S" description="Save variable" name="editvar-save"/>
+          <action key="OSSCKEY S" description="_(Save variable)" name="editvar-save"/>
         </action-folder>
         <action-folder name="History Browser" xconf-uid="historybrowser">
-          <action key="OSSCKEY S" description="Save history" name="historybrowser-save"/>
+          <action key="OSSCKEY S" description="_(Save history)" name="historybrowser-save"/>
         </action-folder>
         <action-folder name="File Browser" xconf-uid="filebrowser">
-          <action key="OSSCKEY S" description="Save file" name="filebrowser-save"/>
+          <action key="OSSCKEY S" description="_(Save file)" name="filebrowser-save"/>
         </action-folder-->
       </actions>
     </body>
index 4ec34c6..242350d 100644 (file)
@@ -11,7 +11,7 @@
     <xsl:template match="environment">\r
         <Title text="Environment">\r
             <Grid>\r
-                <Label gridx="1" gridy="1" weightx="0" text="Floating point exception (ieee): "/>\r
+                <Label gridx="1" gridy="1" weightx="0" text="_(Floating point exception (ieee): )"/>\r
                 <Panel gridx="2" gridy="1" weightx="1"/>\r
                 <Select gridx="3" gridy="1" listener="ActionListener">\r
                     <xsl:variable name="fpe" select="@fpe"/>\r
@@ -27,7 +27,7 @@
                     </xsl:for-each>\r
                 </Select>\r
 \r
-                <Label gridx="1" gridy="2" weightx="0" text="Printing format: "/>\r
+                <Label gridx="1" gridy="2" weightx="0" text="_(Printing format: )"/>\r
                 <Select gridx="3" gridy="2" listener="ActionListener">\r
                     <xsl:variable name="pf" select="@printing-format"/>\r
                     <actionPerformed choose="printing-format">\r
@@ -41,7 +41,7 @@
                         </option>\r
                     </xsl:for-each>\r
                 </Select>\r
-                <Label gridx="1" gridy="3" weightx="0" text="Width: "/>\r
+                <Label gridx="1" gridy="3" weightx="0" text="_(Width: )"/>\r
                 <NumericalSpinner gridx="3"\r
                                   gridy="3"\r
                                   weightx="0"\r
@@ -62,9 +62,9 @@
     <xsl:template match="languages">\r
         <xsl:if test="$OS='Windows'">\r
             <VSpace height="10"/>\r
-            <Title text="Language setting">\r
+            <Title text="_(Language setting)">\r
                 <Grid>\r
-                    <Label text="Default language:" gridx="1" gridy="1" anchor="baseline" weightx="0"/>\r
+                    <Label text="_(Default language: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>\r
                     <Panel gridx="2" gridy="1" weightx="1"/>\r
                     <Select gridx="3" gridy="1" listener="ActionListener">\r
                         <actionPerformed choose="lang">\r
@@ -79,7 +79,7 @@
                             </option>\r
                         </xsl:for-each>\r
                     </Select>\r
-                    <Label text="(This requires a restart of Scilab)" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>\r
+                    <Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>\r
                     <Panel gridx="2" gridy="2" weightx="1" fill="both"/>\r
                 </Grid>\r
             </Title>\r
@@ -89,9 +89,9 @@
     <xsl:template match="java-heap-memory" mode="tooltip"> and java heap size.</xsl:template>\r
     <xsl:template match="java-heap-memory">\r
         <VSpace height="10"/>\r
-        <Title text="Java Heap Memory">\r
+        <Title text="_(Java Heap Memory)">\r
             <Grid>\r
-                <Label text="Select the memory (in MB) available in Java: " gridx="1" gridy="1" anchor="baseline" weightx="0"/>\r
+                <Label text="_(Select the memory (in MB) available in Java: )" gridx="1" gridy="1" anchor="baseline" weightx="0"/>\r
                 <Panel gridx="2" gridy="1" weightx="1"/>\r
                 <NumericalSpinner min-value="0"\r
                                   increment="128"\r
                         <xsl:call-template name="context"/>\r
                     </actionPerformed>\r
                 </NumericalSpinner>\r
-                <Label text="(This requires a restart of Scilab)" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>\r
+                <Label text="_((This requires a restart of Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>\r
                 <Panel gridx="2" gridy="2" weightx="1" fill="both"/>\r
             </Grid>\r
         </Title>\r
     </xsl:template>\r
 \r
     <xsl:template match="tools">\r
-        <Title text="Confirmation dialogs">\r
+        <Title text="_(Confirmation dialogs)">\r
             <Grid>\r
                 <xsl:for-each select="tool">\r
                     <Checkbox\r
     </xsl:template>\r
 \r
     <xsl:template match="layouts">\r
-        <xsl:variable name="name" select="@name"/>\r
-        <Title text="Desktop Layout">\r
+        <xsl:variable name="id" select="@id"/>\r
+        <Title text="_(Desktop Layout)">\r
             <Grid>\r
-                <Label gridx="1" gridy="1" weightx="0" text="Select a layout"/>\r
+                <Label gridx="1" gridy="1" weightx="0" text="_(Select a layout)"/>\r
                 <Panel gridx="2" gridy="1" gridheight="1" fill="both"/>\r
-                <Panel gridx="3" gridy="1">\r
-                    <xsl:call-template name="Select">\r
-                        <xsl:with-param name="among">\r
-                            <xsl:for-each select="layout">\r
-                                <option name="{@name}"/>\r
-                            </xsl:for-each>\r
-                        </xsl:with-param>\r
-                    </xsl:call-template>\r
-                </Panel>\r
-                <Label text="(modify the layout requires to restart Scilab)" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>\r
+               <Select gridx="3" gridy="1" listener="ActionListener">\r
+                    <actionPerformed choose="id">\r
+                        <xsl:call-template name="context"/>\r
+                    </actionPerformed>\r
+                    <xsl:for-each select="layout">\r
+                        <option value="{@name}" key="{@id}">\r
+                            <xsl:if test="@id=$id">\r
+                                <xsl:attribute name="selected">selected</xsl:attribute>\r
+                            </xsl:if>\r
+                        </option>\r
+                    </xsl:for-each>\r
+                </Select>\r
+                <Label text="_((Modify the layout requires to restart Scilab))" font-face="bold" gridx="1" gridy="2" anchor="west" weightx="0"/>\r
                 <Panel gridx="1" gridy="3">\r
                     <VSpace height="10"/>\r
                 </Panel>\r
                 <Image gridx="1" gridy="4" gridwidth="3">\r
                     <xsl:attribute name="url">\r
-                        <xsl:value-of select="layout[@name=$name]/@image"/>\r
+                        <xsl:value-of select="layout[@id=$id]/@image"/>\r
                     </xsl:attribute>\r
                 </Image>\r
 \r
     <xsl:template match="actions">\r
         <xsl:variable name="name" select="@name"/>\r
         <xsl:variable name="current-item" select="action-folder[@name=$name]/action[number(@item)]"/>\r
-        <Title text="Keys binding" fixed-height="false">\r
+        <Title text="_(Keys binding)" fixed-height="false">\r
             <VBox fixed-height="false">\r
                 <Grid>\r
-                    <Label gridy="1" gridx="1" gridwidth="2" text="Filter on action name:"/>\r
+                    <Label gridy="1" gridx="1" gridwidth="2" text="_(Filter on action name: )"/>\r
                     <Entry gridy="2" gridx="1" gridwidth="2" text="{@filter}" listener="EntryListener">\r
                         <entryChanged choose="filter">\r
                             <xsl:call-template name="context"/>\r
                 <VSpace height="10"/>\r
                 <Grid>\r
                     <VBox gridx="1" gridy="1" weightx="0" anchor="north">\r
-                        <Label text="Component"/>\r
+                        <Label text="_(Component)"/>\r
                         <List item="{@name}" nb-visible-rows="4" listener="ActionListener">\r
                             <actionPerformed choose="name">\r
                                 <xsl:call-template name="context"/>\r
                     </VBox>\r
                     <Panel gridx="2" gridy="1" weightx="0" width="30" height="1" fixed-width="true"/>\r
                     <Grid gridx="3" gridy="1" weightx="1" anchor="north">\r
-                        <Label gridx="1" gridy="1" weightx="0" weighty="0" anchor="north" text="Name: "/>\r
+                        <Label gridx="1" gridy="1" weightx="0" weighty="0" anchor="north" text="_(Name: )"/>\r
                         <Label gridx="2" gridy="1" weightx="0" weighty="0" anchor="west">\r
                             <xsl:attribute name="text">\r
                                 <xsl:value-of select="$current-item/@name"/>\r
                             </xsl:attribute>\r
                         </Label>\r
-                        <Label gridx="1" gridy="2" weightx="0" weighty="0" anchor="north" text="Description: "/>\r
+                        <Label gridx="1" gridy="2" weightx="0" weighty="0" anchor="north" text="_(Description: )"/>\r
                         <TextArea gridx="2" gridy="2" weightx="1" weighty="0" anchor="west" editable="false" rows="4">\r
                             <xsl:attribute name="text">\r
                                 <xsl:value-of select="$current-item/@description"/>\r
                             </xsl:attribute>\r
                         </TextArea>\r
-                        <Label gridx="1" gridy="3" weightx="0" weighty="0" anchor="baseline" text="Binding: "/>\r
+                        <Label gridx="1" gridy="3" weightx="0" weighty="0" anchor="baseline" text="_(Binding: )"/>\r
                         <Entry gridx="2" gridy="3" weightx="0" weighty="0" anchor="baseline" listener="ActionListener">\r
                             <xsl:attribute name="text">\r
                                 <xsl:value-of select="$current-item/@key"/>\r
                                 translate(current()/@filter,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'))]">\r
                         <tableRow binding="{@key}" command="{@name}"/>\r
                     </xsl:for-each>\r
-                    <tableCol title="Action name" attr="command"/>\r
-                    <tableCol title="Key binding" attr="binding"/>\r
+                    <tableCol title="_(Action name)" attr="command"/>\r
+                    <tableCol title="_(Key binding)" attr="binding"/>\r
                 </Table>\r
                 <Glue/>\r
             </VBox>\r
index 748910e..08790b5 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<colors title="Colors">
+<colors title="_(Colors)">
   <body>
     <desktop-colors use-system-color="true" text="#000000" background="#ffffff" cursor="#000000"/>
     <syntax-highlighting-colors name="Default">
index 3c0bb87..cafc1bc 100644 (file)
@@ -8,7 +8,7 @@
   -->\r
 \r
   <xsl:template match="desktop-colors">\r
-    <Title text="Desktop color">\r
+    <Title text="_(Desktop color)">\r
       <Grid>\r
        <xsl:choose>\r
          <xsl:when test="@*[local-name()='use-system-color']='true'">\r
@@ -19,7 +19,7 @@
            </Checkbox>\r
          </xsl:when>\r
          <xsl:otherwise>\r
-           <Checkbox gridx="1" gridy="1" fill="none" weightx="0" anchor="above_baseline" checked="unchecked" listener="ActionListener" text="Use system color">\r
+           <Checkbox gridx="1" gridy="1" fill="none" weightx="0" anchor="above_baseline" checked="unchecked" listener="ActionListener" text="_(Use system color)">\r
              <actionPerformed set="use-system-color" value="true">\r
                <xsl:call-template name="context"/>\r
              </actionPerformed>\r
          </xsl:choose>\r
        </xsl:variable>\r
        <Panel gridx="2" gridy="1" weightx="1"/>\r
-       <Label text="Text " gridx="3" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
+       <Label text="_(Text )" gridx="3" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
        <Color color="{@text}" gridx="4" gridy="1" fill="none" weightx="0" anchor="above_baseline" listener="ActionListener" enable="{$enable}">\r
          <actionPerformed choose="text">\r
            <xsl:call-template name="context"/>\r
          </actionPerformed>\r
        </Color>\r
        <Panel gridx="5" gridy="1" weightx="1"/>\r
-       <Label text="Background " gridx="6" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
+       <Label text="_(Background )" gridx="6" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
        <Color color="{@background}" gridx="7" gridy="1" fill="none" weightx="0" anchor="above_baseline" listener="ActionListener" enable="{$enable}">\r
          <actionPerformed choose="background">\r
            <xsl:call-template name="context"/>\r
          </actionPerformed>\r
        </Color>\r
        <Panel gridx="8" gridy="1" weightx="1"/>\r
-       <Label text="Cursor " gridx="9" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
+       <Label text="_(Cursor )" gridx="9" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
        <Color color="{@cursor}" gridx="10" gridy="1" fill="none" weightx="0" anchor="above_baseline" listener="ActionListener" enable="{$enable}">\r
          <actionPerformed choose="cursor">\r
            <xsl:call-template name="context"/>\r
@@ -63,7 +63,7 @@
   </xsl:template>\r
 \r
   <xsl:template match="syntax-highlighting-colors">\r
-    <Title text="Syntax highlighting colors" fixed-height="false">\r
+    <Title text="_(Syntax highlighting colors)" fixed-height="false">\r
       <VBox fixed-height="false">\r
        <Grid>\r
          <List gridx="1" gridy="1" weightx="0" item="{@name}" nb-visible-rows="4" listener="ActionListener">\r
@@ -79,7 +79,7 @@
            <xsl:variable name="var" select="@name"/>\r
            <xsl:for-each select="item[@name=$var]">\r
              <Grid>\r
-               <Label text="Keyword color " gridx="1" gridy="1" fill="none" weightx="0" anchor="above_baseline"/>\r
+               <Label text="_(Keyword color )" gridx="1" gridy="1" fill="none" weightx="0" anchor="above_baseline"/>\r
                <Color color="{@color}" gridx="2" gridy="1" fill="none" weightx="0" anchor="above_baseline" listener="ActionListener">\r
                  <actionPerformed choose="color">\r
                    <xsl:call-template name="context"/>\r
              <HBox>\r
                <xsl:call-template name="BooleanCheckBox">\r
                  <xsl:with-param name="attr-name" select="'bold'"/>\r
-                 <xsl:with-param name="text" select="'&lt;html&gt;&lt;b&gt;Bold&lt;/b&gt;&lt;html&gt;'"/>\r
+                 <xsl:with-param name="text" select="'_(&lt;html&gt;&lt;b&gt;Bold&lt;/b&gt;&lt;html&gt;)'"/>\r
                </xsl:call-template>\r
              </HBox>\r
              <Glue/>\r
              <HBox>\r
                <xsl:call-template name="BooleanCheckBox">\r
                  <xsl:with-param name="attr-name" select="'italic'"/>\r
-                 <xsl:with-param name="text" select="'&lt;html&gt;&lt;i&gt;Italic&lt;/i&gt;&lt;html&gt;'"/>\r
+                 <xsl:with-param name="text" select="'_(&lt;html&gt;&lt;i&gt;Italic&lt;/i&gt;&lt;html&gt;)'"/>\r
                </xsl:call-template>\r
              </HBox>\r
              <Glue/>\r
              <HBox>\r
                <xsl:call-template name="BooleanCheckBox">\r
                  <xsl:with-param name="attr-name" select="'underline'"/>\r
-                 <xsl:with-param name="text" select="'&lt;html&gt;&lt;u&gt;Underline&lt;/u&gt;&lt;html&gt;'"/>\r
+                 <xsl:with-param name="text" select="'_(&lt;html&gt;&lt;u&gt;Underline&lt;/u&gt;&lt;html&gt;)'"/>\r
                </xsl:call-template>\r
              </HBox>\r
              <Glue/>\r
              <HBox>\r
                <xsl:call-template name="BooleanCheckBox">\r
                  <xsl:with-param name="attr-name" select="'strike-through'"/>\r
-                 <xsl:with-param name="text" select="'&lt;html&gt;&lt;s&gt;Strike-through&lt;/s&gt;&lt;html&gt;'"/>\r
+                 <xsl:with-param name="text" select="'_(&lt;html&gt;&lt;s&gt;Strike-through&lt;/s&gt;&lt;html&gt;)'"/>\r
                </xsl:call-template>\r
              </HBox>\r
              <Glue/>\r
index 4b13aa1..98f23bd 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<fonts title="Fonts">
+<fonts title="_(Fonts)">
   <body>
     <fonts item="Console" system="true" font-name="Monospaced" font-face="plain" font-size="13">
       <item xconf-uid="console-font" name="Console" desktop="false" font-name="Monospaced" font-face="plain" font-size="13"/>
index 9d6fa56..8bd16ba 100644 (file)
     </xsl:variable>\r
     <xsl:variable name="desktop-font" select="nodeset($core-desktop-font)/font"/>\r
 \r
-    <Title text="Desktop font">\r
+    <Title text="_(Desktop font)">\r
       <VBox>\r
         <HBox>\r
           <xsl:call-template name="BooleanCheckBox">\r
-            <xsl:with-param name="text" select="'Use system font'"/>\r
+            <xsl:with-param name="text" select="'_(Use system font)'"/>\r
             <xsl:with-param name="attr-name" select="'system'"/>\r
           </xsl:call-template>\r
           <Glue/>\r
@@ -41,7 +41,7 @@
           </xsl:choose>\r
         </xsl:variable>\r
         <Grid>\r
-          <Label text="Desktop text font: " gridx="1" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
+          <Label text="_(Desktop text font: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="above_baseline" enable="{$enable}"/>\r
           <Panel gridx="2" gridy="1" weightx="1"/>\r
           <FontSelector gridx="3" gridy="1" weightx="0" anchor="above_baseline"\r
                         font-name="{@font-name}"\r
@@ -57,7 +57,7 @@
       </VBox>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="Custom font">\r
+    <Title text="_(Custom font)">\r
       <Grid>\r
         <List gridx="1" gridy="1" weightx="0" item="{@item}" nb-visible-rows="5" listener="ActionListener">\r
           <actionPerformed choose="item">\r
         <xsl:variable name="var" select="@item"/>\r
         <xsl:for-each select="item[@name=$var]">\r
           <VBox gridx="3" gridy="1" weightx="0" anchor="North">\r
-           <Label text="Fonts to use:"/>\r
+           <Label text="_(Fonts to use:)"/>\r
             <HBox>\r
               <xsl:call-template name="BooleanRadio">\r
-                <xsl:with-param name="text" select="'Desktop text font'"/>\r
+                <xsl:with-param name="text" select="'_(Desktop text font)'"/>\r
                 <xsl:with-param name="attr-name" select="'desktop'"/>\r
               </xsl:call-template>\r
             </HBox>\r
             <HBox>\r
               <xsl:call-template name="InvertedRadio">\r
-                <xsl:with-param name="text" select="'Custom:'"/>\r
+                <xsl:with-param name="text" select="'_(Custom:)'"/>\r
                 <xsl:with-param name="attr-name" select="'desktop'"/>\r
               </xsl:call-template>\r
             </HBox>\r
index a0c1ed0..c3e2106 100644 (file)
@@ -129,7 +129,7 @@ public class WindowsConfigurationManager implements XConfigurationListener {
         try {
             Document doc = XConfiguration.getXConfigurationDocument();
             XPath xp = XPathFactory.newInstance().newXPath();
-            NodeList nodes = (NodeList) xp.compile(LAYOUT_PATH + "/layout[@name=../@name]/@path").evaluate(doc, XPathConstants.NODESET);
+            NodeList nodes = (NodeList) xp.compile(LAYOUT_PATH + "/layout[@id=../@id]/@path").evaluate(doc, XPathConstants.NODESET);
             if (nodes != null && nodes.getLength() > 0) {
                 return nodes.item(0).getNodeValue().replace("$SCI", System.getenv(SCI));
             }
index 2558f41..c7af85d 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<command-history title="Command history">
+<command-history title="_(Command history)">
   <body>
     <history-settings history-file="SCIHOME/.history.scilab" history-lines="20000" enable="true"/>
     <history-save kind="quit" after="1"/>
index 51ef635..f8f63c0 100644 (file)
@@ -6,28 +6,28 @@
   <xsl:template match="history-save"/>\r
 \r
   <xsl:template match="history-settings">\r
-    <Title text="History Management Settings">\r
+    <Title text="_(History Management Settings)">\r
         <Grid>\r
-         <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="Enable history management" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
+         <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable history management)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
            <actionPerformed choose="enable">\r
              <xsl:call-template name="context"/>\r
            </actionPerformed>\r
          </Checkbox>\r
-         <Label gridx="1" gridy="2" text="History file:" enable="{@enable}"/>\r
+         <Label gridx="1" gridy="2" text="_(History file: )" enable="{@enable}"/>\r
          <Panel gridx="2" gridy="2" gridheight="2" fill="both"/>\r
           <FileSelector gridx="3" gridy="2" weightx="1" anchor="above_baseline"\r
                         listener="EntryListener"\r
                        enable="{@enable}"\r
                         href="{@history-file}"\r
                        mask="*.*"\r
-                       desc="History files"\r
+                       desc="_(History files)"\r
                         dir-selection="false"\r
                        check-entry="false">\r
            <entryChanged choose="history-file">\r
               <xsl:call-template name="context"/>\r
             </entryChanged>\r
           </FileSelector>\r
-         <Label gridx="1" gridy="3" text="History lines:" enable="{@enable}"/>\r
+         <Label gridx="1" gridy="3" text="_(History lines: )" enable="{@enable}"/>\r
          <NumericalSpinner gridx="3"\r
                           gridy="3"\r
                           weightx="0"\r
index 6d30f11..b813059 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<preference title="Preferences">
+<preference title="_(Preferences)">
   <body>
     <backups restore-path="" save-path=""/>
   </body>
index b82a108..ab38ce8 100644 (file)
@@ -4,14 +4,14 @@
   <xsl:template match="preference" mode="tooltip">Preferences</xsl:template>
   <xsl:template match="backups">
     <xsl:variable name="name" select="@name"/>
-    <Title text="Preferences backup">
+    <Title text="_(Preferences backup)">
     <Grid>
-      <Label gridx="1" gridy="1" weightx="0" text="Select a backup file "/>
+      <Label gridx="1" gridy="1" weightx="0" text="_(Select a backup file )"/>
       <FileSelector gridx="2" gridy="1" weightx="1" anchor="above_baseline"
                     listener="EntryListener"
                     href="{@restore-path}"
                     mask="*.xml"
-                    desc="Scilab Configuration files"
+                    desc="_(Scilab Configuration files)"
                     dir-selection="false"
                    check-entry="false">
         <entryChanged choose="restore-path">
@@ -19,7 +19,7 @@
         </entryChanged>
       </FileSelector>
       <Panel gridx="3" gridy="1" weightx="1" fill="both"/>
-      <Button gridx="4" gridy="1" text="Restore" listener="ActionListener">
+      <Button gridx="4" gridy="1" text="_(Restore)" listener="ActionListener">
         <actionPerformed callback="Restore Backup">
           <xsl:attribute name="path">
             <xsl:value-of select="@restore-path"/>
          <xsl:call-template name="context"/>
         </actionPerformed>
       </Button>
-      <Label gridx="1" gridy="2" weightx="0" text="Create a backup file "/>
+      <Label gridx="1" gridy="2" weightx="0" text="_(Create a backup file )"/>
       <FileSelector gridx="2" gridy="2" weightx="1" anchor="above_baseline"
                     listener="EntryListener"
                     href="{@save-path}"
                     mask="*.xml"
-                    desc="Scilab Configuration files"
+                    desc="_(Scilab Configuration files)"
                     dir-selection="false"
                    check-entry="false">
         <entryChanged choose="save-path">
@@ -40,7 +40,7 @@
         </entryChanged>
       </FileSelector>
       <Panel gridx="3" gridy="2" weightx="1" fill="both"/>
-      <Button gridx="4" gridy="2" text="Save" listener="ActionListener">
+      <Button gridx="4" gridy="2" text="_(Save)" listener="ActionListener">
         <actionPerformed callback="Save Backup">
          <xsl:attribute name="path">
             <xsl:value-of select="@save-path"/>
index 3bce79e..6ab63ed 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<interface version="0.02" path="1/" width="800" height="550">
+<interface version="0.03" path="1/" width="800" height="550">
   <general/>
   <preference/>
   <fonts/>
index 9cf4fbc..deebb65 100644 (file)
@@ -68,6 +68,7 @@ import org.scilab.modules.commons.xml.ScilabDocumentBuilderFactory;
 import org.scilab.modules.commons.xml.ScilabTransformerFactory;
 import org.scilab.modules.commons.xml.XConfiguration;
 import org.scilab.modules.gui.console.ScilabConsole;
+import org.scilab.modules.localization.Messages;
 import org.scilab.modules.localization.WindowsDefaultLanguage;
 
 /* This class is the common ancestor to both X_manager.
@@ -673,7 +674,12 @@ public abstract class XCommonManager {
             return NAV;
         }
 
-        return attr.getNodeValue();
+       String response = attr.getNodeValue();
+       if (response.startsWith("_(") && response.endsWith(")")) {
+           response = Messages.gettext(response.substring(2, response.length() - 1));
+       }
+
+        return response;
     }
 
     /**
index c1bcac0..3bd921f 100644 (file)
@@ -91,7 +91,7 @@ public final class XConfigManager extends XCommonManager {
         Frame topWindow = XCommonManager.getTopLevel();
 
         // Set up Swing Side
-        dialog = new JDialog(topWindow, "Scilab Preferences", true);
+        dialog = new JDialog(topWindow, Messages.gettext("Scilab Preferences"), true);
         topSwing = dialog.getContentPane();
         topSwing.setLayout(new BorderLayout());
         // AWT implies to set layout at construction time.
index 0435358..2528e16 100644 (file)
         <VBox>\r
           <Grid>\r
             <Panel gridx="1" gridy="1" weightx="1"/>\r
-            <Button gridx="2" gridy="1" weightx="0" text="Default" listener="ActionListener">\r
+            <Button gridx="2" gridy="1" weightx="0" text="_(Default)" listener="ActionListener">\r
               <actionPerformed callback="Default"/>\r
             </Button>\r
             <Panel gridx="3" gridy="1" weightx="0">\r
               <HSpace width="10"/>\r
             </Panel>\r
-            <Button gridx="4" gridy="1" weightx="0" text="Cancel" listener="ActionListener">\r
+            <Button gridx="4" gridy="1" weightx="0" text="_(Cancel)" listener="ActionListener">\r
               <actionPerformed callback="Cancel"/>\r
             </Button>\r
             <Panel gridx="5" gridy="1" weightx="0">\r
               <HSpace width="10"/>\r
             </Panel>\r
-            <Button gridx="6" gridy="1" weightx="0" text="OK" listener="ActionListener">\r
+            <Button gridx="6" gridy="1" weightx="0" text="_(OK)" listener="ActionListener">\r
               <actionPerformed callback="Ok"/>\r
             </Button>\r
             <Panel gridx="7" gridy="1" weightx="0">\r
               <HSpace width="10"/>\r
             </Panel>\r
-            <Button gridx="8" gridy="1" weightx="0" text="Apply" listener="ActionListener">\r
+            <Button gridx="8" gridy="1" weightx="0" text="_(Apply)" listener="ActionListener">\r
               <actionPerformed callback="Apply"/>\r
             </Button>\r
             <Panel gridx="9" gridy="1" weightx="0">\r
index 50ef693..1bf2ef1 100644 (file)
@@ -3,12 +3,12 @@
   <body>
     <scinotes-preferences restart-reopen="true" add-line-termination="true" number-of-recently-open="5" encoding="utf-8" eol="Unix (LF)" scinotes="true" cmd="" macro="" external-cmd="true"/>
   </body>
-  <display title="Display">
+  <display title="_(Display)">
     <body>
       <scinotes-display highlight-current-line="false" current-line-color="#FACADE" show-line-numbers="true" wrap-lines="true" keywords-colorization="true" highlight-brackets="true" brackets-color="#E40087" brackets-highlightment="Framed" brackets-onmouseover="true" highlight-keywords="true" keywords-color="#FFF3D2" keywords-highlightment="Filled" keywords-onmouseover="true" whereami="false" tab-size="4" tab-representation="chevrons" use-spaces="true" indent-size="4" automatic-indent="true" auto-complete-openers="true" auto-complete-keywords="true"/>
     </body>
   </display>
-  <header title="Header">
+  <header title="_(Header)">
     <body>
       <scinotes-header enable="false"><![CDATA[// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 // Copyright (C) {$current-year} - Scilab Enterprises - Mr Puffin
@@ -24,7 +24,7 @@
 ]]></scinotes-header>
     </body>
   </header>
-  <autosave title="Autosave">
+  <autosave title="_(Autosave)">
     <body>
       <scinotes-autosave enable="true" save-every="5" automatic-delete="true" append-filename="true" append-with="~" replace-with="tmp" source-flag="true" single-directory=""/>
     </body>
index a160ceb..84cf7e2 100644 (file)
@@ -3,7 +3,7 @@
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
 \r
   <xsl:template match="scinotes-preferences">\r
-    <Title text="Editor">\r
+    <Title text="_(Editor)">\r
       <VBox>\r
         <HBox>\r
           <xsl:call-template name="BooleanCheckBox">\r
@@ -23,7 +23,7 @@
           </xsl:choose>\r
         </xsl:variable>\r
         <Grid>\r
-          <Radiobutton value="{@external-cmd}" expected-value="true" listener="ActionListener" text="External editor: " gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{$enable}">\r
+          <Radiobutton value="{@external-cmd}" expected-value="true" listener="ActionListener" text="_(External editor: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{$enable}">\r
             <actionPerformed choose="external-cmd">\r
               <xsl:call-template name="context"/>\r
             </actionPerformed>\r
@@ -42,7 +42,7 @@
               <xsl:call-template name="context"/>\r
             </entryChanged>\r
           </FileSelector>\r
-          <Label gridx="2" gridy="2" text="(Don't forget to quote path containing white spaces)">\r
+          <Label gridx="2" gridy="2" text="_((Don't forget to quote path containing white spaces))">\r
             <xsl:attribute name="enable">\r
               <xsl:if test="@scinotes='false' and @external-cmd='true'">\r
                 <xsl:text>true</xsl:text>\r
@@ -52,7 +52,7 @@
           <Panel height="5" gridx="1" gridy="3">\r
             <VSpace height="5"/>\r
           </Panel>\r
-          <Radiobutton value="{@external-cmd}" expected-value="false" listener="ActionListener" text="Scilab command: " gridx="1" gridy="4" fill="none" weightx="0" anchor="west" enable="{$enable}">\r
+          <Radiobutton value="{@external-cmd}" expected-value="false" listener="ActionListener" text="_(Scilab command: )" gridx="1" gridy="4" fill="none" weightx="0" anchor="west" enable="{$enable}">\r
             <actionPerformed choose="external-cmd">\r
               <xsl:call-template name="context"/>\r
             </actionPerformed>\r
       </VBox>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="SciNotes General settings">\r
+    <Title text="_(SciNotes General settings)">\r
       <Grid>\r
         <Panel gridx="1" gridy="1" gridwidth="3">\r
           <xsl:call-template name="BooleanCheckBox">\r
             <xsl:with-param name="attr-name" select="'restart-reopen'"/>\r
-            <xsl:with-param name="text" select="'Restore previous session on start-up'"/>\r
+            <xsl:with-param name="text" select="'_(Restore previous session on start-up)'"/>\r
           </xsl:call-template>\r
         </Panel>\r
         <Panel gridx="1" gridy="2" gridwidth="3">\r
           <xsl:call-template name="BooleanCheckBox">\r
             <xsl:with-param name="attr-name" select="'add-line-termination'"/>\r
-            <xsl:with-param name="text" select="'Add carriage return at the end of the file.'"/>\r
+            <xsl:with-param name="text" select="'_(Add carriage return at the end of the file.)'"/>\r
           </xsl:call-template>\r
         </Panel>\r
-        <Label gridx="1" gridy="3" weightx="0" text="Number of recently opened files to display: "/>\r
+        <Label gridx="1" gridy="3" weightx="0" text="_(Number of recently opened files to display: )"/>\r
         <Panel gridx="2" gridy="3" gridheight="2" fill="both"/>\r
         <NumericalSpinner gridx="3"\r
                           gridy="3"\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </NumericalSpinner>\r
-        <Label gridx="1" gridy="4" weightx="0" text="Default file encoding: "/>\r
+        <Label gridx="1" gridy="4" weightx="0" text="_(Default file encoding: )"/>\r
         <Panel gridx="3" gridy="4">\r
           <xsl:call-template name="Select">\r
             <xsl:with-param name="among">\r
             </xsl:with-param>\r
           </xsl:call-template>\r
         </Panel>\r
-        <Label gridx="1" gridy="5" weightx="0" text="Default End-Of-Line: "/>\r
+        <Label gridx="1" gridy="5" weightx="0" text="_(Default End-Of-Line: )"/>\r
         <Panel gridx="3" gridy="5">\r
           <xsl:call-template name="Select">\r
             <xsl:with-param name="among">\r
   </xsl:template>\r
 \r
   <xsl:template match="scinotes-display">\r
-    <Title text="General display options">\r
+    <Title text="_(General display options)">\r
       <Grid>\r
-        <Checkbox checked="{@highlight-current-line}" selected-value="true" unselected-value="false" listener="ActionListener" text="Highlight current line: " gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@highlight-current-line}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight current line: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="highlight-current-line">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Color>\r
-        <Checkbox checked="{@show-line-numbers}" selected-value="true" unselected-value="false" listener="ActionListener" text="Show line numbers: " gridx="1" gridy="2" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@show-line-numbers}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Show line numbers: )" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="show-line-numbers">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Checkbox>\r
-        <Radiobutton value="{@whereami}" expected-value="true" listener="ActionListener" text="Whereami compatible" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">\r
+        <Radiobutton value="{@whereami}" expected-value="true" listener="ActionListener" text="_(Whereami compatible)" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">\r
           <actionPerformed choose="whereami">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
-        <Radiobutton value="{@whereami}" expected-value="false" listener="ActionListener" text="Normal" gridx="3" gridy="2" gridwidth="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">\r
+        <Radiobutton value="{@whereami}" expected-value="false" listener="ActionListener" text="_(Normal)" gridx="3" gridy="2" gridwidth="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">\r
           <actionPerformed choose="whereami">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
-        <Checkbox checked="{@wrap-lines}" selected-value="true" unselected-value="false" listener="ActionListener" text="Wrap lines" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@wrap-lines}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Wrap lines)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="wrap-lines">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
       </Grid>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="Keywords">\r
+    <Title text="_(Keywords)">\r
       <Grid>\r
         <Checkbox checked="{@keywords-colorization}" selected-value="true" unselected-value="false" listener="ActionListener" text="Enable keywords colorization" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="keywords-colorization">\r
           </actionPerformed>\r
         </Checkbox>\r
         <Panel gridx="2" gridy="1" weightx="1"/>\r
-        <Link gridx="3" gridy="1" weightx="0" listener="MouseListener" text="Set syntax Colors" enable="{@keywords-colorization}">\r
+        <Link gridx="3" gridy="1" weightx="0" listener="MouseListener" text="_(Set syntax Colors)" enable="{@keywords-colorization}">\r
           <mouseClicked set="path" value="3/" context="/" enable="{@keywords-colorization}"/>\r
         </Link>\r
-        <Checkbox checked="{@highlight-brackets}" selected-value="true" unselected-value="false" listener="ActionListener" text="Highlight corresponding brackets" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@highlight-brackets}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight corresponding brackets)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="highlight-brackets">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Checkbox>\r
         <Grid gridx="1" gridy="3" gridwidth="3" ipadx="10">\r
-          <Label gridx="1" gridy="1" weightx="0" text="Color: " enable="{@highlight-brackets}"/>\r
+          <Label gridx="1" gridy="1" weightx="0" text="_(Color: )" enable="{@highlight-brackets}"/>\r
           <Color color="{@brackets-color}" listener="ActionListener" gridx="2" gridy="1" weightx="0" enable="{@highlight-brackets}">\r
             <actionPerformed choose="brackets-color">\r
               <xsl:call-template name="context"/>\r
             </actionPerformed>\r
           </Color>\r
           <Panel gridx="3" gridy="1" weightx="1"/>\r
-          <Checkbox checked="{@brackets-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="Highlight on mouse over" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-brackets}">\r
+          <Checkbox checked="{@brackets-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight on mouse over)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-brackets}">\r
             <actionPerformed choose="brackets-onmouseover">\r
               <xsl:call-template name="context"/>\r
             </actionPerformed>\r
           </Checkbox>\r
           <Panel gridx="5" gridy="1" weightx="1"/>\r
-          <Label gridx="6" gridy="1" weightx="0" text="Style: " enable="{@highlight-brackets}"/>\r
-          <Panel gridx="7" gridy="1" weightx="0">\r
-            <xsl:call-template name="Select">\r
-              <xsl:with-param name="among">\r
-                <option brackets-highlightment="Filled"/>\r
-                <option brackets-highlightment="Framed"/>\r
-                <option brackets-highlightment="Underlined"/>\r
-              </xsl:with-param>\r
-              <xsl:with-param name="enable" select="@highlight-brackets" />\r
-            </xsl:call-template>\r
-          </Panel>\r
+          <Label gridx="6" gridy="1" weightx="0" text="_(Style: )" enable="{@highlight-brackets}"/>\r
+         <Select gridx="7" gridy="1" listener="ActionListener" enable="{@highlight-brackets}">\r
+           <actionPerformed choose="brackets-highlightment">\r
+             <xsl:call-template name="context"/>\r
+           </actionPerformed>\r
+           <option value="_(Filled)" key="Filled"/>\r
+           <option value="_(Framed)" key="Framed"/>\r
+           <option value="_(Underlined)" key="Underlined"/>\r
+         </Select>\r
         </Grid>\r
-        <Checkbox checked="{@highlight-keywords}" selected-value="true" unselected-value="false" listener="ActionListener" text="Highlight corresponding keywords (e.g. if ... end)" gridx="1" gridy="4" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@highlight-keywords}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight corresponding keywords (e.g. if ... end))" gridx="1" gridy="4" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="highlight-keywords">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Checkbox>\r
         <Grid gridx="1" gridy="5" gridwidth="3" ipadx="10">\r
-          <Label gridx="1" gridy="1" weightx="0" text="Color: " enable="{@highlight-keywords}"/>\r
+          <Label gridx="1" gridy="1" weightx="0" text="_(Color: )" enable="{@highlight-keywords}"/>\r
           <Color color="{@keywords-color}" listener="ActionListener" gridx="2" gridy="1" weightx="0" enable="{@highlight-keywords}">\r
             <actionPerformed choose="keywords-color">\r
               <xsl:call-template name="context"/>\r
             </actionPerformed>\r
           </Color>\r
           <Panel gridx="3" gridy="1" weightx="1"/>\r
-          <Checkbox checked="{@keywords-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="Highlight on mouse over" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-keywords}">\r
+          <Checkbox checked="{@keywords-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight on mouse over)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-keywords}">\r
             <actionPerformed choose="keywords-onmouseover">\r
               <xsl:call-template name="context"/>\r
             </actionPerformed>\r
           </Checkbox>\r
           <Panel gridx="5" gridy="1" weightx="1"/>\r
-          <Label gridx="6" gridy="1" weightx="0" text="Style: " enable="{@highlight-keywords}"/>\r
-          <Panel gridx="7" gridy="1" weightx="0">\r
-            <xsl:call-template name="Select">\r
-              <xsl:with-param name="among">\r
-                <option keywords-highlightment="Filled"/>\r
-                <option keywords-highlightment="Framed"/>\r
-              </xsl:with-param>\r
-              <xsl:with-param name="enable" select="@highlight-keywords" />\r
-            </xsl:call-template>\r
-          </Panel>\r
+          <Label gridx="6" gridy="1" weightx="0" text="_(Style: )" enable="{@highlight-keywords}"/>\r
+         <Select gridx="7" gridy="1" listener="ActionListener" enable="{@highlight-keywords}">\r
+           <actionPerformed choose="keywords-highlightment">\r
+             <xsl:call-template name="context"/>\r
+           </actionPerformed>\r
+           <option value="_(Filled)" key="Filled"/>\r
+           <option value="_(Framed)" key="Framed"/>\r
+         </Select>\r
         </Grid>\r
       </Grid>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="Tabulation &amp; Indentation">\r
+    <Title text="_(Tabulation and Indentation)">\r
       <Grid>\r
-        <Label text="Tabulation size:" gridx="1" gridy="1" weightx="0"/>\r
+        <Label text="_(Tabulation size: )" gridx="1" gridy="1" weightx="0"/>\r
         <NumericalSpinner gridx="2"\r
                           gridy="1"\r
                           weightx="0"\r
           </actionPerformed>\r
         </NumericalSpinner>\r
         <Panel gridx="3" gridy="1" weightx="1"/>\r
-        <Checkbox checked="{@use-spaces}" selected-value="true" unselected-value="false" listener="ActionListener" text="Use space" gridx="4" gridy="1" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@use-spaces}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Use space)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="use-spaces">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Checkbox>\r
 \r
-        <Label text="Representation:" gridx="1" gridy="2" weightx="0"/>\r
-        <Radiobutton value="{@tab-representation}" expected-value="chevrons" listener="ActionListener" text="Chevrons" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
+        <Label text="_(Representation: )" gridx="1" gridy="2" weightx="0"/>\r
+        <Radiobutton value="{@tab-representation}" expected-value="chevrons" listener="ActionListener" text="_(Chevrons)" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
           <actionPerformed choose="tab-representation">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
-        <Radiobutton value="{@tab-representation}" expected-value="hrule" listener="ActionListener" text="Horizontal rule" gridx="3" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
+        <Radiobutton value="{@tab-representation}" expected-value="hrule" listener="ActionListener" text="_(Horizontal rule)" gridx="3" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
           <actionPerformed choose="tab-representation">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
-        <Radiobutton value="{@tab-representation}" expected-value="vrule" listener="ActionListener" text="Vertical rule" gridx="4" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
+        <Radiobutton value="{@tab-representation}" expected-value="vrule" listener="ActionListener" text="_(Vertical rule)" gridx="4" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
           <actionPerformed choose="tab-representation">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
 \r
-        <Checkbox checked="{@automatic-indent}" selected-value="true" unselected-value="false" listener="ActionListener" text="Enable auto indentation" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@automatic-indent}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable auto indentation)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="use-spaces">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Checkbox>\r
-        <Label gridy="4" text="Indent size:"/>\r
+        <Label gridy="4" text="_(Indent size: )"/>\r
         <Panel gridy="4" gridx="2" >\r
           <xsl:call-template name="Select">\r
             <xsl:with-param name="among">\r
   </xsl:template>\r
 \r
   <xsl:template match="scinotes-autosave">\r
-    <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="Enable autosave in Scinotes">\r
+    <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable autosave in Scinotes)">\r
       <actionPerformed choose="enable">\r
         <xsl:call-template name="context"/>\r
       </actionPerformed>\r
     </Checkbox>\r
     <VSpace height="10"/>\r
-    <Title text="Save options">\r
+    <Title text="_(Save options)">\r
       <Grid>\r
-        <Label gridx="1" gridy="1" weightx="0" anchor="west" text="Save every " enable="{@enable}"/>\r
+        <Label gridx="1" gridy="1" weightx="0" anchor="west" text="_(Save every )" enable="{@enable}"/>\r
         <NumericalSpinner gridx="2"\r
                           gridy="1"\r
                           weightx="0"\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </NumericalSpinner>\r
-        <Label gridx="3" gridy="1" weightx="0" anchor="west" text=" minutes " enable="{@enable}"/>\r
+        <Label gridx="3" gridy="1" weightx="0" anchor="west" text="_( minutes )" enable="{@enable}"/>\r
         <Panel gridx="4" gridy="1" gridheight="1" fill="both"/>\r
       </Grid>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="Close options">\r
-      <Checkbox checked="{@automatic-delete}" selected-value="true" unselected-value="false" listener="ActionListener" text="Delete automatically saved files" enable="{@enable}">\r
+    <Title text="_(Close options)">\r
+      <Checkbox checked="{@automatic-delete}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Delete automatically saved files)" enable="{@enable}">\r
         <actionPerformed choose="automatic-delete">\r
           <xsl:call-template name="context"/>\r
         </actionPerformed>\r
       </Checkbox>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="Filename">\r
+    <Title text="_(Filename)">\r
       <Grid>\r
-        <Radiobutton value="{@append-filename}" expected-value="true" listener="ActionListener" text="Append filename with: " gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
+        <Radiobutton value="{@append-filename}" expected-value="true" listener="ActionListener" text="_(Append filename with: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
           <actionPerformed choose="append-filename">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
             <xsl:call-template name="context"/>\r
           </entryChanged>\r
         </Entry>\r
-        <Radiobutton value="{@append-filename}" expected-value="false" listener="ActionListener" text="Replace extension with: " gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
+        <Radiobutton value="{@append-filename}" expected-value="false" listener="ActionListener" text="_(Replace extension with: )" gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
           <actionPerformed choose="append-filename">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
       </Grid>\r
     </Title>\r
     <VSpace height="10"/>\r
-    <Title text="Location">\r
+    <Title text="_(Location)">\r
       <Grid>\r
-        <Radiobutton value="{@source-flag}" expected-value="true" listener="ActionListener" text="Source file directory" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
+        <Radiobutton value="{@source-flag}" expected-value="true" listener="ActionListener" text="_(Source file directory)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
           <actionPerformed choose="source-flag">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
-        <Radiobutton value="{@source-flag}" expected-value="false" listener="ActionListener" text="Single directory" gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
+        <Radiobutton value="{@source-flag}" expected-value="false" listener="ActionListener" text="_(Single directory)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
           <actionPerformed choose="source-flag">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r
         </Radiobutton>\r
         <Panel gridx="2" gridy="2" gridheight="1" fill="both"/>\r
         <FileSelector gridx="3" gridy="2" href="{@single-directory}" mask="*"\r
-                      desc="Choose an autosave directory"\r
+                      desc="_(Choose an autosave directory)"\r
                       dir-selection = "true"\r
                       listener="EntryListener">\r
           <xsl:attribute name="enable">\r
   </xsl:template>\r
 \r
   <xsl:template match="scinotes-header">\r
-    <Title text="Default header">\r
+    <Title text="_(Default header)">\r
       <Grid>\r
-        <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="Add a default header to new file" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
+        <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Add a default header to new file)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
           <actionPerformed choose="enable">\r
             <xsl:call-template name="context"/>\r
           </actionPerformed>\r