Update the console help:

- update italian/english translations
This commit is contained in:
Salvatore Larosa 2012-11-12 18:46:42 +01:00
parent 4195eaf72a
commit aaded5a737
4 changed files with 32 additions and 19 deletions

View File

@ -63,14 +63,14 @@
<tr> <tr>
<td> <td>
<p align="justify"> <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. Both are resizable by using the horizontal splitter.
Output area pane is a widget read-only which shows the commands output. 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 ...). 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. 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> <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> </p>
</td> </td>
</tr> </tr>

View File

@ -5,6 +5,14 @@ i18n_dict = {
use qgis.utils.iface object (instance of QgisInterface class). \ use qgis.utils.iface object (instance of QgisInterface class). \
To import the class QgisInterface can also use the dedicated \ To import the class QgisInterface can also use the dedicated \
button on the toolbar on the left.", 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" : "Features",
"features.title" : "Auto-completion and highlighting syntax for the following APIs:", "features.title" : "Auto-completion and highlighting syntax for the following APIs:",
"features.a" : "CTRL+SPACE to view the auto-completion list.", "features.a" : "CTRL+SPACE to view the auto-completion list.",
@ -28,7 +36,5 @@ i18n_dict = {
"toolbar.script.save" : "Tool to save a python script", "toolbar.script.save" : "Tool to save a python script",
"toolbar.settings" : "Settings", "toolbar.settings" : "Settings",
"toolbar.help" : "Help", "toolbar.help" : "Help",
"toolbar.run" : "Run command (like Enter key pressed)", "toolbar.run" : "Run command (like Enter key pressed)"
"thanks" : "Acknowledgments",
"thanks.text" : "Thanks to Larry Shaffer who provided the API files."
}; };

View File

@ -5,16 +5,25 @@ i18n_dict = {
usa l'oggetto qgis.utils.iface (istanza della classe QgisInterface). \ usa l'oggetto qgis.utils.iface (istanza della classe QgisInterface). \
Per importare la classe QgisInterface puoi usare anche il bottone dedicato che si trova \ Per importare la classe QgisInterface puoi usare anche il bottone dedicato che si trova \
sulla toolbar.", 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" : "Funzionalità",
"features.title" : "Completamento automatico ed evidenziazione della sintassi per le seguenti APIs:", "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.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.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", La cronologia verrà salvata all'interno del file ~/.qgis/console_history.txt",
"features.d" : "Possibilità di cancellare la storia dei comandi digitando '_clear'. \ "features.d" : "Possibilità di cancellare la storia dei comandi digitando '_clear'. \
La cronologia verrà cancellata dal file ~/.qgis/console_history.txt", La cronologia verrà cancellata dal file ~/.qgis/console_history.txt",
"features.e" : "Possibilità di cancellare completamente la cronologia dei comandi digitando '_clearAll'. \ "features.e" : "Possibilità di cancellare completamente la cronologia dei comandi digitando '_clearAll'. \
La cronologia verrà cancellata sia dal file che dalla memoria temporanea.", 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.api.doc" : "Apri la documentazione completa sulle API di QuantumGIS digitando '_api'.",
"features.pyqgis.doc" : "Apri il Cookbook PyQGIS digitando '_pyqgis'.", "features.pyqgis.doc" : "Apri il Cookbook PyQGIS digitando '_pyqgis'.",
"toolbar" : "Toolbar", "toolbar" : "Toolbar",
@ -28,7 +37,5 @@ i18n_dict = {
"toolbar.script.save" : "Strumento per salvare uno script python sul disco", "toolbar.script.save" : "Strumento per salvare uno script python sul disco",
"toolbar.settings" : "Impostazioni", "toolbar.settings" : "Impostazioni",
"toolbar.help" : "Aiuto", "toolbar.help" : "Aiuto",
"toolbar.run" : "Esegui comando (simile al tasto <Invio>)", "toolbar.run" : "Esegui comando (simile al tasto <Invio>)"
"thanks" : "Ringraziamenti",
"thanks.text" : "Grazie a Larry Shaffer per aver fornito i file con le API."
}; };

View File

@ -1,9 +1,11 @@
$.i18n.setDictionary(i18n_dict); $.i18n.setDictionary(i18n_dict);
$('h2#headerTitle').text($.i18n._('header.title')); $('span#headerTitle').text($.i18n._('header.title'));
$('span#headerSubject').text($.i18n._('header.subject')); $('span#headerSubject').text($.i18n._('header.subject'));
$('span#headerSubjectMain').text($.i18n._('header.subject.main')); $('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#featuresTitle').text($.i18n._('features.title'));
$('span#featuresA').text($.i18n._('features.a')); $('span#featuresA').text($.i18n._('features.a'));
$('span#featuresB').text($.i18n._('features.b')); $('span#featuresB').text($.i18n._('features.b'));
@ -12,7 +14,7 @@ $('span#featuresD').text($.i18n._('features.d'));
$('span#featuresE').text($.i18n._('features.e')); $('span#featuresE').text($.i18n._('features.e'));
$('span#featuresLoadAPI').text($.i18n._('features.api.doc')); $('span#featuresLoadAPI').text($.i18n._('features.api.doc'));
$('span#featuresLoadCookBook').text($.i18n._('features.pyqgis.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#toolbarTitle').text($.i18n._('toolbar.title'));
$('span#toolbarClear').text($.i18n._('toolbar.clear')); $('span#toolbarClear').text($.i18n._('toolbar.clear'));
$('span#toolbarIfaceClass').text($.i18n._('toolbar.iface')); $('span#toolbarIfaceClass').text($.i18n._('toolbar.iface'));
@ -24,5 +26,3 @@ $('span#toolbarScriptSave').text($.i18n._('toolbar.script.save'));
$('span#toolbarHelp').text($.i18n._('toolbar.help')); $('span#toolbarHelp').text($.i18n._('toolbar.help'));
$('span#toolbarSettings').text($.i18n._('toolbar.settings')); $('span#toolbarSettings').text($.i18n._('toolbar.settings'));
$('span#toolbarRun').text($.i18n._('toolbar.run')); $('span#toolbarRun').text($.i18n._('toolbar.run'));
$('h4#thanks').text($.i18n._('thanks'));
$('span#thanksText').text($.i18n._('thanks.text'));