Fixed an error in getting gettext to work.

svn: r17269
This commit is contained in:
Rob G. Healey 2011-04-26 05:56:40 +00:00
parent 68ba5789cb
commit a2846e144d

View File

@ -38,7 +38,6 @@ getcontext().prec = 4
from fractions import Fraction
import subprocess
from gen.gettext import gettext as _
# -----------------------------------------------------------------------------
# GTK modules
@ -51,6 +50,8 @@ import gtk
import GrampsDisplay
from QuestionDialog import OkDialog, WarningDialog, QuestionDialog
from gen.ggettext import gettext as _
from gen.plug import Gramplet
from DateHandler import displayer as _dd
@ -284,6 +285,8 @@ class EditExifMetadata(Gramplet):
self.MediaDataTags = False
self.SavedEntries = False
self.connect_signal("Media", self.update)
vbox = gtk.VBox()
medialabel = gtk.HBox(False)
@ -1160,16 +1163,6 @@ class EditExifMetadata(Gramplet):
# close this window
self.app.destroy()
#------------------------------------------------
# Database functions
#------------------------------------------------
def post_init(self):
self.connect_signal("Media", self.update)
def db_changed(self):
self.dbstate.db.connect('media-update', self.update)
self.update()
def string_to_rational(coordinate):
"""
convert string to rational variable for GPS