Showing with 9 additions and 3 deletions.
  1. +2 −2 i18n/qgis_it.ts
  2. +7 −1 python/console/console_output.py
4 changes: 2 additions & 2 deletions i18n/qgis_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8803,7 +8803,7 @@ Cambiare questa situazione prima, perché il plugin OSM non quale layer è la de
</message>
<message>
<source>Import Processing class</source>
<translation>Importa classe di elaborazione</translation>
<translation>Importa classe Processing</translation>
</message>
<message>
<source>Run command</source>
Expand Down Expand Up @@ -56730,7 +56730,7 @@ Descrizione: %3</translation>
<message>
<location filename="../python/console/console_settings.ui" line="535"/>
<source>Using prepared APIs file</source>
<translation>In uso il file delle API preinstallato</translation>
<translation>In uso il file delle API preparato</translation>
</message>
<message>
<location filename="../python/console/console_settings.ui" line="556"/>
Expand Down
8 changes: 7 additions & 1 deletion python/console/console_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ def insertInitText(self):
"Python {0} on {1}\n"
"## Type help(iface) for more info and list of methods.\n").format(sys.version,
socket.gethostname())
initText = self.setText(txtInit)
## some translation string for the console header ends without '\n'
## and the first command in console will be appended at the header text.
## The following code add a '\n' at the end of the string if not present.
if txtInit.endswith('\n'):
initText = self.setText(txtInit)
else:
initText = self.setText(txtInit + '\n')

def refreshLexerProperties(self):
self.setLexers()
Expand Down