UTF-8 to Latin-1 translation from Alexandre Duret-Lutz

svn: r1273
This commit is contained in:
Don Allingham 2003-01-27 04:53:38 +00:00
parent 7a019f1941
commit 579ef1a359

View File

@ -45,6 +45,7 @@ import Report
import TextDoc import TextDoc
import GenericFilter import GenericFilter
from intl import gettext as _ from intl import gettext as _
from latin_utf8 import utf8_to_latin
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
@ -333,8 +334,9 @@ def dump_person(person_list,file,adoptionsdashed,arrowheadstyle,
mother = family.getMother() mother = family.getMother()
fadopted = frel != _("Birth") fadopted = frel != _("Birth")
madopted = mrel != _("Birth") madopted = mrel != _("Birth")
if show_families and (person_dict.has_key(father.getId()) or if (show_families and
person_dict.has_key(mother.getId())): (father and person_dict.has_key(father.getId()) or
mother and person_dict.has_key(mother.getId()))):
# Link to the family node. # Link to the family node.
famid = string.replace(family.getId(),'-','_') famid = string.replace(family.getId(),'-','_')
file.write('p%s -> f%s [' % (pid, famid)) file.write('p%s -> f%s [' % (pid, famid))
@ -403,7 +405,7 @@ def dump_index(person_list,file,includedates,includeurl,colorize,
file.write('color=deeppink, ') file.write('color=deeppink, ')
else: else:
file.write('color=black, ') file.write('color=black, ')
file.write('fontname="Arial", label="%s"];\n' % label) file.write('fontname="Arial", label="%s"];\n' % utf8_to_latin(label))
# Output families's nodes. # Output families's nodes.
if show_families: if show_families:
family_list = person.getFamilyList() family_list = person.getFamilyList()