Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bookmark] fix translation string: fixes to avoid an empty bookmark n…
…ame on import when system locale is different from english
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6dda391
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slarosa Why are these values being translated? Doesn't that make the resultant file language-specific and breakable if a translation changes? I think a better approach would be to modify QgsBookmarks::exportToXML so that it uses preset values rather than the column headers (possibly could be done by storing fixed element names in a user role in the model header data).
6dda391
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyalldawson ...right, could the following patch be a solution?
https://gist.github.com/slarosa/d6ef8828d1f0b5edd1ed