* src/plugins/Calendar.py: Remove translation from help strings;

do not import unused modules.
* src/po/template.po: Update.


svn: r5978
This commit is contained in:
Alex Roitman
2006-02-23 19:23:29 +00:00
parent d6dce0ecff
commit cc7027ca56
3 changed files with 58 additions and 135 deletions

View File

@@ -1,3 +1,8 @@
2006-02-23 Alex Roitman <shura@gramps-project.org>
* src/plugins/Calendar.py: Remove translation from help strings;
do not import unused modules.
* src/po/template.po: Update.
2006-02-22 Alex Roitman <shura@gramps-project.org> 2006-02-22 Alex Roitman <shura@gramps-project.org>
* src/plugins/Calendar.py (Calendar.__getitem__, * src/plugins/Calendar.py (Calendar.__getitem__,
Widget.__getitem__): No translation for exception messages. Widget.__getitem__): No translation for exception messages.

View File

@@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000-2005 Donald N. Allingham # Copyright (C) 2000-2006 Donald N. Allingham
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -27,7 +27,6 @@ __version__ = "$Revision$"
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from gettext import gettext as _ from gettext import gettext as _
import datetime, time import datetime, time
import string
from xml.parsers import expat from xml.parsers import expat
import const import const
import os import os
@@ -41,9 +40,8 @@ import locale
import BaseDoc import BaseDoc
import Report import Report
import GenericFilter import GenericFilter
from SubstKeywords import SubstKeywords
from ReportUtils import pt2cm from ReportUtils import pt2cm
import Date, DateHandler, DateDisplay import DateDisplay
import ReportOptions import ReportOptions
import RelLib import RelLib
@@ -397,8 +395,8 @@ class SpinWidget(Widget):
""" A spinner number selector widget for GTK. """ """ A spinner number selector widget for GTK. """
defaults = { defaults = {
"wtype" : "=num", "wtype" : "=num",
"help" : _("Type a number or click the spinner"), "help" : "Numeric option",
"valid_text": _("Any number"), "valid_text": "Any number",
} }
def add_gui(self, dialog): def add_gui(self, dialog):
keyword = self["name"] keyword = self["name"]
@@ -422,8 +420,8 @@ class CheckWidget(Widget):
""" A check box widget for GTK. """ """ A check box widget for GTK. """
defaults = { defaults = {
"wtype" : "=0/1", "wtype" : "=0/1",
"help" : _("Click the checkbox"), "help" : "Yes/No option",
"valid_text": _("Check means this option is active"), "valid_text": "1 for yes, 0 for no",
} }
def add_gui(self, dialog): def add_gui(self, dialog):
keyword = self["name"] keyword = self["name"]
@@ -443,8 +441,8 @@ class EntryWidget(Widget):
""" A text widget for GTK. """ """ A text widget for GTK. """
defaults = { defaults = {
"wtype" : "=str", "wtype" : "=str",
"help" : _("Enter text in the area"), "help" : "String option",
"valid_text": _("Enter any text data"), "valid_text": "Any textual data",
} }
def add_gui(self, dialog): def add_gui(self, dialog):
keyword = self["name"] keyword = self["name"]
@@ -464,8 +462,8 @@ class NumberWidget(EntryWidget):
""" A number widget for GTK. """ """ A number widget for GTK. """
defaults = { defaults = {
"wtype" : "=num", "wtype" : "=num",
"help" : _("Enter a number in the area"), "help" : "Numeric option",
"valid_text": _("Enter a number"), "valid_text": "Any number",
} }
def add_gui(self, dialog): def add_gui(self, dialog):
keyword = self["name"] keyword = self["name"]
@@ -610,59 +608,59 @@ class CalendarOptions(NewReportOptions):
EntryWidget(self, label = _("Text 1"), EntryWidget(self, label = _("Text 1"),
name = "text1", name = "text1",
value = "My Calendar", value = "My Calendar",
help = _("Large text area"), help = "Large text area",
valid_text = _("Any text"), valid_text = "Any text",
frame = _("Text Options") frame = _("Text Options")
), ),
EntryWidget(self, label = _("Text 2"), EntryWidget(self, label = _("Text 2"),
name = "text2", name = "text2",
value = "Produced with GRAMPS", value = "Produced with GRAMPS",
help = _("Medium size text"), help = "Medium size text",
valid_text = _("Any text"), valid_text = "Any text",
frame = _("Text Options") frame = _("Text Options")
), ),
EntryWidget(self, label = _("Text 3"), EntryWidget(self, label = _("Text 3"),
name = "text3", name = "text3",
value = "http://gramps-project.org/", value = "http://gramps-project.org/",
help = _("Small text area"), help = "Small text area",
valid_text = _("Any text"), valid_text = "Any text",
frame = _("Text Options") frame = _("Text Options")
), ),
SpinWidget(self, label = _("Year of calendar"), SpinWidget(self, label = _("Year of calendar"),
name = "year", name = "year",
value = time.localtime()[0], # the current year value = time.localtime()[0], # the current year
help = _("Year of calendar"), help = "Year of calendar",
valid_text = _("Any year"), valid_text = "Any year",
), ),
CheckWidget(self, label = _("Use maiden names"), CheckWidget(self, label = _("Use maiden names"),
name = "maiden_name", name = "maiden_name",
value = 1, value = 1,
help = _("Use married women's maiden name."), help = "Use married women's maiden name.",
valid_text = _("Select to use married women's maiden name."), valid_text = "Select to use married women's maiden name.",
), ),
CheckWidget(self, label = _("Only include living people"), CheckWidget(self, label = _("Only include living people"),
name = "alive", name = "alive",
value = 1, value = 1,
help = _("Include only living people"), help = "Include only living people",
valid_text = _("Select to only include living people"), valid_text = "Select to only include living people",
), ),
CheckWidget(self, label = _("Include birthdays"), CheckWidget(self, label = _("Include birthdays"),
name = "birthdays", name = "birthdays",
value = 1, value = 1,
help = _("Include birthdays"), help = "Include birthdays",
valid_text = _("Select to include birthdays"), valid_text = "Select to include birthdays",
), ),
CheckWidget(self, label = _("Include anniversaries"), CheckWidget(self, label = _("Include anniversaries"),
name = "anniversaries", name = "anniversaries",
value = 1, value = 1,
help = _("Include anniversaries"), help = "Include anniversaries",
valid_text = _("Select to include anniversaries"), valid_text = "Select to include anniversaries",
), ),
CheckWidget(self, label = _("Include holidays"), CheckWidget(self, label = _("Include holidays"),
name = "holidays", name = "holidays",
value = 1, value = 1,
help = _("Include holidays"), help = "Include holidays",
valid_text = _("Select to include holidays"), valid_text = "Select to include holidays",
), ),
NumberWidget(self, label = "Offset", NumberWidget(self, label = "Offset",
name = "offset", name = "offset",
@@ -793,7 +791,7 @@ class Xml2Obj:
def CharacterData(self,data): def CharacterData(self,data):
'SAX character data event handler' 'SAX character data event handler'
if string.strip(data): if data.strip():
data = data.encode() data = data.encode()
element = self.nodeStack[-1] element = self.nodeStack[-1]
element.cdata += data element.cdata += data

View File

@@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: GRAMPS VERSION\n" "Project-Id-Version: GRAMPS VERSION\n"
"POT-Creation-Date: Wed Feb 22 16:37:12 2006\n" "POT-Creation-Date: Thu Feb 23 11:15:51 2006\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1953,7 +1953,7 @@ msgid "Cause of death"
msgstr "" msgstr ""
#: PeopleView.py:84 WriteGedcom.py:340 gramps_main.py:962 #: PeopleView.py:84 WriteGedcom.py:340 gramps_main.py:962
#: plugins/Calendar.py:533 plugins/EventCmp.py:159 #: plugins/Calendar.py:531 plugins/EventCmp.py:159
#: plugins/ExportVCalendar.py:79 plugins/ExportVCard.py:77 #: plugins/ExportVCalendar.py:79 plugins/ExportVCard.py:77
#: plugins/GraphViz.py:516 plugins/IndivComplete.py:520 #: plugins/GraphViz.py:516 plugins/IndivComplete.py:520
#: plugins/NavWebPage.py:2397 plugins/StatisticsChart.py:846 #: plugins/NavWebPage.py:2397 plugins/StatisticsChart.py:846
@@ -2363,7 +2363,7 @@ msgstr ""
msgid "Report Options" msgid "Report Options"
msgstr "" msgstr ""
#: Report.py:746 plugins/Calendar.py:607 plugins/FilterEditor.py:345 #: Report.py:746 plugins/Calendar.py:605 plugins/FilterEditor.py:345
#: plugins/FilterEditor.py:531 #: plugins/FilterEditor.py:531
msgid "Filter" msgid "Filter"
msgstr "" msgstr ""
@@ -4464,7 +4464,7 @@ msgid ""
"Please try again. The witness has not been changed." "Please try again. The witness has not been changed."
msgstr "" msgstr ""
#: WriteGedcom.py:345 plugins/Calendar.py:538 plugins/DescendReport.py:154 #: WriteGedcom.py:345 plugins/Calendar.py:536 plugins/DescendReport.py:154
#: plugins/ExportVCalendar.py:84 plugins/ExportVCard.py:82 #: plugins/ExportVCalendar.py:84 plugins/ExportVCard.py:82
#: plugins/FtmStyleDescendants.py:120 plugins/GraphViz.py:520 #: plugins/FtmStyleDescendants.py:120 plugins/GraphViz.py:520
#: plugins/IndivComplete.py:524 plugins/NavWebPage.py:2401 #: plugins/IndivComplete.py:524 plugins/NavWebPage.py:2401
@@ -4473,7 +4473,7 @@ msgstr ""
msgid "Descendants of %s" msgid "Descendants of %s"
msgstr "" msgstr ""
#: WriteGedcom.py:351 plugins/Ancestors.py:138 plugins/Calendar.py:548 #: WriteGedcom.py:351 plugins/Ancestors.py:138 plugins/Calendar.py:546
#: plugins/ExportVCalendar.py:90 plugins/ExportVCard.py:88 #: plugins/ExportVCalendar.py:90 plugins/ExportVCard.py:88
#: plugins/FtmStyleAncestors.py:95 plugins/GraphViz.py:524 #: plugins/FtmStyleAncestors.py:95 plugins/GraphViz.py:524
#: plugins/IndivComplete.py:528 plugins/NavWebPage.py:2409 #: plugins/IndivComplete.py:528 plugins/NavWebPage.py:2409
@@ -4482,7 +4482,7 @@ msgstr ""
msgid "Ancestors of %s" msgid "Ancestors of %s"
msgstr "" msgstr ""
#: WriteGedcom.py:357 plugins/Calendar.py:553 plugins/ExportVCalendar.py:96 #: WriteGedcom.py:357 plugins/Calendar.py:551 plugins/ExportVCalendar.py:96
#: plugins/ExportVCard.py:94 plugins/GraphViz.py:528 #: plugins/ExportVCard.py:94 plugins/GraphViz.py:528
#: plugins/IndivComplete.py:532 plugins/NavWebPage.py:2413 #: plugins/IndivComplete.py:532 plugins/NavWebPage.py:2413
#: plugins/StatisticsChart.py:858 plugins/TimeLine.py:423 #: plugins/StatisticsChart.py:858 plugins/TimeLine.py:423
@@ -7691,175 +7691,95 @@ msgstr ""
msgid "Creates a book containing several reports." msgid "Creates a book containing several reports."
msgstr "" msgstr ""
#: plugins/Calendar.py:400 #: plugins/Calendar.py:541 plugins/NavWebPage.py:2405 plugins/WebPage.py:1341
msgid "Type a number or click the spinner"
msgstr ""
#: plugins/Calendar.py:401
msgid "Any number"
msgstr ""
#: plugins/Calendar.py:425
msgid "Click the checkbox"
msgstr ""
#: plugins/Calendar.py:426
msgid "Check means this option is active"
msgstr ""
#: plugins/Calendar.py:446
msgid "Enter text in the area"
msgstr ""
#: plugins/Calendar.py:447
msgid "Enter any text data"
msgstr ""
#: plugins/Calendar.py:467
msgid "Enter a number in the area"
msgstr ""
#: plugins/Calendar.py:468
msgid "Enter a number"
msgstr ""
#: plugins/Calendar.py:543 plugins/NavWebPage.py:2405 plugins/WebPage.py:1341
msgid "Descendant Families of %s" msgid "Descendant Families of %s"
msgstr "" msgstr ""
#: plugins/Calendar.py:558 #: plugins/Calendar.py:556
msgid "People with a Calendar attribute" msgid "People with a Calendar attribute"
msgstr "" msgstr ""
#: plugins/Calendar.py:610 #: plugins/Calendar.py:608
msgid "Text 1" msgid "Text 1"
msgstr "" msgstr ""
#: plugins/Calendar.py:613 #: plugins/Calendar.py:613 plugins/Calendar.py:620 plugins/Calendar.py:627
msgid "Large text area"
msgstr ""
#: plugins/Calendar.py:614 plugins/Calendar.py:621 plugins/Calendar.py:628
msgid "Any text"
msgstr ""
#: plugins/Calendar.py:615 plugins/Calendar.py:622 plugins/Calendar.py:629
msgid "Text Options" msgid "Text Options"
msgstr "" msgstr ""
#: plugins/Calendar.py:617 #: plugins/Calendar.py:615
msgid "Text 2" msgid "Text 2"
msgstr "" msgstr ""
#: plugins/Calendar.py:620 #: plugins/Calendar.py:622
msgid "Medium size text"
msgstr ""
#: plugins/Calendar.py:624
msgid "Text 3" msgid "Text 3"
msgstr "" msgstr ""
#: plugins/Calendar.py:627 #: plugins/Calendar.py:629
msgid "Small text area"
msgstr ""
#: plugins/Calendar.py:631 plugins/Calendar.py:634
msgid "Year of calendar" msgid "Year of calendar"
msgstr "" msgstr ""
#: plugins/Calendar.py:635 #: plugins/Calendar.py:635
msgid "Any year"
msgstr ""
#: plugins/Calendar.py:637
msgid "Use maiden names" msgid "Use maiden names"
msgstr "" msgstr ""
#: plugins/Calendar.py:640
msgid "Use married women's maiden name."
msgstr ""
#: plugins/Calendar.py:641 #: plugins/Calendar.py:641
msgid "Select to use married women's maiden name."
msgstr ""
#: plugins/Calendar.py:643
msgid "Only include living people" msgid "Only include living people"
msgstr "" msgstr ""
#: plugins/Calendar.py:646
msgid "Include only living people"
msgstr ""
#: plugins/Calendar.py:647 #: plugins/Calendar.py:647
msgid "Select to only include living people"
msgstr ""
#: plugins/Calendar.py:649 plugins/Calendar.py:652
msgid "Include birthdays" msgid "Include birthdays"
msgstr "" msgstr ""
#: plugins/Calendar.py:653 #: plugins/Calendar.py:653
msgid "Select to include birthdays"
msgstr ""
#: plugins/Calendar.py:655 plugins/Calendar.py:658
msgid "Include anniversaries" msgid "Include anniversaries"
msgstr "" msgstr ""
#: plugins/Calendar.py:659 #: plugins/Calendar.py:659
msgid "Select to include anniversaries"
msgstr ""
#: plugins/Calendar.py:661 plugins/Calendar.py:664
msgid "Include holidays" msgid "Include holidays"
msgstr "" msgstr ""
#: plugins/Calendar.py:665 #: plugins/Calendar.py:672
msgid "Select to include holidays"
msgstr ""
#: plugins/Calendar.py:674
msgid "Title text and background color." msgid "Title text and background color."
msgstr "" msgstr ""
#: plugins/Calendar.py:682 #: plugins/Calendar.py:680
msgid "Border lines of calendar boxes." msgid "Border lines of calendar boxes."
msgstr "" msgstr ""
#: plugins/Calendar.py:685 #: plugins/Calendar.py:683
msgid "Calendar day numbers." msgid "Calendar day numbers."
msgstr "" msgstr ""
#: plugins/Calendar.py:691 #: plugins/Calendar.py:689
msgid "Daily text display." msgid "Daily text display."
msgstr "" msgstr ""
#: plugins/Calendar.py:696 #: plugins/Calendar.py:694
msgid "Days of the week text." msgid "Days of the week text."
msgstr "" msgstr ""
#: plugins/Calendar.py:703 #: plugins/Calendar.py:701
msgid "Text at bottom, line 1." msgid "Text at bottom, line 1."
msgstr "" msgstr ""
#: plugins/Calendar.py:708 #: plugins/Calendar.py:706
msgid "Text at bottom, line 2." msgid "Text at bottom, line 2."
msgstr "" msgstr ""
#: plugins/Calendar.py:713 #: plugins/Calendar.py:711
msgid "Text at bottom, line 3." msgid "Text at bottom, line 3."
msgstr "" msgstr ""
#: plugins/Calendar.py:933 #: plugins/Calendar.py:931
msgid "Calendar" msgid "Calendar"
msgstr "" msgstr ""
#: plugins/Calendar.py:934 #: plugins/Calendar.py:932
msgid "Experimental" msgid "Experimental"
msgstr "" msgstr ""
#: plugins/Calendar.py:937 #: plugins/Calendar.py:935
msgid "Produces a graphical calendar" msgid "Produces a graphical calendar"
msgstr "" msgstr ""