From 3ffcbed1b29be3b63c16bc9f345754218231e9a7 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Wed, 27 Apr 2011 19:07:36 +0000 Subject: [PATCH] Fix so that tool tips for lat/long can be translated. svn: r17297 --- src/plugins/gramplet/EditExifMetadata.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/plugins/gramplet/EditExifMetadata.py b/src/plugins/gramplet/EditExifMetadata.py index fdd210a54..563dc85ed 100644 --- a/src/plugins/gramplet/EditExifMetadata.py +++ b/src/plugins/gramplet/EditExifMetadata.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- #!/usr/bin/python # -*- coding: utf-8 -*- # @@ -122,7 +123,8 @@ elif system_platform == "Linux2": # Windows 64bit systems else: - _MAGICK_FOUND = Utils.search_for("convert") + _MAGICK_FOUND = Utils.search_for("conve +rt") _JHEAD_FOUND = Utils.search_for("jhead") _DEL_FOUND = Utils.search_for("del") __del_command = "del" @@ -164,12 +166,12 @@ _TOOLTIPS = { "to a Degrees, Minutes, Seconds representation."), # GPS Latitude... - "Latitude" : _("Enter the GPS Latitude Coordinates for your image,\n" - "Example: 43.722965, 43 43 22 N, 38° 38′ 03″ N, 38 38 3"), + "Latitude" : _(u"Enter the GPS Latitude Coordinates for your image,\n" + u"Example: 43.722965, 43 43 22 N, 38° 38′ 03″ N, 38 38 3"), # GPS Longitude... - "Longitude" : _("Enter the GPS Longitude Coordinates for your image,\n" - "Example: 10.396378, 10 23 46 E, 105° 6′ 6″ W, -105 6 6") }.items() + "Longitude" : _(u"Enter the GPS Longitude Coordinates for your image,\n" + u"Example: 10.396378, 10 23 46 E, 105° 6′ 6″ W, -105 6 6") }.items() # set up Exif keys for Image.exif_keys _DATAMAP = {