disambiguate "none" (for French)

from po/fr.po:
The same "none" is used for name, surname and date.
However, in French we say "aucun" for name and surname,
but we say "aucune" for date...
This commit is contained in:
Paul Franklin 2015-12-05 21:03:34 -08:00
parent 8ed9d8958d
commit 252aacee41
2 changed files with 6 additions and 4 deletions

View File

@ -247,8 +247,8 @@ DOCUMENTERS = [
THUMBSCALE = 96.0
THUMBSCALE_LARGE = 180.0
XMLFILE = "data.gramps"
NO_SURNAME = "(%s)" % _("none")
NO_GIVEN = "(%s)" % _("none")
NO_SURNAME = "(%s)" % _("surname|none")
NO_GIVEN = "(%s)" % _("given-name|none")
ARABIC_COMMA = "،"
ARABIC_SEMICOLON = "؛"

View File

@ -1841,7 +1841,8 @@ class Date(object):
Lookup date quality keyword, even if translated.
"""
qualities = ["none", "estimated", "calculated"]
ui_qualities = [_("none"), _("estimated"), _("calculated")]
ui_qualities = [_("date-quality|none"),
_("estimated"), _("calculated")]
if quality.lower() in qualities:
return qualities.index(quality.lower())
elif quality.lower() in ui_qualities:
@ -1855,7 +1856,8 @@ class Date(object):
"""
mods = ["none", "before", "after", "about",
"range", "span", "textonly"]
ui_mods = [_("none"), _("before"), _("after"), _("about"),
ui_mods = [_("date-modifier|none"),
_("before"), _("after"), _("about"),
_("range"), _("span"), _("textonly")]
if modifier.lower() in mods:
return mods.index(modifier.lower())