Skip to content

Commit 6dda391

Browse files
committed
[bookmark] fix translation string: fixes to avoid an empty bookmark name on import when system locale is different from english
1 parent 2e3baa7 commit 6dda391

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/app/qgsbookmarks.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,13 @@ void QgsBookmarks::importFromXML()
296296
for ( int i = 0;i < nodeList.count(); i++ )
297297
{
298298
QDomNode bookmark = nodeList.at( i );
299-
QDomElement name = bookmark.firstChildElement( "Name" );
300-
QDomElement prjname = bookmark.firstChildElement( "Project" );
301-
QDomElement xmin = bookmark.firstChildElement( "xMin" );
302-
QDomElement xmax = bookmark.firstChildElement( "xMax" );
303-
QDomElement ymin = bookmark.firstChildElement( "yMin" );
304-
QDomElement ymax = bookmark.firstChildElement( "yMax" );
305-
QDomElement srid = bookmark.firstChildElement( "SRID" );
299+
QDomElement name = bookmark.firstChildElement( tr( "Name" ) );
300+
QDomElement prjname = bookmark.firstChildElement( tr( "Project" ) );
301+
QDomElement xmin = bookmark.firstChildElement( tr( "xMin" ) );
302+
QDomElement xmax = bookmark.firstChildElement( tr( "xMax" ) );
303+
QDomElement ymin = bookmark.firstChildElement( tr( "yMin" ) );
304+
QDomElement ymax = bookmark.firstChildElement( tr( "yMax" ) );
305+
QDomElement srid = bookmark.firstChildElement( tr( "SRID" ) );
306306

307307
queries += "INSERT INTO tbl_bookmarks(bookmark_id,name,project_name,xmin,ymin,xmax,ymax,projection_srid)"
308308
" VALUES (NULL,"

0 commit comments

Comments
 (0)