* src/ArgHandler.py: Minor string changes.
* src/DbPrompter.py: Minor string changes. svn: r4351
This commit is contained in:
parent
8df6c325a8
commit
4ac4e36230
@ -8,6 +8,8 @@
|
|||||||
* src/SourceView.py (button_press,build_context_menu): Work with
|
* src/SourceView.py (button_press,build_context_menu): Work with
|
||||||
multiple selections.
|
multiple selections.
|
||||||
|
|
||||||
|
* src/ArgHandler.py: Minor string changes.
|
||||||
|
* src/DbPrompter.py: Minor string changes.
|
||||||
* src/po/template.po: Update translation template.
|
* src/po/template.po: Update translation template.
|
||||||
* src/po/ru.po: Some translation updates.
|
* src/po/ru.po: Some translation updates.
|
||||||
|
|
||||||
|
@ -280,8 +280,11 @@ class ArgHandler:
|
|||||||
print "Cannot open %s. Exiting..."
|
print "Cannot open %s. Exiting..."
|
||||||
elif filetype in (const.app_gramps_package,):
|
elif filetype in (const.app_gramps_package,):
|
||||||
QuestionDialog.OkDialog( _("Opening non-native format"),
|
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."),
|
_("New GRAMPS database has to be set up "
|
||||||
self.parent.topWindow)
|
"when opening non-native formats. The "
|
||||||
|
"following dialog will let you select "
|
||||||
|
"the new database.",
|
||||||
|
self.parent.topWindow)
|
||||||
prompter = DbPrompter.NewNativeDbPrompter(self.parent)
|
prompter = DbPrompter.NewNativeDbPrompter(self.parent)
|
||||||
if not prompter.chooser():
|
if not prompter.chooser():
|
||||||
QuestionDialog.ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
@ -296,7 +299,7 @@ class ArgHandler:
|
|||||||
else:
|
else:
|
||||||
print "Unknown file type: %s" % filetype
|
print "Unknown file type: %s" % filetype
|
||||||
QuestionDialog.ErrorDialog(
|
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)
|
_('File type "%s" is unknown to GRAMPS.\n\nValid types are: GRAMPS database, GRAMPS XML, GRAMPS package, and GEDCOM.') % filetype)
|
||||||
print "Exiting..."
|
print "Exiting..."
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
@ -212,7 +212,7 @@ class ExistingDbPrompter:
|
|||||||
if filetype == mime_type or the_file == mime_type:
|
if filetype == mime_type or the_file == mime_type:
|
||||||
QuestionDialog.OkDialog(
|
QuestionDialog.OkDialog(
|
||||||
_("Opening non-native format"),
|
_("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 "
|
"when opening non-native formats. The "
|
||||||
"following dialog will let you select "
|
"following dialog will let you select "
|
||||||
"the new database."),
|
"the new database."),
|
||||||
@ -226,7 +226,7 @@ class ExistingDbPrompter:
|
|||||||
return False
|
return False
|
||||||
QuestionDialog.ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Could not open file: %s") % filename,
|
_("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()
|
choose.destroy()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ class ImportDbPrompter:
|
|||||||
return True
|
return True
|
||||||
QuestionDialog.ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Could not open file: %s") % filename,
|
_("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()
|
choose.destroy()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -472,9 +472,9 @@ class NewSaveasDbPrompter:
|
|||||||
choose.destroy()
|
choose.destroy()
|
||||||
if filetype not in [const.app_gramps,const.app_gramps_xml,
|
if filetype not in [const.app_gramps,const.app_gramps_xml,
|
||||||
const.app_gedcom]:
|
const.app_gedcom]:
|
||||||
QuestionDialog.ErrorDialog(_('Could not save file'),
|
QuestionDialog.ErrorDialog(
|
||||||
_('Unknown file type: %(file_type)s') % {
|
_("Could not save file: %s") % filename,
|
||||||
'file_type' : filetype } )
|
_('File type "%s" is unknown to GRAMPS.\n\nValid types are: GRAMPS database, GRAMPS XML, GRAMPS package, and GEDCOM.') % filetype)
|
||||||
return False
|
return False
|
||||||
if filetype == const.app_gramps:
|
if filetype == const.app_gramps:
|
||||||
WriteGrdb.exportData(self.parent.db,filename,None,None)
|
WriteGrdb.exportData(self.parent.db,filename,None,None)
|
||||||
|
Loading…
Reference in New Issue
Block a user