Skip to content

Commit

Permalink
Update the console help:
Browse files Browse the repository at this point in the history
- update italian/english translations
  • Loading branch information
slarosa committed Nov 12, 2012
1 parent 4195eaf commit aaded5a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
6 changes: 3 additions & 3 deletions python/console/console_help/help.htm
Expand Up @@ -63,14 +63,14 @@
<tr>
<td>
<p align="justify">
<span id="">The console is splitted in two main panes, output and input areas.
<span id="headerSubjectA">The console is splitted in two main panes, output and input areas.
Both are resizable by using the horizontal splitter.
Output area pane is a widget read-only which shows the commands output.
You can drag and drop or copy text into input area (no matter if selected text contains >>> or ...).
Use 'Share on codepad' from contextual menu for sharing snippets code.
The context menu looks like the image below.<br><br>
The context menu looks like the image below.</span><br><br>
<img src="qrc:/images/console/imgHelpMenu.png"><br>
Input area pane is the interactive python shell for input commands.</span>
<span id="headerSubjectB">Input area pane is the interactive python shell for input commands.</span>
</p>
</td>
</tr>
Expand Down
12 changes: 9 additions & 3 deletions python/console/console_help/i18n/en_US.properties
Expand Up @@ -5,6 +5,14 @@ i18n_dict = {
use qgis.utils.iface object (instance of QgisInterface class). \
To import the class QgisInterface can also use the dedicated \
button on the toolbar on the left.",
"header.subject.A" : "The console is splitted in two main panes, output and input areas. \
Both are resizable by using the horizontal splitter. \
Output area pane is a widget read-only which shows the commands output. \
You can drag and drop or copy text into input area \
(no matter if selected text contains >>> or ...). \
Use 'Share on codepad' from contextual menu for sharing snippets code. \
The context menu looks like the image below.",
"header.subject.B" : "Input area pane is the interactive python shell for input commands.",
"features" : "Features",
"features.title" : "Auto-completion and highlighting syntax for the following APIs:",
"features.a" : "CTRL+SPACE to view the auto-completion list.",
Expand All @@ -28,7 +36,5 @@ i18n_dict = {
"toolbar.script.save" : "Tool to save a python script",
"toolbar.settings" : "Settings",
"toolbar.help" : "Help",
"toolbar.run" : "Run command (like Enter key pressed)",
"thanks" : "Acknowledgments",
"thanks.text" : "Thanks to Larry Shaffer who provided the API files."
"toolbar.run" : "Run command (like Enter key pressed)"
};
23 changes: 15 additions & 8 deletions python/console/console_help/i18n/it_IT.properties
Expand Up @@ -5,16 +5,25 @@ i18n_dict = {
usa l'oggetto qgis.utils.iface (istanza della classe QgisInterface). \
Per importare la classe QgisInterface puoi usare anche il bottone dedicato che si trova \
sulla toolbar.",
"header.subject.A" : "La console è divisa in due riquadri principali, uno per i comandi di input l'altro per \
quelli di output. Entrambi possono essere ridimensionate. \
L'area di output non è editabile, visualizza solo l'output del comando \
eseguito nella shell. \
È possibile fare il drag&drop o copiare il testo direttamente nell'area di input \
(il prompt >>> o ... viene filtrato automaticamente). \
Usa 'Share on codepad' dal menu contestuale per condividere pezzi di codice. \
Il menu contestuale si presenta come l'immagine sotto.",
"header.subject.B" : "L'area di input è la shell interrattiva di Python.",
"features" : "Funzionalità",
"features.title" : "Completamento automatico ed evidenziazione della sintassi per le seguenti APIs:",
"features.a" : "CTRL+SPACE per visualizzare la lista per l'autocompletamento di classi e metodi.",
"features.b" : "CTRL+ALT+SPACE per visualizzare la lista della cronologia dei comandi.",
"features.c" : "Possibilità di salvare la cronologia dei comandi digitando '_save' o semplicemente chiudendo il widget. \
"features.c" : "Possibilità di salvare la cronologia dei comandi digitando '_save' o semplicemente chiudendo il widget. \
La cronologia verrà salvata all'interno del file ~/.qgis/console_history.txt",
"features.d" : "Possibilità di cancellare la storia dei comandi digitando '_clear'. \
La cronologia verrà cancellata dal file ~/.qgis/console_history.txt",
"features.e" : "Possibilità di cancellare completamente la cronologia dei comandi digitando '_clearAll'. \
La cronologia verrà cancellata sia dal file che dalla memoria temporanea.",
"features.d" : "Possibilità di cancellare la storia dei comandi digitando '_clear'. \
La cronologia verrà cancellata dal file ~/.qgis/console_history.txt",
"features.e" : "Possibilità di cancellare completamente la cronologia dei comandi digitando '_clearAll'. \
La cronologia verrà cancellata sia dal file che dalla memoria temporanea.",
"features.api.doc" : "Apri la documentazione completa sulle API di QuantumGIS digitando '_api'.",
"features.pyqgis.doc" : "Apri il Cookbook PyQGIS digitando '_pyqgis'.",
"toolbar" : "Toolbar",
Expand All @@ -28,7 +37,5 @@ i18n_dict = {
"toolbar.script.save" : "Strumento per salvare uno script python sul disco",
"toolbar.settings" : "Impostazioni",
"toolbar.help" : "Aiuto",
"toolbar.run" : "Esegui comando (simile al tasto <Invio>)",
"thanks" : "Ringraziamenti",
"thanks.text" : "Grazie a Larry Shaffer per aver fornito i file con le API."
"toolbar.run" : "Esegui comando (simile al tasto <Invio>)"
};
10 changes: 5 additions & 5 deletions python/console/console_help/js/encoding.js
@@ -1,9 +1,11 @@
$.i18n.setDictionary(i18n_dict);

$('h2#headerTitle').text($.i18n._('header.title'));
$('span#headerTitle').text($.i18n._('header.title'));
$('span#headerSubject').text($.i18n._('header.subject'));
$('span#headerSubjectMain').text($.i18n._('header.subject.main'));
$('h4#features').text($.i18n._('features'));
$('span#headerSubjectA').text($.i18n._('header.subject.A'));
$('span#headerSubjectB').text($.i18n._('header.subject.B'));
$('span#features').text($.i18n._('features'));
$('span#featuresTitle').text($.i18n._('features.title'));
$('span#featuresA').text($.i18n._('features.a'));
$('span#featuresB').text($.i18n._('features.b'));
Expand All @@ -12,7 +14,7 @@ $('span#featuresD').text($.i18n._('features.d'));
$('span#featuresE').text($.i18n._('features.e'));
$('span#featuresLoadAPI').text($.i18n._('features.api.doc'));
$('span#featuresLoadCookBook').text($.i18n._('features.pyqgis.doc'));
$('h4#toolbar').text($.i18n._('toolbar'));
$('span#toolbar').text($.i18n._('toolbar'));
$('span#toolbarTitle').text($.i18n._('toolbar.title'));
$('span#toolbarClear').text($.i18n._('toolbar.clear'));
$('span#toolbarIfaceClass').text($.i18n._('toolbar.iface'));
Expand All @@ -24,5 +26,3 @@ $('span#toolbarScriptSave').text($.i18n._('toolbar.script.save'));
$('span#toolbarHelp').text($.i18n._('toolbar.help'));
$('span#toolbarSettings').text($.i18n._('toolbar.settings'));
$('span#toolbarRun').text($.i18n._('toolbar.run'));
$('h4#thanks').text($.i18n._('thanks'));
$('span#thanksText').text($.i18n._('thanks.text'));

0 comments on commit aaded5a

Please sign in to comment.