Skip to content

Commit d49ca20

Browse files
author
homann
committedJan 18, 2008
More translation clean-ups
git-svn-id: http://svn.osgeo.org/qgis/trunk@8002 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fc7be03 commit d49ca20

7 files changed

+41
-32
lines changed
 

‎src/app/qgsabout.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ QgsAbout::~QgsAbout()
4848

4949
void QgsAbout::init()
5050
{
51+
52+
// Set up text in dialog.
53+
QString format("<p align=center>%1</p><p align=center><a href=%2>%3</a></p>");
54+
QString sentence1 = tr("Quantum GIS is licensed under the GNU General Public License");
55+
QString link("http://www.gnu.org/licenses");
56+
lblUrls->setHtml(format.arg(sentence1).arg(link).arg(link));
57+
QgsDebugMsg(format.arg(sentence1).arg(link).arg(link));
58+
5159
// set the 60x60 icon pixmap
5260
QPixmap icon(QgsApplication::iconsPath() + "qgis-icon-60x60.png");
5361
qgisIcon->setPixmap(icon);

‎src/gui/qgslayerprojectionselector.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ QgsLayerProjectionSelector::QgsLayerProjectionSelector(QWidget *parent,
2828
: QDialog(parent, fl)
2929
{
3030
setupUi(this);
31+
32+
// Set up text edit pane
33+
QString format("<h2>%1</h2>%2 %3");
34+
QString header = tr("Define this layer's projection:");
35+
QString sentence1 = tr("This layer appears to have no projection specification.");
36+
QString sentence2 = tr("By default, this layer will now have its projection set to that of the project"
37+
", but you may override this by selecting a different projection below.");
38+
textEdit->setHtml(format.arg(header).arg(sentence1)
39+
.arg(sentence2));
40+
3141
connect(pbnOK, SIGNAL(clicked()), this, SLOT( accept()));
3242

3343
QApplication::restoreOverrideCursor();

‎src/ui/qgsabout.ui

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,9 @@
9696
</item>
9797
<item row="3" column="0" >
9898
<widget class="QTextEdit" name="lblUrls" >
99-
<property name="html" >
100-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
101-
p, li { white-space: pre-wrap; }
102-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Arial'; font-size:12pt; font-weight:400; font-style:normal; text-decoration:none;">
103-
&lt;p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;">Quantum GIS is licensed under the GNU General Public License&lt;/p>
104-
&lt;p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;">http://www.gnu.org/licenses&lt;/p>&lt;/body>&lt;/html></string>
105-
</property>
99+
<property name="html">
100+
<string></string>
101+
</property>
106102
</widget>
107103
</item>
108104
<item row="2" column="0" >

‎src/ui/qgscustomprojectiondialogbase.ui

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
<item row="1" column="0" colspan="2" >
4242
<widget class="QTextBrowser" name="textBrowser" >
4343
<property name="html" >
44-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
45-
p, li { white-space: pre-wrap; }
46-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
47-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:10pt;">You can define your own custom projection here. The definition must conform to the proj4 format for specifying a Spatial Reference System.&lt;/p>&lt;/body>&lt;/html></string>
44+
<string>You can define your own custom projection here. The definition must conform to the proj4 format for specifying a Spatial Reference System.</string>
4845
</property>
4946
</widget>
5047
</item>
@@ -177,6 +174,17 @@ p, li { white-space: pre-wrap; }
177174
</property>
178175
<item row="0" column="0" colspan="3" >
179176
<widget class="QLabel" name="textLabel1_2" >
177+
<property name="font" >
178+
<font>
179+
<family>Arial</family>
180+
<pointsize>18</pointsize>
181+
<weight>50</weight>
182+
<italic>false</italic>
183+
<bold>false</bold>
184+
<underline>false</underline>
185+
<strikeout>false</strikeout>
186+
</font>
187+
</property>
180188
<property name="text" >
181189
<string>Transform from WGS84 to the chosen projection</string>
182190
</property>
@@ -185,10 +193,7 @@ p, li { white-space: pre-wrap; }
185193
<item row="1" column="0" colspan="3" >
186194
<widget class="QTextBrowser" name="textBrowser_2" >
187195
<property name="html" >
188-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
189-
p, li { white-space: pre-wrap; }
190-
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
191-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:10pt;">Use the text boxes below to test the projection definition you are creating. Enter a coordinate where both the lat/long and the projected result are known (for example by reading off a map). Then press the calculate button to see if the projection definition you are creating is accurate.&lt;/p>&lt;/body>&lt;/html></string>
196+
<string>Use the text boxes below to test the projection definition you are creating. Enter a coordinate where both the lat/long and the projected result are known (for example by reading off a map). Then press the calculate button to see if the projection definition you are creating is accurate.</string>
192197
</property>
193198
</widget>
194199
</item>
@@ -224,7 +229,7 @@ p, li { white-space: pre-wrap; }
224229
<item row="3" column="2" >
225230
<widget class="QLabel" name="textLabel2_3" >
226231
<property name="text" >
227-
<string>Projected Corrdinate System</string>
232+
<string>Projected Coordinate System</string>
228233
</property>
229234
</widget>
230235
</item>

‎src/ui/qgslayerprojectionselectorbase.ui

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656
<property name="readOnly" >
5757
<bool>true</bool>
5858
</property>
59-
<property name="html" >
60-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-size:12pt; font-weight:600;">Define this layer's projection:&lt;/span>&lt;/p>&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;/p>&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This layer appears to have no projection specification. By default, this layer will now have its projection set to that of the project, but you may override this by selecting a different projection below.&lt;/p>&lt;/body>&lt;/html></string>
61-
</property>
6259
</widget>
6360
</item>
6461
<item row="2" column="0" >

‎src/ui/qgsnewconnectionbase.ui

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
<item row="3" column="1" >
6262
<widget class="QCheckBox" name="cb_publicSchemaOnly" >
6363
<property name="toolTip" >
64-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:12pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Restrict the search to the public schema for spatial tables not in the geometry_columns table&lt;/p>&lt;/body>&lt;/html></string>
64+
<string>Restrict the search to the public schema for spatial tables not in the geometry_columns table</string>
6565
</property>
6666
<property name="whatsThis" >
67-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:12pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">When searching for spatial tables that are not in the geometry_columns tables, restrict the search to tables that are in the public schema (for some databases this can save lots of time)&lt;/p>&lt;/body>&lt;/html></string>
67+
<string>When searching for spatial tables that are not in the geometry_columns tables, restrict the search to tables that are in the public schema (for some databases this can save lots of time)</string>
6868
</property>
6969
<property name="text" >
7070
<string>Only look in the 'public' schema</string>
@@ -84,10 +84,10 @@
8484
<item row="2" column="1" >
8585
<widget class="QCheckBox" name="cb_geometryColumnsOnly" >
8686
<property name="toolTip" >
87-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;">Restrict the displayed tables to those that are in the geometry_columns table&lt;/p>&lt;/body>&lt;/html></string>
87+
<string>Restrict the displayed tables to those that are in the geometry_columns table</string>
8888
</property>
8989
<property name="whatsThis" >
90-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;/head>&lt;body style=" white-space: pre-wrap; font-family:Sans Serif; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;">Restricts the displayed tables to those that are in the geometry_columns table. This can speed up the initial display of spatial tables.&lt;/p>&lt;/body>&lt;/html></string>
90+
<string>Restricts the displayed tables to those that are in the geometry_columns table. This can speed up the initial display of spatial tables.</string>
9191
</property>
9292
<property name="text" >
9393
<string>Only look in the geometry_columns table</string>

‎src/ui/qgspythondialog.ui

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@
3030
</sizepolicy>
3131
</property>
3232
<property name="text" >
33-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
34-
p, li { white-space: pre-wrap; }
35-
&lt;/style>&lt;/head>&lt;body style=" font-family:'DejaVu Sans Condensed'; font-size:10pt; font-weight:400; font-style:normal; text-decoration:none;">
36-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">To access Quantum GIS environment from this python console use object &lt;span style=" font-weight:600;">iface&lt;/span> from global scope which is an instance of QgisInterface class.&lt;/p>
37-
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Usage e.g.: iface.zoomFull()&lt;/p>&lt;/body>&lt;/html></string>
33+
<string>To access Quantum GIS environment from this python console use object &lt;span style=" font-weight:600;">iface&lt;/span> from global scope which is an instance of QgisInterface class.<br>Usage e.g.: iface.zoomFull()</string>
3834
</property>
3935
<property name="wordWrap" >
4036
<bool>true</bool>
@@ -44,10 +40,7 @@ p, li { white-space: pre-wrap; }
4440
<item>
4541
<widget class="QTextBrowser" name="txtHistory" >
4642
<property name="html" >
47-
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
48-
p, li { white-space: pre-wrap; }
49-
&lt;/style>&lt;/head>&lt;body style=" font-family:'DejaVu Sans Condensed'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
50-
&lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;">&lt;/p>&lt;/body>&lt;/html></string>
43+
<string></string>
5144
</property>
5245
</widget>
5346
</item>

0 commit comments

Comments
 (0)