From b95281c32ef69cd1832e2a8eeb021d8e2daec60a Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Fri, 14 Aug 2009 06:18:16 +0000 Subject: [PATCH] Attempt to get Repository Type to be translatable. Peter Lundgren is helping me. svn: r12998 --- src/plugins/webreport/NarrativeWeb.py | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 06d69169c..38a038f28 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -144,6 +144,36 @@ LOCATIONS = _('Alternate Locations') TMPL = _('Temple') ST = _('Status') +# Repository Types from src/gen/lib/repotype.py +UNKNOWN = -1 +CUSTOM = 0 +LIBRARY = 1 +CEMETERY = 2 +CHURCH = 3 +ARCHIVE = 4 +ALBUM = 5 +WEBSITE = 6 +BOOKSTORE = 7 +COLLECTION = 8 +SAFE = 9 + +_CUSTOM = CUSTOM +_DEFAULT = LIBRARY + +_DATAMAP = [ + (UNKNOWN, _("Unknown"), "Unknown"), + (CUSTOM, _("Custom"), "Custom"), + (LIBRARY, _("Library"), "Library"), + (CEMETERY, _("Cemetery"), "Cemetery"), + (CHURCH, _("Church"), "Church"), + (ARCHIVE, _("Archive"), "Archive"), + (ALBUM, _("Album"), "Album"), + (WEBSITE, _("Web site"), "Web site"), + (BOOKSTORE, _("Bookstore"), "Bookstore"), + (COLLECTION, _("Collection"), "Collection"), + (SAFE, _("Safe"), "Safe"), + ] + # define clear blank line for proper styling fullclear = Html('div', class_='fullclear', inline=True)