* src/MediaView.py (on_select_row): Mark translatable string;
(popup_convert_to_private): Call self.load before returning. * src/ImageSelect.py (LocalMediaProperties.__init__, GlobalMediaProperties.update_info): Mark translatable string. svn: r2995
This commit is contained in:
parent
17077b01b3
commit
1833c28063
@ -6,6 +6,11 @@
|
|||||||
* src/plugins/AncestorChart.py: Add prefix (AC-) to styles.
|
* src/plugins/AncestorChart.py: Add prefix (AC-) to styles.
|
||||||
* src/plugins/AncestorChart2.py: Add prefix (AC2-) to styles.
|
* src/plugins/AncestorChart2.py: Add prefix (AC2-) to styles.
|
||||||
|
|
||||||
|
* src/MediaView.py (on_select_row): Mark translatable string;
|
||||||
|
(popup_convert_to_private): Call self.load before returning.
|
||||||
|
* src/ImageSelect.py (LocalMediaProperties.__init__,
|
||||||
|
GlobalMediaProperties.update_info): Mark translatable string.
|
||||||
|
|
||||||
2004-03-08 Don Allingham <dallingham@users.sourceforge.net>
|
2004-03-08 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/EditPerson.py: TreeView enhancements
|
* src/EditPerson.py: TreeView enhancements
|
||||||
* src/PeopleModel.py: TreeView enhancements
|
* src/PeopleModel.py: TreeView enhancements
|
||||||
|
@ -718,7 +718,7 @@ class LocalMediaProperties:
|
|||||||
self.change_dialog.get_widget("gid").set_text(self.object.get_id())
|
self.change_dialog.get_widget("gid").set_text(self.object.get_id())
|
||||||
|
|
||||||
if self.object.get_local():
|
if self.object.get_local():
|
||||||
self.change_dialog.get_widget("path").set_text("<local>")
|
self.change_dialog.get_widget("path").set_text(_("<local>"))
|
||||||
else:
|
else:
|
||||||
self.change_dialog.get_widget("path").set_text(fname)
|
self.change_dialog.get_widget("path").set_text(fname)
|
||||||
|
|
||||||
@ -965,7 +965,7 @@ class GlobalMediaProperties:
|
|||||||
def update_info(self):
|
def update_info(self):
|
||||||
fname = self.object.get_path()
|
fname = self.object.get_path()
|
||||||
if self.object.get_local():
|
if self.object.get_local():
|
||||||
self.change_dialog.get_widget("path").set_text("<local>")
|
self.change_dialog.get_widget("path").set_text(_("<local>"))
|
||||||
self.makelocal.set_sensitive(0)
|
self.makelocal.set_sensitive(0)
|
||||||
else:
|
else:
|
||||||
self.change_dialog.get_widget("path").set_text(fname)
|
self.change_dialog.get_widget("path").set_text(fname)
|
||||||
|
@ -172,7 +172,7 @@ class MediaView:
|
|||||||
elif path[0] == "/":
|
elif path[0] == "/":
|
||||||
self.mpath.set_text(path)
|
self.mpath.set_text(path)
|
||||||
else:
|
else:
|
||||||
self.mpath.set_text("<local>")
|
self.mpath.set_text(_("<local>"))
|
||||||
self.mdetails.set_text(Utils.get_detail_text(mobj,0))
|
self.mdetails.set_text(Utils.get_detail_text(mobj,0))
|
||||||
|
|
||||||
def on_button_press_event(self,obj,event):
|
def on_button_press_event(self,obj,event):
|
||||||
@ -241,6 +241,7 @@ class MediaView:
|
|||||||
if name:
|
if name:
|
||||||
self.obj.set_path(name)
|
self.obj.set_path(name)
|
||||||
self.obj.setLocal(1)
|
self.obj.setLocal(1)
|
||||||
|
self.load_media()
|
||||||
|
|
||||||
def popup_change_description(self, obj):
|
def popup_change_description(self, obj):
|
||||||
ImageSelect.GlobalMediaProperties(self.db,self.obj,self.load_media)
|
ImageSelect.GlobalMediaProperties(self.db,self.obj,self.load_media)
|
||||||
|
Loading…
Reference in New Issue
Block a user