Fixed an error in getting gettext to work.
svn: r17269
This commit is contained in:
parent
68ba5789cb
commit
a2846e144d
@ -38,7 +38,6 @@ getcontext().prec = 4
|
|||||||
from fractions import Fraction
|
from fractions import Fraction
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
from gen.gettext import gettext as _
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# GTK modules
|
# GTK modules
|
||||||
@ -51,6 +50,8 @@ import gtk
|
|||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
from QuestionDialog import OkDialog, WarningDialog, QuestionDialog
|
from QuestionDialog import OkDialog, WarningDialog, QuestionDialog
|
||||||
|
|
||||||
|
from gen.ggettext import gettext as _
|
||||||
|
|
||||||
from gen.plug import Gramplet
|
from gen.plug import Gramplet
|
||||||
from DateHandler import displayer as _dd
|
from DateHandler import displayer as _dd
|
||||||
|
|
||||||
@ -284,6 +285,8 @@ class EditExifMetadata(Gramplet):
|
|||||||
self.MediaDataTags = False
|
self.MediaDataTags = False
|
||||||
self.SavedEntries = False
|
self.SavedEntries = False
|
||||||
|
|
||||||
|
self.connect_signal("Media", self.update)
|
||||||
|
|
||||||
vbox = gtk.VBox()
|
vbox = gtk.VBox()
|
||||||
|
|
||||||
medialabel = gtk.HBox(False)
|
medialabel = gtk.HBox(False)
|
||||||
@ -1160,16 +1163,6 @@ class EditExifMetadata(Gramplet):
|
|||||||
# close this window
|
# close this window
|
||||||
self.app.destroy()
|
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):
|
def string_to_rational(coordinate):
|
||||||
"""
|
"""
|
||||||
convert string to rational variable for GPS
|
convert string to rational variable for GPS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user