From 4ac4e3623069f0d9ee73a394401883712d034db9 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 12 Apr 2005 01:56:36 +0000 Subject: [PATCH] * src/ArgHandler.py: Minor string changes. * src/DbPrompter.py: Minor string changes. svn: r4351 --- ChangeLog | 2 ++ src/ArgHandler.py | 9 ++++++--- src/DbPrompter.py | 12 ++++++------ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa201f43c..f70c0bfa0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ * src/SourceView.py (button_press,build_context_menu): Work with multiple selections. + * src/ArgHandler.py: Minor string changes. + * src/DbPrompter.py: Minor string changes. * src/po/template.po: Update translation template. * src/po/ru.po: Some translation updates. diff --git a/src/ArgHandler.py b/src/ArgHandler.py index b853e4733..525091f26 100644 --- a/src/ArgHandler.py +++ b/src/ArgHandler.py @@ -280,8 +280,11 @@ class ArgHandler: print "Cannot open %s. Exiting..." elif filetype in (const.app_gramps_package,): QuestionDialog.OkDialog( _("Opening non-native format"), - _("New GRAMPS database has to be set up when opening non-native formats. The following dialog will let you select the new database."), - self.parent.topWindow) + _("New GRAMPS database has to be set up " + "when opening non-native formats. The " + "following dialog will let you select " + "the new database.", + self.parent.topWindow) prompter = DbPrompter.NewNativeDbPrompter(self.parent) if not prompter.chooser(): QuestionDialog.ErrorDialog( @@ -296,7 +299,7 @@ class ArgHandler: else: print "Unknown file type: %s" % filetype QuestionDialog.ErrorDialog( - _("Cannot open file: unknown type"), + _("Could not open file: %s") % filename, _('File type "%s" is unknown to GRAMPS.\n\nValid types are: GRAMPS database, GRAMPS XML, GRAMPS package, and GEDCOM.') % filetype) print "Exiting..." os._exit(1) diff --git a/src/DbPrompter.py b/src/DbPrompter.py index 6c9f9621d..2cd7c51ca 100644 --- a/src/DbPrompter.py +++ b/src/DbPrompter.py @@ -212,7 +212,7 @@ class ExistingDbPrompter: if filetype == mime_type or the_file == mime_type: QuestionDialog.OkDialog( _("Opening non-native format"), - _("New gramps database has to be set up " + _("New GRAMPS database has to be set up " "when opening non-native formats. The " "following dialog will let you select " "the new database."), @@ -226,7 +226,7 @@ class ExistingDbPrompter: return False QuestionDialog.ErrorDialog( _("Could not open file: %s") % filename, - _('The type "%s" is not in the list of known file types') % filetype ) + _('File type "%s" is unknown to GRAMPS.\n\nValid types are: GRAMPS database, GRAMPS XML, GRAMPS package, and GEDCOM.') % filetype) choose.destroy() return False @@ -325,7 +325,7 @@ class ImportDbPrompter: return True QuestionDialog.ErrorDialog( _("Could not open file: %s") % filename, - _('The type "%s" is not in the list of known file types') % filetype ) + _('File type "%s" is unknown to GRAMPS.\n\nValid types are: GRAMPS database, GRAMPS XML, GRAMPS package, and GEDCOM.') % filetype) choose.destroy() return False @@ -472,9 +472,9 @@ class NewSaveasDbPrompter: choose.destroy() if filetype not in [const.app_gramps,const.app_gramps_xml, const.app_gedcom]: - QuestionDialog.ErrorDialog(_('Could not save file'), - _('Unknown file type: %(file_type)s') % { - 'file_type' : filetype } ) + QuestionDialog.ErrorDialog( + _("Could not save file: %s") % filename, + _('File type "%s" is unknown to GRAMPS.\n\nValid types are: GRAMPS database, GRAMPS XML, GRAMPS package, and GEDCOM.') % filetype) return False if filetype == const.app_gramps: WriteGrdb.exportData(self.parent.db,filename,None,None)