* src/plugins/ReadPkg.py: Enable "..." in the menu item.

* src/plugins/ReadNative.py: Likewise.
* src/plugins/ReadGedcom.py: Likewise.
* src/Report.py: Put "Style" label in singular form (was plural).


svn: r1883
This commit is contained in:
Alex Roitman 2003-07-15 17:17:58 +00:00
parent 28a3869945
commit 5b8cc3d96c
5 changed files with 21 additions and 14 deletions

View File

@ -1,5 +1,9 @@
2003-07-15 Alex Roitman <shura@alex.neuro.umn.edu> 2003-07-15 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/CustomBookText.py: Add to CVS. * src/plugins/CustomBookText.py: Add to CVS.
* src/plugins/ReadPkg.py: Enable "..." in the menu item.
* src/plugins/ReadNative.py: Likewise.
* src/plugins/ReadGedcom.py: Likewise.
* src/Report.py: Put "Style" label in singular form (was plural).
2003-07-14 Donald Peterson <dpeterson@sigmaxi.org> 2003-07-14 Donald Peterson <dpeterson@sigmaxi.org>
* src/docgen/LaTeXDoc.py: Regress UNICODE support to be only a * src/docgen/LaTeXDoc.py: Regress UNICODE support to be only a

View File

@ -420,7 +420,7 @@ class BareReportDialog:
choose from.""" choose from."""
# Styles Frame # Styles Frame
label = gtk.Label("%s:" % _("Styles")) label = gtk.Label("%s:" % _("Style"))
label.set_alignment(0.0,0.5) label.set_alignment(0.0,0.5)
self.style_menu = gtk.OptionMenu() self.style_menu = gtk.OptionMenu()

View File

@ -69,6 +69,8 @@ UPDATE = 25
db = None db = None
callback = None callback = None
_title_string = _("Import from GEDCOM")
def nocnv(s): def nocnv(s):
return unicode(s) return unicode(s)
@ -1732,7 +1734,7 @@ def readData(database,active_person,cb):
db = database db = database
callback = cb callback = cb
file_top = gtk.FileSelection("%s - GRAMPS" % _("Import from GEDCOM")) file_top = gtk.FileSelection("%s - GRAMPS" % _title_string)
file_top.hide_fileop_buttons() file_top.hide_fileop_buttons()
file_top.ok_button.connect('clicked', on_ok_clicked) file_top.ok_button.connect('clicked', on_ok_clicked)
file_top.cancel_button.connect('clicked', Utils.destroy_passed_object) file_top.cancel_button.connect('clicked', Utils.destroy_passed_object)
@ -1775,6 +1777,4 @@ if __name__ == "__main__":
else: else:
from Plugins import register_import from Plugins import register_import
register_import(readData,_("Import from GEDCOM")) register_import(readData,"%s..." % _title_string)

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000 Donald N. Allingham # Copyright (C) 2000-2003 Donald N. Allingham
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -31,6 +31,8 @@ import gtk
import const import const
import os import os
_title_string = _("Import from GRAMPS database")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# #
@ -49,7 +51,7 @@ class ReadNative:
self.db = database self.db = database
self.callback = cb self.callback = cb
self.top = gtk.FileSelection("%s - GRAMPS" % _("Import from GRAMPS database")) self.top = gtk.FileSelection("%s - GRAMPS" % _title_string)
self.top.hide_fileop_buttons() self.top.hide_fileop_buttons()
self.top.ok_button.connect('clicked', self.on_ok_clicked) self.top.ok_button.connect('clicked', self.on_ok_clicked)
self.top.cancel_button.connect('clicked', self.close_window) self.top.cancel_button.connect('clicked', self.close_window)
@ -60,10 +62,10 @@ class ReadNative:
def show_display(self): def show_display(self):
self.window = gtk.Window() self.window = gtk.Window()
self.window.set_title(_("Import from GRAMPS database")) self.window.set_title(_title_string)
vbox = gtk.VBox() vbox = gtk.VBox()
self.window.add(vbox) self.window.add(vbox)
label = gtk.Label(_("Import from GRAMPS database")) label = gtk.Label(_title_string)
vbox.add(label) vbox.add(label)
adj = gtk.Adjustment(lower=0,upper=100) adj = gtk.Adjustment(lower=0,upper=100)
self.progress_bar = gtk.ProgressBar(adj) self.progress_bar = gtk.ProgressBar(adj)
@ -102,4 +104,4 @@ class ReadNative:
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from Plugins import register_import from Plugins import register_import
register_import(readData,_("Import from GRAMPS database")) register_import(readData,"%s..." % _title_string)

View File

@ -34,6 +34,7 @@ import time
from QuestionDialog import ErrorDialog, WarningDialog from QuestionDialog import ErrorDialog, WarningDialog
import TarFile import TarFile
_title_string = _("Import from GRAMPS package")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# #
@ -52,7 +53,7 @@ class ReadPkg:
self.db = database self.db = database
self.callback = cb self.callback = cb
self.top = gtk.FileSelection("%s - GRAMPS" % _("Import from GRAMPS package")) self.top = gtk.FileSelection("%s - GRAMPS" % _title_string)
self.top.hide_fileop_buttons() self.top.hide_fileop_buttons()
self.top.ok_button.connect('clicked', self.on_ok_clicked) self.top.ok_button.connect('clicked', self.on_ok_clicked)
self.top.cancel_button.connect('clicked', self.close_window) self.top.cancel_button.connect('clicked', self.close_window)
@ -63,10 +64,10 @@ class ReadPkg:
def show_display(self): def show_display(self):
self.window = gtk.Window() self.window = gtk.Window()
self.window.set_title(_("Import from GRAMPS package")) self.window.set_title(_title_string)
vbox = gtk.VBox() vbox = gtk.VBox()
self.window.add(vbox) self.window.add(vbox)
label = gtk.Label(_("Import from GRAMPS package")) label = gtk.Label(_title_string)
vbox.add(label) vbox.add(label)
adj = gtk.Adjustment(lower=0,upper=100) adj = gtk.Adjustment(lower=0,upper=100)
self.progress_bar = gtk.ProgressBar(adj) self.progress_bar = gtk.ProgressBar(adj)
@ -137,4 +138,4 @@ class ReadPkg:
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from Plugins import register_import from Plugins import register_import
register_import(readData,_("Import from GRAMPS package")) register_import(readData,"%s..." % _title_string)