Mon, 07 Apr 2014 19:16:36 +0200
Added a configurable template code editor font.
--- a/APIs/Python3/eric5.api Mon Apr 07 18:46:02 2014 +0200 +++ b/APIs/Python3/eric5.api Mon Apr 07 19:16:36 2014 +0200 @@ -6137,6 +6137,7 @@ eric5.Preferences.ConfigurationPages.TasksPage.TasksPage.save?4() eric5.Preferences.ConfigurationPages.TasksPage.TasksPage?1() eric5.Preferences.ConfigurationPages.TasksPage.create?4(dlg) +eric5.Preferences.ConfigurationPages.TemplatesPage.TemplatesPage.on_editorFontButton_clicked?4() eric5.Preferences.ConfigurationPages.TemplatesPage.TemplatesPage.save?4() eric5.Preferences.ConfigurationPages.TemplatesPage.TemplatesPage?1() eric5.Preferences.ConfigurationPages.TemplatesPage.create?4(dlg)
--- a/Documentation/Help/source.qhp Mon Apr 07 18:46:02 2014 +0200 +++ b/Documentation/Help/source.qhp Mon Apr 07 19:16:36 2014 +0200 @@ -11787,6 +11787,7 @@ <keyword name="TemplatesPage" id="TemplatesPage" ref="eric5.Preferences.ConfigurationPages.TemplatesPage.html#TemplatesPage" /> <keyword name="TemplatesPage (Constructor)" id="TemplatesPage (Constructor)" ref="eric5.Preferences.ConfigurationPages.TemplatesPage.html#TemplatesPage.__init__" /> <keyword name="TemplatesPage (Module)" id="TemplatesPage (Module)" ref="eric5.Preferences.ConfigurationPages.TemplatesPage.html" /> + <keyword name="TemplatesPage.on_editorFontButton_clicked" id="TemplatesPage.on_editorFontButton_clicked" ref="eric5.Preferences.ConfigurationPages.TemplatesPage.html#TemplatesPage.on_editorFontButton_clicked" /> <keyword name="TemplatesPage.save" id="TemplatesPage.save" ref="eric5.Preferences.ConfigurationPages.TemplatesPage.html#TemplatesPage.save" /> <keyword name="TemplatesReader" id="TemplatesReader" ref="eric5.E5XML.TemplatesReader.html#TemplatesReader" /> <keyword name="TemplatesReader (Constructor)" id="TemplatesReader (Constructor)" ref="eric5.E5XML.TemplatesReader.html#TemplatesReader.__init__" />
--- a/Documentation/Source/eric5.Preferences.ConfigurationPages.TemplatesPage.html Mon Apr 07 18:46:02 2014 +0200 +++ b/Documentation/Source/eric5.Preferences.ConfigurationPages.TemplatesPage.html Mon Apr 07 19:16:36 2014 +0200 @@ -63,6 +63,9 @@ <td><a href="#TemplatesPage.__init__">TemplatesPage</a></td> <td>Constructor</td> </tr><tr> +<td><a href="#TemplatesPage.on_editorFontButton_clicked">on_editorFontButton_clicked</a></td> +<td>Private method used to select the font to be used by the code editor.</td> +</tr><tr> <td><a href="#TemplatesPage.save">save</a></td> <td>Public slot to save the Templates configuration.</td> </tr> @@ -76,6 +79,11 @@ <b>TemplatesPage</b>(<i></i>) <p> Constructor +</p><a NAME="TemplatesPage.on_editorFontButton_clicked" ID="TemplatesPage.on_editorFontButton_clicked"></a> +<h4>TemplatesPage.on_editorFontButton_clicked</h4> +<b>on_editorFontButton_clicked</b>(<i></i>) +<p> + Private method used to select the font to be used by the code editor. </p><a NAME="TemplatesPage.save" ID="TemplatesPage.save"></a> <h4>TemplatesPage.save</h4> <b>save</b>(<i></i>)
--- a/Preferences/ConfigurationPages/TemplatesPage.py Mon Apr 07 18:46:02 2014 +0200 +++ b/Preferences/ConfigurationPages/TemplatesPage.py Mon Apr 07 19:16:36 2014 +0200 @@ -7,6 +7,8 @@ Module implementing the Templates configuration page. """ +from PyQt4.QtCore import pyqtSlot + from .ConfigurationPageBase import ConfigurationPageBase from .Ui_TemplatesPage import Ui_TemplatesPage @@ -36,6 +38,8 @@ self.templatesMultiDialogButton.setChecked(True) self.templatesToolTipCheckBox.setChecked( Preferences.getTemplates("ShowTooltip")) + self.editorFont = Preferences.getTemplates("EditorFont") + self.editorFontSample.setFont(self.editorFont) def save(self): """ @@ -53,6 +57,15 @@ Preferences.setTemplates( "ShowTooltip", self.templatesToolTipCheckBox.isChecked()) + Preferences.setTemplates("EditorFont", self.editorFont) + + @pyqtSlot() + def on_editorFontButton_clicked(self): + """ + Private method used to select the font to be used by the code editor. + """ + self.editorFont = self.selectFont( + self.editorFontSample, self.editorFont) def create(dlg):
--- a/Preferences/ConfigurationPages/TemplatesPage.ui Mon Apr 07 18:46:02 2014 +0200 +++ b/Preferences/ConfigurationPages/TemplatesPage.ui Mon Apr 07 19:16:36 2014 +0200 @@ -1,47 +1,48 @@ -<ui version="4.0" > +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> <class>TemplatesPage</class> - <widget class="QWidget" name="TemplatesPage" > - <property name="geometry" > + <widget class="QWidget" name="TemplatesPage"> + <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>532</width> - <height>374</height> + <height>541</height> </rect> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout" name="verticalLayout"> <item> - <widget class="QLabel" name="headerLabel" > - <property name="text" > - <string><b>Configure Templates</b></string> + <widget class="QLabel" name="headerLabel"> + <property name="text"> + <string><b>Configure Templates</b></string> </property> </widget> </item> <item> - <widget class="Line" name="line11_2_2_2_2_2" > - <property name="frameShape" > + <widget class="Line" name="line11_2_2_2_2_2"> + <property name="frameShape"> <enum>QFrame::HLine</enum> </property> - <property name="frameShadow" > + <property name="frameShadow"> <enum>QFrame::Sunken</enum> </property> - <property name="orientation" > + <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> <item> - <widget class="QGroupBox" name="groupBox" > - <property name="title" > + <widget class="QGroupBox" name="groupBox"> + <property name="title"> <string>Groups</string> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout"> <item> - <widget class="QCheckBox" name="templatesAutoOpenGroupsCheckBox" > - <property name="toolTip" > + <widget class="QCheckBox" name="templatesAutoOpenGroupsCheckBox"> + <property name="toolTip"> <string>Select, if groups having entries should be opened automatically</string> </property> - <property name="text" > + <property name="text"> <string>Expand groups automatically</string> </property> </widget> @@ -50,45 +51,45 @@ </widget> </item> <item> - <widget class="QGroupBox" name="groupBox_2" > - <property name="title" > + <widget class="QGroupBox" name="groupBox_2"> + <property name="title"> <string>Variables</string> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout"> <item> - <layout class="QHBoxLayout" > + <layout class="QHBoxLayout"> <item> - <widget class="QLabel" name="textLabel1_19" > - <property name="text" > + <widget class="QLabel" name="textLabel1_19"> + <property name="text"> <string>Separator:</string> </property> </widget> </item> <item> - <widget class="QLineEdit" name="templatesSeparatorCharEdit" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Minimum" > + <widget class="QLineEdit" name="templatesSeparatorCharEdit"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="toolTip" > + <property name="toolTip"> <string>Enter the character that encloses variables</string> </property> - <property name="maxLength" > + <property name="maxLength"> <number>1</number> </property> </widget> </item> <item> <spacer> - <property name="orientation" > + <property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="sizeType" > + <property name="sizeType"> <enum>QSizePolicy::Expanding</enum> </property> - <property name="sizeHint" stdset="0" > + <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> @@ -99,27 +100,27 @@ </layout> </item> <item> - <widget class="QGroupBox" name="groupBox_3" > - <property name="title" > + <widget class="QGroupBox" name="groupBox_3"> + <property name="title"> <string>Input method for variables</string> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout"> <item> - <widget class="QRadioButton" name="templatesMultiDialogButton" > - <property name="toolTip" > + <widget class="QRadioButton" name="templatesMultiDialogButton"> + <property name="toolTip"> <string>Select, if a new dialog should be opened for every template variable</string> </property> - <property name="text" > + <property name="text"> <string>One dialog per template variable</string> </property> </widget> </item> <item> - <widget class="QRadioButton" name="templatesSingleDialogButton" > - <property name="toolTip" > + <widget class="QRadioButton" name="templatesSingleDialogButton"> + <property name="toolTip"> <string>Select, if only one dialog for all template variables should be shown</string> </property> - <property name="text" > + <property name="text"> <string>One dialog for all template variables</string> </property> </widget> @@ -131,17 +132,17 @@ </widget> </item> <item> - <widget class="QGroupBox" name="groupBox_4" > - <property name="title" > + <widget class="QGroupBox" name="groupBox_4"> + <property name="title"> <string>Tooltips</string> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout"> <item> - <widget class="QCheckBox" name="templatesToolTipCheckBox" > - <property name="toolTip" > + <widget class="QCheckBox" name="templatesToolTipCheckBox"> + <property name="toolTip"> <string>Select, if the template text should be shown in a tooltip</string> </property> - <property name="text" > + <property name="text"> <string>Show template text in tooltip</string> </property> </widget> @@ -150,11 +151,46 @@ </widget> </item> <item> + <widget class="QGroupBox" name="groupBox_5"> + <property name="title"> + <string>Template Editor</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QPushButton" name="editorFontButton"> + <property name="toolTip"> + <string>Press to select the font to be used for the code editor</string> + </property> + <property name="text"> + <string>Editor Font</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QLineEdit" name="editorFontSample"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="text"> + <string>Template Code Editor</string> + </property> + <property name="alignment"> + <set>Qt::AlignHCenter</set> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> <spacer> - <property name="orientation" > + <property name="orientation"> <enum>Qt::Vertical</enum> </property> - <property name="sizeHint" stdset="0" > + <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height>
--- a/Preferences/__init__.py Mon Apr 07 18:46:02 2014 +0200 +++ b/Preferences/__init__.py Mon Apr 07 19:16:36 2014 +0200 @@ -959,6 +959,7 @@ "SingleDialog": False, "ShowTooltip": False, "SeparatorChar": "$", + "EditorFont": "Monospace,9,-1,5,50,0,0,0,0,0", } # defaults for plugin manager related stuff @@ -2607,6 +2608,11 @@ if key in ["SeparatorChar"]: return prefClass.settings.value( "Templates/" + key, prefClass.templatesDefaults[key]) + elif key in ["EditorFont"]: + f = QFont() + f.fromString(prefClass.settings.value( + "Templates/" + key, prefClass.templatesDefaults[key])) + return f else: return toBool(prefClass.settings.value( "Templates/" + key, prefClass.templatesDefaults[key])) @@ -2620,7 +2626,10 @@ @param value the value to be set @param prefClass preferences class used as the storage area """ - prefClass.settings.setValue("Templates/" + key, value) + if key in ["EditorFont"]: + prefClass.settings.setValue("Templates/" + key, value.toString()) + else: + prefClass.settings.setValue("Templates/" + key, value) def getPluginManager(key, prefClass=Prefs):
--- a/Templates/TemplatePropertiesDialog.py Mon Apr 07 18:46:02 2014 +0200 +++ b/Templates/TemplatePropertiesDialog.py Mon Apr 07 19:16:36 2014 +0200 @@ -14,6 +14,8 @@ from E5Gui import E5MessageBox +import Preferences + class TemplatePropertiesDialog(QDialog, Ui_TemplatePropertiesDialog): """ @@ -31,6 +33,8 @@ super().__init__(parent) self.setupUi(self) + self.templateEdit.setFont(Preferences.getTemplates("EditorFont")) + if not groupMode: self.nameEdit.setWhatsThis(self.tr( """<b>Template name<b><p>Enter the name of the template."""
--- a/i18n/eric5_cs.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_cs.ts Mon Apr 07 19:16:36 2014 +0200 @@ -36879,27 +36879,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Předvolby exportu</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Předvolby importu</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation type="unfinished"></translation> </message> @@ -56074,72 +56074,72 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Nastavení šablony</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Šablona:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>&Nápověda</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Zadejte text šablony</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Jméno:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Skupina:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Vše</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Jazyk:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Jazyk:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Zavřít dialog</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>Opravdu chcete zavřít dialog?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Nápověda šablony</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -56148,27 +56148,27 @@ <translation><b>Text šablony</b><p>Zadejte text šablony do tohoto prostoru. Při použití šablony bude každý výskyt $VAR$ nahrazen asociovaným textem. Oddělující znak lze nastavit přes dialog nastavení.</p><p>Pro více informací stiskněte tlačítko nápovědy.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>Zadejte název šablony/skupiny. Šablony jsou automaticky sestaveny na toto jméno.</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Popisek:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Zadejte popisek šablony</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>Název šablony</p><p>Zadejte název šablony. Šablony mohou být autoamticky sestaveny na toto jméno. Z důvodu podpory automatického sestavení musí název šablony obsahovat pouze písmena (a-z a A-Z), čísla (0-9) a podtržítka (_).</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation><p>Proměnné se v šablonách používají tak, že se jejich jména vloží mezi $ znaky. Když je v šabloně použiteje, budete vyzváni k zadání hodnoty proměnné.</p><p>Příklad šablony: Toto je $VAR$</p><p>Když použiteje tuto šablonu, budete vyzváni k zadání hodnoty proměnné $VAR$. Všechny výskyty $VAR$ pak budou nahrazeny touto hodnotou.</p><p>Pokud chcete do šablony umístit pouze znak $, zadejte jej zdvojeně: $$. Takovýto výskyt bude automaticky nahrazen na jeden znak $.</p><p>Pokud chcete proměnnou nějak formátovat, zadejte ':' a pak název filtru. (např. $VAR:ml$) Podporované filtry jsou:<table><tr> <td>ml</td> <td>Víceřádkové formátování. První řádek s hodnotou proměnné začíná s textem, který na tom samém řádku předcházel proměnnou. Všechny ostatní řádky dané hodnoty jsou zleva doplněny mezerami tak, aby byly zarovnány pod začátek hodnoty na prvním řádku.</td></tr><tr> <td>rl</td> <td>Formátování s opakováním. Každá řádka hodnoty začíná s textem, který na tom samém řádku předcházel proměnnou.</td></tr></table></p><p>V šablonách lze použít následující předdefinované proměnné:<table><tr><td>date</td><td>aktuální datum v ISO formátu (YYYY-MM-DD)</td></tr><tr><td>year</td><td>aktuální rok</td></tr><tr><td>project_name</td><td>jméno projektu (je-li nějaké)</td></tr><tr><td>project_path</td><td>cesta k projektu (je-li nějaká)</td></tr><tr><td>path_name</td><td>celá cesta k aktuálnímu souboru</td></tr><tr><td>dir_name</td><td>celá cesta k nadřazené složce</td></tr><tr><td>file_name</td><td>jméno aktuálního souboru (bez cesty)</td></tr><tr><td>base_name</td><td>stejně jako <i>file_name</i>, ale bez extenze</td></tr><tr><td>ext</td><td>extenze aktuálního souboru</td></tr><tr><td>cur_select</td><td>kurzorem vybraný text</td></tr><tr><td>insertion</td><td>Nastaví pozici kurzoru po té, co je šablona vložena.</td></tr><tr><td>select_start</td><td>Nastaví span vybraného textu v šabloně po té, co je šablona vložena (používá se společně s 'select_end').</td></tr><tr><td>select_end</td><td>Nastaví span vybraného textu v šabloně po té, co je šablona vložena (používá se společně s 'select_start').</td></tr><tr><td>clipboard</td><td>obsah schránky</td></tr></table></p><p>Chcete-li změnit výchozí oddělovač na něco jiného, prosím, použijte dialog nastavení konfigurace.</p></translation> </message> @@ -56338,80 +56338,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Konfigurace šablon</b></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Skupiny</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>Vybrat, jestliže skupiny mají vstupy, které mají být otevřeny automaticky</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Rozložit skupiny automaticky</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Proměnné</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Oddělovač:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>Zadejte znak, který ohraničuje proměnné</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Vstupní metoda pro proměnné</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>Vybrat, jestliže je otevřen nový dialog pro každou proměnnou šablony</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Na každou proměnnou šablony jeden dialog</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>Vybrat, má-li se zobrazit jen jeden dialog pro všechny proměnné šablony</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Jeden dialog pro všechny proměnné šablony</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Tooltipy</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>Vybrat, jestliže text šablony má být zobrazen v tooltipu</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Zobrazit text šablony v tooltipech</translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>Terminal</name>
--- a/i18n/eric5_de.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_de.ts Mon Apr 07 19:16:36 2014 +0200 @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS><TS version="2.0" language="de" sourcelanguage=""> +<!DOCTYPE TS> +<TS version="2.1" language="de"> <context> <name>AboutDialog</name> <message> @@ -1943,8 +1944,8 @@ </message> <message> <location filename="../Helpviewer/Bookmarks/BookmarksMenu.py" line="142"/> - <source>Open in New &Tab<byte value="x9"/>Ctrl+LMB</source> - <translation>In neuem &Register öffnen<byte value="x9"/>Strg+LMK</translation> + <source>Open in New &Tab Ctrl+LMB</source> + <translation>In neuem &Register öffnen Strg+LMK</translation> </message> </context> <context> @@ -2180,8 +2181,8 @@ </message> <message> <location filename="../Helpviewer/Bookmarks/BookmarksToolBar.py" line="90"/> - <source>Open in New &Tab<byte value="x9"/>Ctrl+LMB</source> - <translation>In neuem &Register öffnen<byte value="x9"/>Strg+LMK</translation> + <source>Open in New &Tab Ctrl+LMB</source> + <translation>In neuem &Register öffnen Strg+LMK</translation> </message> </context> <context> @@ -15977,8 +15978,8 @@ </message> <message> <location filename="../Helpviewer/HelpBrowserWV.py" line="1083"/> - <source>Open Link in New Tab<byte value="x9"/>Ctrl+LMB</source> - <translation>Link in neuem Fenster öffnen<byte value="x9"/>Strg+LMK</translation> + <source>Open Link in New Tab Ctrl+LMB</source> + <translation>Link in neuem Fenster öffnen Strg+LMK</translation> </message> <message> <location filename="../Helpviewer/HelpBrowserWV.py" line="1156"/> @@ -34930,27 +34931,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Einstellungen exportieren</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Einstellungen importieren</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation>Properties-Dateien (*.ini);;Alle Dateien (*)</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation>Wähle den Python 2-Interpreter</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation>Wähle den zu verwendenden Python 2-Interpreter aus:</translation> </message> @@ -53406,72 +53407,72 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Alle</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Sprache:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Sprache:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>GRUPPE</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Hilfe zu Vorlagen</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Vorlageneigenschaften</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Vorlage:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>&Hilfe</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+H</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Gib den Vorlagentext ein</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Name:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Gruppe:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Dialog schließen</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>Soll der Dialog wirklich geschlossen werden?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -53482,27 +53483,27 @@ <p>Drücke den Hilfeknopf für weitergehende Informationen.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>Gib den Namen der Vorlage/Gruppe ein. Vorlagen werden auf Grund dieses Namens vervollständigt.</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Beschreibung:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Gib eine Beschreibung für die Vorlage ein</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>Vorlagenname</b><p>Gib den Namen der Vorlage ein. Vorlagen werden basierend auf ihrem Namen vervollständigt. Um dies zu unterstützen, darf der Name nur Buchstaben (a-z und A-Z), Ziffern (0-9) und Unterstriche (_) enthalten.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation><p>Um Variablen in einer Vorlage zu verwenden, muss der Variablenname mit einem $-Zeichen umschlossen werden. Wenn die Vorlage angewandt wird, wird nach einem Wert für diese Variable gefragt.</p><p>Beispiel: Dies ist eine $Variable$</p><p>Wenn diese Vorlage angewandt wird, wird nach einem Wert für die Variable $Variable$ gefragt. Jedes Vorkommen von $Variable$ wird dann durch den eingegebenen Text ersetzt.</p><p>Wird in der Vorlage ein einzelnes $-Zeichen, das keine Variable umschließt, benötigt, so muss dies als $$ (zwei Dollar Zeichen) geschrieben werden. Bei der Anwendung der Vorlage wird dies automatisch zu einem $-Zeichen.</p><p>Soll der Wert einer Variablen speziell behandelt werden, so muss dem Variablennamen ein „:“ und eine Formatangabe folgen (z.B. $Variable:ml$). Die unterstützten Formatangaben sind:<table><tr><td>ml</td><td>Gibt ein mehrzeiliges Format an. Der ersten Zeile des Variablenwertes wird die Zeichenkette vor der Variablen der gleichen Zeile in der Vorlage vorangestellt. Allen anderen wird soviel Leerraum vorangestellt, wie die Zeile der Variablen.</td></tr><tr><td>rl</td><td>Gibt ein wiederholendes Format an. Jede Zeile des Variablenwertes wird die Zeichenkette vor der Variablen der gleichen Zeile in der Vorlage vorangestellt.</td></tr></table></p><p>Die folgenden vordefinierten Variablen können in einer Vorlage verwendet werden:<table><tr><td>date</td><td>das aktuelle Datum im ISO-Format (JJJJ-MM-TT)</td></tr><tr><td>year</td><td>das aktuelle Jahr</td></tr><tr><td>project_name</td><td>der Name des Projektes (falls vorhanden)</td></tr><tr><td>project_path</td><td>der Pfad des Projektes (falls vorhanden)/td></tr><tr><td>path_name</td><td>voller Pfadname der aktuellen Datei</td></tr><tr><td>dir_name</td><td>voller Pfadname des Verzeichnisses</td></tr><tr><td>file_name</td><td>Dateiname der aktuellen Datei (ohne Verzeichnis)</td></tr><tr><td>base_name</td><td>wie <i>file_name</i>, aber ohne Erweiterung</td></tr><tr><td>ext</td><td>die Erweiterung der aktuellen Datei</td></tr><tr><td>cur_select</td><td>der aktuell ausgewählte Text</td></tr><tr><td>insertion</td><td>Setzt den Cursor an diese Stelle nachdem das Template eingefügt wurde.</td></tr><tr><td>select_start</td><td>Setzt die Auswahl nachdem das Template eingefügt wurde (verwendet zusammen mit „select_end“).</td></tr><tr><td>select_end</td><td>Setzt die Auswahl nachdem das Template eingefügt wurde (verwendet zusammen mit „select_start“).</td></tr><tr><td>clipboard</td><td>der Text der Zwischenablage</td></tr></table></p><p>Soll das einen Variablennamen umschließende Zeichen geändert werden, so kann dies im Konfigurationsdialog geschehen.</p></translation> </message> @@ -53661,80 +53662,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Gruppen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>Auswählen, um Gruppen, die Einträge besitzen, automatisch zu öffnen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Gruppen automatisch expandieren</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Variablen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Trennzeichen:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>Gib das Zeichen ein, das Variablen umschließt</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Eingabemethode für Variablen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>Auswählen, um einen neuen Dialog für jede Vorlagenvariable zu öffnen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Ein Dialog pro Vorlagenvariable</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>Auswählen, um nur einen Dialog für alle Vorlagenvariablen anzuzeigen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Ein Dialog für alle Vorlagenvariablen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Kurzinfo</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>Auswählen, um den Vorlagentext in der Kurzinfo anzuzeigen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Vorlagentext in Kurzinfo anzeigen</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Vorlagen einrichten</b></translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation>Vorlageneditor</translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation>Drücken, um den Font für den Codeeditor auszuwählen</translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation>Editorfont</translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation>Vorlagentexteditor</translation> + </message> </context> <context> <name>ToolConfigurationDialog</name>
--- a/i18n/eric5_en.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_en.ts Mon Apr 07 19:16:36 2014 +0200 @@ -34764,27 +34764,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation type="unfinished"></translation> </message> @@ -52910,47 +52910,47 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -52959,52 +52959,52 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation type="unfinished"></translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation type="unfinished"></translation> </message> @@ -53163,80 +53163,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>ToolConfigurationDialog</name>
--- a/i18n/eric5_es.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_es.ts Mon Apr 07 19:16:36 2014 +0200 @@ -34931,27 +34931,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Exportar Preferencias</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Importar Preferencias</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation>Archivo de Propiedades (*.ini);;Todos los archivos (*)</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation>Seleccionar Intérprete de Python2</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation>Seleccionar el intérprete de Python2 a utilizar:</translation> </message> @@ -53358,72 +53358,72 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Propiedades de la Plantilla</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Plantilla:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>&Ayuda</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+A</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Introduzca el texto de la plantilla</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Nombre:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Grupo:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Todo</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Lenguaje:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Lenguaje:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>GROUP</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Cerrar diálogo</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>¿Realmente desea cerrar el diálogo?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Ayuda de la Plantilla</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -53435,27 +53435,27 @@ cambiar a través del diálogo de preferencias.Pulse el botón de ayuda para más información.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>Introduzca el nombre de la plantilla/grupo. Las plantillas son autocompletadas en base a este nombre.</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Descripción:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Introduzca una descripción para la plantilla</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>Nombre de plantilla</b><p>Introduzca el nombre de la plantilla. Las plantillas pueden ser autocompletadas en base a este nombre. Para dar soporte a autocompletar, el nombre de plantilla debe consistir solamente en letras (a-z y A-Z) y guiones bajos (_).</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation><p>Para utilizar variables en una plantilla, solamente tiene que delimitar el nombre de variable con carácteres $. Al utilizar la plantilla, se le solicitará un valor para esta variable.</p><p>Ejemplo de plantilla: esto es una $VAR$</p><p>Al utilizar esta plantilla se le solicitará un valor para la variable $VAR$. Todas las ocurrencias de $VAR$ serán entonces reemplazadas con el valor introducido.</p><p>Si necesita utilizar el caracter $ en una plantilla que no vaya a ser utilizado para delimitar una variable, teclee $$ (dos carácteres dólar). Se reemplazarán automáticamente con un carácter $ único al utilizar la plantilla.</p><p>Si desea tratar específicamente los contenidos de alguna variable, el nombre de variable debe ser seguido por un ':' y un especificador de formato.(por ejemplo $VAR:ml$). Los especificadores soportados son:<table><tr><td>ml</td><td>A la primera línea de los contenidos de la variable se le antepone la cadena que hay antes de la variable en la misma línea de la plantilla. Al resto de las líneas se les antepone la misma cantidad de espacios en blanco que la línea que contiene la variable.</td></tr><tr><td>rl</td><td>Especifica un formato de repetición de líneas. A cada línea de los contenidos de la variable se le antepone la cadena que hay antes de la variable en la misma línea de la plantilla.</td></tr></table></p><p>Las siguientes variables predefinidas se pueden utilizar en una plantilla:<table><tr><td>date</td><td>fecha actual formato ISO (AAAA-MM-DD)</td></tr><tr><td>year</td><td>el año actual</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>el nombre del proyecto (si existe)</td></tr><tr><td>path_name</td><td>ruta completa del archivo actual</td></tr><tr><td>dir_name</td><td>ruta completa del directorio padre</td></tr><tr><td>file_name</td><td>nombre del archivo actual (sin directorio)</td></tr><tr><td>base_name</td><td>como <i>file_name</i>, pero sin extensión</td></tr><tr><td>ext</td><td>la extensión del archivo actual</td></tr><tr><td>cur_select</td><td>el texto seleccionado actualmente</td></tr><tr><td>insertion</td><td>Establece punto de inserción para el cursor despues de insertar la plantilla.</td></tr><tr><td>select_start</td><td>Establece intervalo de texto seleccionado en la plantilla tras ser ésta insertada (usado junto a 'select_end').</td></tr><tr><td>select_end</td><td>Establece intervalo de texto seleccionado en la plantilla tras ser ésta insertada (usado junto a 'select_start').</td></tr><tr><td>clipboard</td><td>el texto del portapapeles</td></tr></table></p><p>Si desea cambiar el delimitador a otro distinto, por favor utilice el diálogo de configuración para hacerlo.</p></translation> </message> @@ -53614,80 +53614,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Configurar Plantillas</b></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Grupos</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>Seleccionar si los grupos con entradas deben abrirse automáticamente</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Expandir grupos automaticamente</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Variables</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Separador:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>Introducir el carácter de delimitación de variables</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Método de entrada para las variables</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>Seleccionar si se debe abrir un nuevo diálogo para cada variable de plantilla</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Un diálogo por variable de plantilla</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>Seleccionar si se debe abrir un único diálogo para todas las variables de plantilla</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Un diálogo para todas las variables de plantilla</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Globos de ayuda (tooltips)</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>Seleccionar si el texto de la plantilla debe ser mostrado en un globo de ayuda</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Mostrar texto de la plantilla en un globo de ayuda</translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>ToolConfigurationDialog</name>
--- a/i18n/eric5_fr.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_fr.ts Mon Apr 07 19:16:36 2014 +0200 @@ -38091,27 +38091,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Export des préférences</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Import des préférences</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation type="unfinished"></translation> </message> @@ -58908,72 +58908,72 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Tous</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Langue:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Langue:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>GROUP</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Aide sur les gabarits</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Propriétés du gabarit</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Gabarit:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>A&ide</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+I</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Entrer le texte du gabarit</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Nom:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Groupe:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Fermer la fenêtre</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>Voulez-vous réellement fermer cette fenêtre?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -58987,27 +58987,27 @@ <translation type="obsolete"><p>Pour utiliser des variables dans un gabarit, il suffit d'encadrer le nom de variable entre dux caractères '$'. Au moment de l'utilisation du gabarit, des valeurs pour ces variables vous seront demandées.</p><p>Exemple de gabarit: Ceci est une $VAR$</p><p>Quand vous utiliserez ce gabarit,il vous sera demandé une valeur pour la variable VAR. Toutes les occurences de $VAR$ seront remplacées par la valeur que vous aurez indiquée.</p><p>Si vous souhaitez utiliser le caractère $ dans un gabarit, tapez deux fois le caractère dollar $$ à la place. Ils seront remplacés automatiquement par un seul dollar.</p><p>Le contenu d'une variable peut être traité spécifiquement lorsque le nom de variable est suivi du caractère ':' et d'un mot clé (e.g. $VAR:ml$). Les mots clés acceptés sont :<table><tr><td><b>ml</b></td><td>Spécifie un contenu de variable sur plusieurs lignes. Dans ce cas, la portion de ligne précédant le nom de la variable dans le gabarit est répétée pour la première ligne. Pour les autres lignes de la variable, une chaîne d'espaces de même longueur est reproduite comme préfixe.</td></tr><tr><td><b>rl</b></td><td>Spécifie également un contenu sur plusieurs lignes. Dans ce cas, la portion de ligne précédant le nom de la variable est répété en préfixe à toutes les lignes.</td></tr></table></p><p>Les variables suivantes peuvent être définie dans le gabarit:<table><tr><td><b>date</b></td><td>date du jour au format ISO (YYYY-MM-DD)</td></tr><tr><td><b>year</b></td><td>année courante</td></tr><tr><td><b>project_name</b></td><td>nom du projet (s'il yen a un)</td></tr><tr><td><b>path_name</b></td><td>chemin complet du fichier courant</td></tr><tr><td><b>dir_name</b></td><td>chemin copmplet du répertoire</td></tr><tr><td><b>file_name</b></td><td>nom du fichier (sans le chemin)</td></tr><tr><td><b>base_name</b></td><td>comme <i>file_name</i>, mais sans l'extension</td></tr><tr><td><b>ext</b></td><td>extension du fichier courant</td></tr></table></p><p>Vous pouvez utiliser un autre délimiteur que le dollar en utilisant la fenêtre de configuration.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>Entrer le nom du gabarit/groupe. Les gabarits sont auto-complétés à partir de ce nom.</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Description:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Entrer une description pour le gabarit</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>Nom de gabarit</b><p>Entrer le nom du gabarit. Les gabarits peuvent être auto-complétés à partir de ce nom. Pour supporter l'autocomplétion, le nom de gabarit ne doit contenir que des lettres (a-z et A-Z), des chiffres (0-9) et des underscores (_).</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation type="unfinished"></translation> </message> @@ -59206,80 +59206,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Groupes</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>Cocher, si les groupes ayant plusieurs entrées (gabarits) doivent être ouverts automatiquement</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Déployer automatiquement les groupes</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Variables</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Séparateur:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>Entrer le caractère encadrant les noms de variables</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Mode de saisie des variables</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>Cocher, si une nouvelle fenêtre doit être ouverte pour chaque variable du gabarit</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Une fenêtre par variable du gabarit</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>Cocher pour saisir toutes les variables du gabarit dans une seule fenêtre</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Un fenêtre pour toutes les variables du gabarit</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Aide contextuelle</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>Cocher, si le contenu du gabarit doit être indiqué dans une aide contexuelle, en passant la souris sur le nom du gabarit</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Afficher les gabarits dans une aide contexuelle</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Configuration des gabarits</b></translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>Terminal</name>
--- a/i18n/eric5_it.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_it.ts Mon Apr 07 19:16:36 2014 +0200 @@ -37009,27 +37009,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Esporta Preferenze</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Importa Preferenze</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation>File proprietà (*.ini);;Tutti i file(*)</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation type="unfinished"></translation> </message> @@ -56601,72 +56601,72 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Tutti</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Linguaggio:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Linguaggio:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>GRUPPO</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Aiuto template</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Proprietà template</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Template:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>&Aiuto</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+A</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Inserisci il testo del modello</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Nome:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Gruppo:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Chiudi dialogo</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>Vuoi veramente chiudere questo dialogo ?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -56679,27 +56679,27 @@ <p>Premi il pulsante di aiuto per maggiori informazioni.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>Insersci il nome del modello/gruppo. I modelli vengono completati automaticamente da questo nome.</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Descrizione:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Inserisci la descrizione del modello</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>Nome template<b><p>Inserisci il nome del template. I templae possono avere il completamento automatico. Per supportare il completamento automatico, il nome del template deve consistere solo di lettere (a-z e A-Z), numeri (0-9) e underscore(_).</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation><p>Per usare una variabile in un template, devi solo racchiuderla con il carattare $. Quando usi il template, ti verrà chiesto il valora di questa variable.</p><p>Esempio di template: This is a $VAR$</p><p>Quando usi questo template, ti verrà chiesto il valore della variabile $VAR$. Ogni ricorrenza di $VAR$ verrà quindi sostituita con quello che hai inserito.</p><p>Se hai bisogno di un singolo $-character in un template, che non è usato per racchiudere una variabile, scrivi $$(due caratteri dollaro). Verranno automaticamente sostituiti con un singoleo $-character quando usi il template.</p><p>Se vuoi trattare in maniera specifica il contenuto di una variabile, il nome della variabile deve essere seguito da ':' ed un indentificato di formato (e.g. $VAR:ml$). Gli indicatori supportati sono:<table><tr><td>ml</td><td>Specifica una formattazione multilinea. La prima linea del contenuto della variabile è preceduto da una stringa che ricorre prima della variabile sulla stessa riga del template. Tutte le altre linee sono precedute dallo stesso numero di spazi della linea che contiene la variabile.</td></tr><tr><td>rl</td><td>Specifica una formattazione ripetuta. Ogni linea del contenuto della variabile è preceduto da una stringa trovata prima della variabile sulla linea del template.</td></tr></table></p><p>Le seguenti variabili predefinite possono essere utilizzate:<table><tr><td>date</td><td>Data odierna in formato ISO (YYYY-MM-DD)</td></tr><tr><td>year</td><td>anno corrente</td></tr><tr><td>project_name</td><td>Nome del progetto (se presente)</td></tr><tr><td>project_path</td><td>percorso del progetto (se presente)</td></tr><tr><td>path_name</td><td>percorso completo del file corrente</td></tr><tr><td>dir_name</td><td>percorso completo della directory</td></tr><tr><td>file_name</td><td>nome del file corrente (senza directory)</td></tr><tr><td>base_name</td><td>come <i>file_name</i>, ma senza estensione</td></tr><tr><td>ext</td><td>l'estensione del file corrente</td></tr><tr><td>cur_select</td><td>il testo correntemente selezionato </td></tr><tr><td>insertion</td><td>Selezione il punto d'inserimento del cursore dopo che il template è inserito.</td></tr><tr><td>select_start</td><td>Seleziona l'estensione del testo selezionato nel template dopo che il template è stato inserito (usato insieme a 'select_end').</td></tr><tr><td>select_end</td><td>Seleziona l'estensione del testo selezionato nel template dopo che il template è stato inserito (usato insieme a 'select_start').</td></tr><tr><td>clipboard</td><td>il testo nella clipboard</td></tr></table></p><p>Se vuoi modificare il delimitatore di default, usa il dialogo di configurazione.</p></translation> </message> @@ -56863,80 +56863,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Gruppi</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>Selezione se i gruppi con degli elementi devono essere aperti automaticamente</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Espandi gruppi automaticamente</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Variabili</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Separatore:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>Inserisci il carattere che racchiude le variabili</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Metodi di input per le variabili</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>Seleziona se un nuovo dialogo deve essere aperto per ogni variabile dei template</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Un dialogo per variabile</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>Seleziona se solo un dialogo per tutte le variabili dei template deve essere mostrato</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Un dialogo per tutte le variabili</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Suggerimenti</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>Seleziona se il testo del template deve essere mostrato in un suggerimento</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Mostra testo template in un suggerimento</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Configura i template</b></translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>Terminal</name>
--- a/i18n/eric5_ru.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_ru.ts Mon Apr 07 19:16:36 2014 +0200 @@ -37162,27 +37162,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Экспорт предпочтений</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Импорт предпочтений</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation>Файлы свойств (*.ini);;Все файлы (*)</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation>Выбрать интерпретатор Python 2</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation>Выбрать интерпретатор Python 2 для использования:</translation> </message> @@ -56678,72 +56678,72 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Все</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Язык:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Язык:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>ГРУППА</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Помощь по шаблону</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Свойства шаблона</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Шаблон:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>&Помощь</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+H</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Задайте текст шаблона</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Имя:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Группа:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Закрыть диалог</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>Вы действительно хотите закрыть диалог?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -56754,27 +56754,27 @@ <p>Нажмите кнопку помощи для дополнительной информации.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>Введите имя шаблона.</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Описание:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Введите описание шаблона</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>Имя шаблона<b><p>Введите имя шаблона. Если имя состоит из букв, цифр и символов подчеркивания (a-z, A-Z, 0-9 и _), то будет возможно автозаполнение.</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation><p>Чтобы использовать переменные в шаблоне, вы просто должны заключить имя переменной в $-символы. При использовании шаблона вам будет предложено задать значение этой переменной.</p><p>Пример шаблона: Это $VAR$</p><p>При использовании этого шаблона вам будет предложено задать значение переменной $VAR$. Любые появления $VAR$ затем будут заменены на то что вы ввели.</p><p>Если вам в шаблоне нужен одиночный $-символ, который не используется для выделения переменной, используйте $$ (два $-символа). Они будут автоматически заменены одним $-символов при использовании шаблона.</p><p>Если вы хотите чтобы содержание переменной рассматривалось специальным образом, то укажите спецификатор форматирования отделив его двоеточиемот имени переменной (например, $VAR:ml$). Поддерживаемые спецификаторы:<table><tr><td>ml</td><td>Указывает многострочное форматирование. Содержимое переменных этого типа форматируется как параграф с отступом вправо. Величина отступа определяется текстом который предшествует данной переменной.</td></tr><tr><td>rl</td><td>То же самое как ml, но вместо пробелов отступ заполняется текстом который предшествует данной переменной.</td></tr></table></p><p> В шаблонах можно использовать следующие предопределённые переменные:<table><tr><<td>date</td><td>Текущая дата в ИСО формате (YYYY-MM-DD)</td></tr><tr><td>year</td ><td>Текущий год</td></tr><tr><td>project_name</td><td>название проекта (если таковой имеются)</td></tr><tr><td>project_path</td><td>путь проекта</td></tr><tr><td>path_name</td><td>полный путь текущего файла</td ></tr><tr><td>dir_name</td><td>полный путь к родительскому каталогу</td></tr><tr><td>file_name</td><td>имя текущего файла (без каталогов)</td></tr><tr><td>base_name</td><td>как<i>file_name</i> но без расширения</td></tr><tr><td>ext</td><td>расширение текущего файла</td></tr><tr><td>cur_select</td><td>выбранный текст</td></tr><tr><td>insertion</td><td>Устанавливает курсор в данной позиции после того как шаблон будет реализован.</td></tr><tr><td>select_start</td><td>Устанавливает начало выделенного текста в шаблоне после того как шаблон будет вставлен (используется вместе с 'select_end').</td></tr><tr><td>select_end</td><td>Устанавливает конец выделенного текста в шаблон после того как шаблон будет вставлен (используется вместе с 'select_start').</td></tr><tr><td>clipboard</td><td>текст в буфере обмена</td></tr></table></p><p>Символ разделителя можно изменить в диалоге настроек.</p></translation> </message> @@ -56938,80 +56938,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Группы</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>Должны ли непустые группы открываться автоматически</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Автоматически разворачивать группы</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Переменные</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Разделитель:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>Задайте символ, ограничивающий переменные</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Метод ввода для переменных</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>Для каждой шаблонной переменной должен открываться диалог</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Один диалог на шаблонную переменную</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>Для всех шаблонных переменных используется один диалог</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Один диалог для всех шаблонных переменных</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Всплывающие подсказки</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>Должен ли во всплывающей подсказке показываться текст шаблона</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Показывать текст шаблона во всплывающей подсказке</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Настроить шаблоны</b></translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>Terminal</name>
--- a/i18n/eric5_tr.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_tr.ts Mon Apr 07 19:16:36 2014 +0200 @@ -36620,27 +36620,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>Seçenekleri Dışa Aktar</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>Seçenekleri İçe Aktar</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation type="unfinished"></translation> </message> @@ -55457,47 +55457,47 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>Şablon Özellikleri</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>Adı:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>Açıklama:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>Şablon için bir açıklama giriniz</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>Grup:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>Şablon:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>Şablonun metnini giriniz</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -55506,52 +55506,52 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>&Yardım</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+H</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>Hepsi</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>Dil:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>Dil:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>GRUP</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>Diyaloğu kapat</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>Diyaloğu kapatmak istediğinizden emin misiniz?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>Şablon Yardımı</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation type="unfinished"></translation> </message> @@ -55710,80 +55710,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>Şablonları Ayarla</b></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>Gruplar</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>Grupları otomatik olarak genişlet</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>Değişkenler</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>Ayırıcı:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>Değişkenler için girdi yöntemi</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>Herbir şablon değişkenine bir diyalog</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>Her diyalog için tüm şablon değişkenleri</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>Araçyardımı</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>Şablon metnini ipucunda göster</translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>Terminal</name>
--- a/i18n/eric5_zh_CN.GB2312.ts Mon Apr 07 18:46:02 2014 +0200 +++ b/i18n/eric5_zh_CN.GB2312.ts Mon Apr 07 19:16:36 2014 +0200 @@ -38010,27 +38010,27 @@ <context> <name>Preferences</name> <message> - <location filename="../Preferences/__init__.py" line="1198"/> + <location filename="../Preferences/__init__.py" line="1199"/> <source>Export Preferences</source> <translation>导出首选项</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Import Preferences</source> <translation>导入首选项</translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1226"/> + <location filename="../Preferences/__init__.py" line="1227"/> <source>Properties File (*.ini);;All Files (*)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select Python2 Interpreter</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Preferences/__init__.py" line="1325"/> + <location filename="../Preferences/__init__.py" line="1326"/> <source>Select the Python2 interpreter to be used:</source> <translation type="unfinished"></translation> </message> @@ -58819,47 +58819,47 @@ <context> <name>TemplatePropertiesDialog</name> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="13"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="14"/> <source>Template Properties</source> <translation>模板属性</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="24"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="25"/> <source>Name:</source> <translation>名称:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="31"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="32"/> <source>Enter the name of the template/group. Templates are autocompleted upon this name.</source> <translation>输入模板或组的名称。根据该名称自动完成模板。</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="38"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="39"/> <source>Description:</source> <translation>描述:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="45"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="46"/> <source>Enter a description for the template</source> <translation>为模板输入描述</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="52"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="53"/> <source>Group:</source> <translation>组:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="66"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="67"/> <source>Template:</source> <translation>模板:</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="76"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="83"/> <source>Enter the text of the template</source> <translation>输入模板的文本</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="79"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="86"/> <source><b>Template Text</b> <p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might @@ -58871,47 +58871,47 @@ <p>点击帮助按钮以获取更多信息。</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="96"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="103"/> <source>&Help</source> <translation>帮助(&H)</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.ui" line="99"/> + <location filename="../Templates/TemplatePropertiesDialog.ui" line="106"/> <source>Alt+H</source> <translation>Alt+H</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="35"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="39"/> <source><b>Template name<b><p>Enter the name of the template. Templates may be autocompleted upon this name. In order to support autocompletion. the template name must only consist of letters (a-z and A-Z), digits (0-9) and underscores (_).</p></source> <translation><b>模板名称<b><p>输入模板或组的名称。根据该名称自动完成模板。若要支持自动完成,则模板名称只能包含字母(a-z 和 A-Z)、数字(0-9)和下划线(_)。</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="47"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="51"/> <source>All</source> <translation>全部</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="59"/> - <source>Language:</source> - <translation>语言:</translation> - </message> - <message> <location filename="../Templates/TemplatePropertiesDialog.py" line="63"/> + <source>Language:</source> + <translation>语言:</translation> + </message> + <message> + <location filename="../Templates/TemplatePropertiesDialog.py" line="67"/> <source>GROUP</source> <translation>组</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Close dialog</source> <translation>关闭对话框</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="95"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="99"/> <source>Do you really want to close the dialog?</source> <translation>确定要关闭对话框?</translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source>Template Help</source> <translation>模板帮助</translation> </message> @@ -58921,7 +58921,7 @@ <translation type="obsolete"><p>要在模板中使用变量,只需在变量名两边使用“$”符号即可。在使用模板时,将提示输入该变量的值。</p><p>模板实例:这是一个 $VAR$</p><p>在使用该模板时,将提示为 $VAR$ 输入一个值。任何出现 $VAR$ 的地方随后都将被你输入的内容替换。</p><p>如果在模板中需要单个“$”字符而不是用于标记变量,只需输入 $$(两个美元符号)即可。在使用模板时,它们自动被单个“$”字符替换。</p><p>如果希望对变量内容进行特殊处理,则变量名后必须紧跟一个“:”和一个格式化分类符(如:$VAR:ml$)。支持的分类符有:<table><tr><td>ml</td><td>指定一个多行格式。变量内容的第一行最前面将加上变量在模板相同行之前出现的字符串。所有其它各行前面将加上相同数量的空格,与包含变量的行一样。</td></tr><tr><td>rl</td><td>指定一个重复行模式。在变量内容的每一行前面都将加上变量在模板相同行之前出现的字符串。</td></tr></table></p><p>在模板中可以使用以下预定义变量:<table><tr><td>date</td><td>ISO 格式的当天日期(年-月-日)</td></tr><tr><td>year</td><td>当年</td></tr><tr><td>project_name</td><td>项目名称(如果有的话)</td></tr><tr><td>path_name</td><td>当前文件的完整路径</td></tr><tr><td>dir_name</td><td>当前文件夹的完整路径</td></tr><tr><td>file_name</td><td>当前文件名(不包含文件夹)</td></tr><tr><td>base_name</td><td>与 <i>file_name</i> 相同,但不包含扩展名</td></tr><tr><td>ext</td><td>当前文件的扩展名</td></tr></table></p><p>若要将默认的定义符号改变为其它内容,请使用配置对话框进行设置。</p></translation> </message> <message> - <location filename="../Templates/TemplatePropertiesDialog.py" line="107"/> + <location filename="../Templates/TemplatePropertiesDialog.py" line="111"/> <source><p>To use variables in a template, you just have to enclose the variablename with $-characters. When you use the template, you will then be asked for a value for this variable.</p><p>Example template: This is a $VAR$</p><p>When you use this template you will be prompted for a value for the variable $VAR$. Any occurrences of $VAR$ will then be replaced with whatever you've entered.</p><p>If you need a single $-character in a template, which is not used to enclose a variable, type $$(two dollar characters) instead. They will automatically be replaced with a single $-character when you use the template.</p><p>If you want a variables contents to be treated specially, the variablename must be followed by a ':' and one formatting specifier (e.g. $VAR:ml$). The supported specifiers are:<table><tr><td>ml</td><td>Specifies a multiline formatting. The first line of the variable contents is prefixed with the string occurring before the variable on the same line of the template. All other lines are prefixed by the same amount of whitespace as the line containing the variable.</td></tr><tr><td>rl</td><td>Specifies a repeated line formatting. Each line of the variable contents is prefixed with the string occuring before the variable on the same line of the template.</td></tr></table></p><p>The following predefined variables may be used in a template:<table><tr><td>date</td><td>today's date in ISO format (YYYY-MM-DD)</td></tr><tr><td>year</td><td>the current year</td></tr><tr><td>project_name</td><td>the name of the project (if any)</td></tr><tr><td>project_path</td><td>the path of the project (if any)</td></tr><tr><td>path_name</td><td>full path of the current file</td></tr><tr><td>dir_name</td><td>full path of the parent directory</td></tr><tr><td>file_name</td><td>the current file name (without directory)</td></tr><tr><td>base_name</td><td>like <i>file_name</i>, but without extension</td></tr><tr><td>ext</td><td>the extension of the current file</td></tr><tr><td>cur_select</td><td>the currently selected text</td></tr><tr><td>insertion</td><td>Sets insertion point for cursor after template is inserted.</td></tr><tr><td>select_start</td><td>Sets span of selected text in template after template is inserted (used together with 'select_end').</td></tr><tr><td>select_end</td><td>Sets span of selected text in template after template is inserted (used together with 'select_start').</td></tr><tr><td>clipboard</td><td>the text of the clipboard</td></tr></table></p><p>If you want to change the default delimiter to anything different, please use the configuration dialog to do so.</p></source> <translation type="unfinished"></translation> </message> @@ -59120,80 +59120,100 @@ <context> <name>TemplatesPage</name> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="16"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="17"/> <source><b>Configure Templates</b></source> <translation><b>配置模板</b></translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="36"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="37"/> <source>Groups</source> <translation>组</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="42"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="43"/> <source>Select, if groups having entries should be opened automatically</source> <translation>选择是否自动打开包含条目的组</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="45"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="46"/> <source>Expand groups automatically</source> <translation>自动展开组</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="55"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="56"/> <source>Variables</source> <translation>变量</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="63"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="64"/> <source>Separator:</source> <translation>分隔符:</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="76"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="77"/> <source>Enter the character that encloses variables</source> <translation>输入包围变量的符号</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="104"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="105"/> <source>Input method for variables</source> <translation>变量的输入方法</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="110"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="111"/> <source>Select, if a new dialog should be opened for every template variable</source> <translation>选择是否为每个模板变量打开一个新对话框</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="113"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="114"/> <source>One dialog per template variable</source> <translation>每个模板变量一个对话框</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="120"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="121"/> <source>Select, if only one dialog for all template variables should be shown</source> <translation>选择是否所有模板变量都显示在一个对话框中</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="123"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="124"/> <source>One dialog for all template variables</source> <translation>所有模板变量一个对话框</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="136"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="137"/> <source>Tooltips</source> <translation>工具提示</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="142"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="143"/> <source>Select, if the template text should be shown in a tooltip</source> <translation>选择模板文本是否显示在工具提示中</translation> </message> <message> - <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="145"/> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="146"/> <source>Show template text in tooltip</source> <translation>在工具提示中显示模板文本</translation> </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="156"/> + <source>Template Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="162"/> + <source>Press to select the font to be used for the code editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="165"/> + <source>Editor Font</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../Preferences/ConfigurationPages/TemplatesPage.ui" line="175"/> + <source>Template Code Editor</source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>Terminal</name>