3485: A better message for date validator on AgeOnDate Gramplet.
svn: r13939
This commit is contained in:
parent
b53fda23cb
commit
bbdf6d80cc
@ -1689,7 +1689,8 @@ def main(args):
|
||||
def on_validate(widget, text):
|
||||
myDate = parser.parse(text)
|
||||
if not myDate.is_regular():
|
||||
return ValidationError("'%s' is not a valid date value")
|
||||
# used on AgeOnDateGramplet
|
||||
return ValidationError(_("'%s' is not a valid date value"))
|
||||
|
||||
win = gtk.Window()
|
||||
win.set_title('ValidatableMaskedEntry test window')
|
||||
|
@ -64,11 +64,11 @@ class AgeOnDateGramplet(Gramplet):
|
||||
description.set_wrap_mode(gtk.WRAP_WORD)
|
||||
description.set_editable(False)
|
||||
buffer = description.get_buffer()
|
||||
buffer.set_text(_("Enter a date in the entry below and click Run."
|
||||
" This will compute the ages for everyone in your"
|
||||
" Family Tree on that date. You can then sort by"
|
||||
" the age column, and double-click the row to view"
|
||||
" or edit."))
|
||||
buffer.set_text(_("Enter a date (YYYY-MM-DD) in the entry below"
|
||||
" and click Run. This will compute the ages for"
|
||||
" everyone in your Family Tree on that date."
|
||||
" You can then sort by the age column, and"
|
||||
" double-click the row to view or edit."))
|
||||
label = gtk.Label()
|
||||
label.set_text(_("Date") + ":")
|
||||
self.entry = gtk.Entry()
|
||||
|
Loading…
Reference in New Issue
Block a user