Skip to content

Commit 58dd0e5

Browse files
author
jef
committed
translation string fixes
git-svn-id: http://svn.osgeo.org/qgis/trunk@15245 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 86072ba commit 58dd0e5

File tree

3 files changed

+65
-63
lines changed

3 files changed

+65
-63
lines changed

src/app/qgstipfactory.cpp

+58-58
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ QgsTipFactory::QgsTipFactory() : QObject()
3434
QgsTip myTip;
3535
myTip.setTitle( tr( "Quantum GIS is open source" ) );
3636
myTip.setContent( tr( "Quantum GIS is open source software."
37-
" This means that the software source code can be freely viewed "
38-
" and modified. The GPL places a restriction that any modifications "
39-
" you make must be made available to the Quantum GIS project, and "
40-
" that you can not create a new version of Quantum GIS under a "
37+
" This means that the software source code can be freely viewed"
38+
" and modified. The GPL places a restriction that any modifications"
39+
" you make must be made available to the Quantum GIS project, and"
40+
" that you can not create a new version of Quantum GIS under a"
4141
" 'closed source' license. Visit <a href=\"http://qgis.org\">"
4242
" the QGIS home page (http://qgis.org)</a> for more"
4343
" information." ) );
@@ -53,8 +53,8 @@ QgsTipFactory::QgsTipFactory() : QObject()
5353
myTip.setTitle( tr( "Become an QGIS translator" ) );
5454
myTip.setContent( tr( "Would you like to see QGIS"
5555
" in your native language? We are looking for more translators"
56-
" and would appreciate your help! The translation process is "
57-
" fairly straight forward - instructions are available in the "
56+
" and would appreciate your help! The translation process is"
57+
" fairly straight forward - instructions are available in the"
5858
" QGIS wiki"
5959
" <a href=\"http://www.qgis.org/wiki/GUI_Translation\">translator's page (http://www.qgis.org/wiki/GUI_Translation).</a>"
6060
) );
@@ -75,7 +75,7 @@ QgsTipFactory::QgsTipFactory() : QObject()
7575
addGenericTip( myTip );
7676
myTip.setTitle( tr( "How do I refer to Quantum GIS?" ) );
7777
myTip.setContent( tr( "QGIS is spelled in all caps."
78-
" We have various subprojects of the QGIS project "
78+
" We have various subprojects of the QGIS project"
7979
" and it will help to avoid confusion if you refer to each by"
8080
" its name:"
8181
"<ul>"
@@ -88,60 +88,60 @@ QgsTipFactory::QgsTipFactory() : QObject()
8888
) );
8989
addGenericTip( myTip );
9090
// This tip contributed by Andreas Neumann
91-
myTip.setTitle(tr("Add the current date to a map layout"));
92-
myTip.setContent(tr("Content: You can add a current date variable to your map "
93-
" layout. Create a regular text label and add the string "
94-
" $CURRENT_DATE(yyyy-MM-dd) to the text box. See the "
95-
" <a href=\"http://doc.qt.nokia.com/latest/qdate.html#toString\">"
96-
" QDate::toString format documentation</a> for the possible date formats."
97-
));
98-
addGuiTip(myTip);
99-
myTip.setTitle(tr("Moving Elements and Maps in the Print Composer"));
100-
myTip.setContent(tr("In the print composer tool bar you can find two "
101-
" buttons for moving elements. The left one (a selection cursor "
102-
" with the hand symbol) selects and moves elements in the layout. "
103-
" After selecting the element with this tool you can also move "
104-
" them around with the arrow keys. For accurate positioning use "
105-
" the <strong>Position and Size</strong> dialogue, which can be "
106-
" found in the tab <strong>Item --> General Options --> Position "
107-
" and Size</strong>. For easier positioning you can also set "
108-
" specific anchor points of the element within this dialogue. "
109-
" The other move tool (the globe icon combined with the hand icon) "
110-
" allows to move the map content within a map frame. "
111-
));
112-
addGuiTip(myTip);
91+
myTip.setTitle( tr( "Add the current date to a map layout" ) );
92+
myTip.setContent( tr( "You can add a current date variable to your map"
93+
" layout. Create a regular text label and add the string"
94+
" $CURRENT_DATE(yyyy-MM-dd) to the text box. See the"
95+
" <a href=\"http://doc.qt.nokia.com/latest/qdate.html#toString\">"
96+
"QDate::toString format documentation</a> for the possible date formats."
97+
) );
98+
addGuiTip( myTip );
99+
myTip.setTitle( tr( "Moving Elements and Maps in the Print Composer" ) );
100+
myTip.setContent( tr( "In the print composer tool bar you can find two"
101+
" buttons for moving elements. The left one (a selection cursor"
102+
" with the hand symbol) selects and moves elements in the layout."
103+
" After selecting the element with this tool you can also move"
104+
" them around with the arrow keys. For accurate positioning use"
105+
" the <strong>Position and Size</strong> dialogue, which can be"
106+
" found in the tab <strong>Item &rarr; General Options &rarr; Position"
107+
" and Size</strong>. For easier positioning you can also set"
108+
" specific anchor points of the element within this dialogue."
109+
" The other move tool (the globe icon combined with the hand icon)"
110+
" allows to move the map content within a map frame."
111+
) );
112+
addGuiTip( myTip );
113113
// This tip contributed by Andreas Neumann
114-
myTip.setTitle(tr("Lock an element in the layout view"));
115-
myTip.setContent(tr(" By left clicking an element in the layout view you can "
116-
" select it, by right clicking an element you can lock it. A lock symbol "
117-
" will appear in the upper left corner of the selected element. This "
118-
" prevents the element from accidentally being moved with the mouse. While "
119-
" in a locked state, you cannot move an element with the mouse but you can "
120-
" still move it with the arrow keys or by absolutely positioning it by "
121-
" setting its <strong>Position and Size</strong>"
122-
));
123-
addGuiTip(myTip);
114+
myTip.setTitle( tr( "Lock an element in the layout view" ) );
115+
myTip.setContent( tr( "By left clicking an element in the layout view you can"
116+
" select it, by right clicking an element you can lock it. A lock symbol"
117+
" will appear in the upper left corner of the selected element. This"
118+
" prevents the element from accidentally being moved with the mouse. While"
119+
" in a locked state, you cannot move an element with the mouse but you can"
120+
" still move it with the arrow keys or by absolutely positioning it by"
121+
" setting its <strong>Position and Size</strong>."
122+
) );
123+
addGuiTip( myTip );
124124
// This tip contributed by Andreas Neumann
125-
myTip.setTitle(tr("Rotating a map and linking a north arrow"));
126-
myTip.setContent(tr("You can rotate a map by setting its rotation value "
127-
" in the <strong>Item tab --> Map</strong> section. To place a north "
128-
" arrow in your layout you can use the <strong>Add Image</strong> "
129-
" tool, the button with the little camera icon. QGIS comes with a "
130-
" selection of north arrows. After the placement of the north arrow "
131-
" in the layout you can link it with a specific map frame by activating "
132-
" the <strong>Sync with map</strong> checkbox and selecting a map frame. "
133-
" Whenever you change the rotation value of a linked map, the north arrow "
134-
" will now automatically adjust its rotation. "
135-
));
136-
addGuiTip(myTip);
125+
myTip.setTitle( tr( "Rotating a map and linking a north arrow" ) );
126+
myTip.setContent( tr( "You can rotate a map by setting its rotation value"
127+
" in the <strong>Item tab &rarr; Map</strong> section. To place a north"
128+
" arrow in your layout you can use the <strong>Add Image</strong>"
129+
" tool, the button with the little camera icon. QGIS comes with a"
130+
" selection of north arrows. After the placement of the north arrow"
131+
" in the layout you can link it with a specific map frame by activating"
132+
" the <strong>Sync with map</strong> checkbox and selecting a map frame."
133+
" Whenever you change the rotation value of a linked map, the north arrow"
134+
" will now automatically adjust its rotation."
135+
) );
136+
addGuiTip( myTip );
137137
// This tip contributed by Andreas Neumann
138-
myTip.setTitle(tr("Numeric scale value in map layout linked to map frame"));
139-
myTip.setContent(tr("If you want to place a text label as a placeholder for the "
140-
" current scale, linked to a map frame, you need to place a scalebar and "
141-
" set the style to 'Numeric'. You also need to select the map frame, if there "
142-
" is more than one."
143-
));
144-
addGuiTip(myTip);
138+
myTip.setTitle( tr( "Numeric scale value in map layout linked to map frame" ) );
139+
myTip.setContent( tr( "If you want to place a text label as a placeholder for the"
140+
" current scale, linked to a map frame, you need to place a scalebar and"
141+
" set the style to 'Numeric'. You also need to select the map frame, if there"
142+
" is more than one."
143+
) );
144+
addGuiTip( myTip );
145145
/* Template for adding more tips
146146
myTip.setTitle(tr(""));
147147
myTip.setContent(tr(""

src/gui/symbology-ng/qgsstylev2exportimportdialog.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
#include "qgssymbollayerv2utils.h"
3030
#include "qgsvectorcolorrampv2.h"
3131

32-
QgsStyleV2ExportImportDialog::QgsStyleV2ExportImportDialog( QgsStyleV2* style,
33-
QWidget *parent, Mode mode, QString fileName )
34-
: QDialog( parent ), mDialogMode( mode ), mQgisStyle( style ), mFileName( fileName )
32+
QgsStyleV2ExportImportDialog::QgsStyleV2ExportImportDialog( QgsStyleV2* style, QWidget *parent, Mode mode, QString fileName )
33+
: QDialog( parent )
34+
, mFileName( fileName )
35+
, mDialogMode( mode )
36+
, mQgisStyle( style )
3537
{
3638
setupUi( this );
3739

@@ -134,7 +136,7 @@ bool QgsStyleV2ExportImportDialog::populateStyles( QgsStyleV2* style )
134136
if ( !mTempStyle->load( mFileName ) )
135137
{
136138
QMessageBox::warning( this, tr( "Import error" ),
137-
tr( "An error was occured during import:\n%1" ).arg( mTempStyle->errorString() ) );
139+
tr( "An error occured during import:\n%1" ).arg( mTempStyle->errorString() ) );
138140
return false;
139141
}
140142
}

src/ui/qgscomposerpicturewidgetbase.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
<item row="8" column="0">
265265
<widget class="QCheckBox" name="mRotationFromComposerMapCheckBox">
266266
<property name="text">
267-
<string>Sync from map</string>
267+
<string>Sync with map</string>
268268
</property>
269269
</widget>
270270
</item>

0 commit comments

Comments
 (0)