From a9a259ebd0485d215ebf1571a94731769e4f6c9d Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 6 Sep 2016 10:10:47 -0500 Subject: [PATCH] Put back Titlecase versions of strings to be translated --- gramps/plugins/importer/importcsv.py | 44 +++++++++++++++------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/gramps/plugins/importer/importcsv.py b/gramps/plugins/importer/importcsv.py index b8c57d8a8..0dee09497 100644 --- a/gramps/plugins/importer/importcsv.py +++ b/gramps/plugins/importer/importcsv.py @@ -154,19 +154,21 @@ class CSVParser: self.place_types[custom_type] = 0 self.place_types[custom_type.lower()] = 0 column2label = { - "surname": ("lastname", "last_name", "surname", _("surname")), + "surname": ("lastname", "last_name", "surname", _("surname"), + _("Surname")), "firstname": ("firstname", "first_name", "given_name", "given", - "given name", _("given name"), _("given")), + "given name", _("given name"), _("given"), + _("Given"), _("Given name")), "callname": ("call name", _("Call name"), "callname", "call_name", - "call", _("call")), + "call", _("Call"), _("call")), "title": ("title", _("title"), _("Person or Place|title")), - "prefix": ("prefix", _("prefix")), - "suffix": ("suffix", _("suffix")), - "gender": ("gender", _("gender")), - "source": ("source", _("source")), - "note": ("note", _("note")), + "prefix": ("prefix", _("prefix"), _("Prefix")), + "suffix": ("suffix", _("suffix"), _("Suffix")), + "gender": ("gender", _("gender"), _("Gender")), + "source": ("source", _("source"), _("Source")), + "note": ("note", _("note"), _("Note")), "birthplace": ("birthplace", "birth_place", "birth place", - _("birth place")), + _("birth place"), _("Birth place")), "birthplace_id": ("birthplaceid", "birth_place_id", "birth place id", _("birth place id"), "birthplace_id"), @@ -202,24 +204,26 @@ class CSVParser: _("death cause")), "grampsid": (_("Gramps ID"), "grampsid", "id", "gramps_id", "gramps id"), - "person": ("person", _("person")), + "person": ("person", _("person"), _("Person")), # ---------------------------------- - "child": ("child", _("child")), - "family": ("family", _("family")), + "child": ("child", _("child"), _("Child")), + "family": ("family", _("family"), _("Family")), # ---------------------------------- - "wife": ("mother", _("mother"), "wife", _("wife"), + "wife": ("mother", _("mother"), _("Mother"), + "wife", _("wife"), _("Wife"), "parent2", _("parent2")), - "husband": ("father", _("father"), "husband", _("husband"), + "husband": ("father", _("father"), _("Father"), + "husband", _("husband"), _("Husband"), "parent1", _("parent1")), - "marriage": ("marriage", _("marriage")), - "date": ("date", _("date")), - "place": ("place", _("place")), + "marriage": ("marriage", _("marriage"), _("Marriage")), + "date": ("date", _("date"), _("Date")), + "place": ("place", _("place"), _("Place")), "place_id": ("place id", "place_id", "placeid", _("place id")), - "name": ("name", _("name")), - "type": ("type", _("type")), + "name": ("name", _("name"), _("Name")), + "type": ("type", _("type"), _("Type")), "latitude": ("latitude", _("latitude")), "longitude": ("longitude", _("longitude")), - "code": ("code", _("code")), + "code": ("code", _("code"), _("Code")), "enclosed_by": ("enclosed by", _("enclosed by"), "enclosed_by", _("enclosed_by"), "enclosedby") }