Better handling of REFNs on GEDCOM import, translation of exceptions
svn: r805
This commit is contained in:
@@ -43,7 +43,7 @@ try:
|
||||
from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY
|
||||
import reportlab.lib.styles
|
||||
except:
|
||||
raise "Missing Libraries", "The ReportLab modules are not installed"
|
||||
raise _("Missing Libraries"), _("The ReportLab modules are not installed")
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -32,7 +32,7 @@ try:
|
||||
from reportlab.lib.units import cm
|
||||
from reportlab.lib.colors import Color
|
||||
except:
|
||||
raise "Missing Libraries", "The ReportLab modules are not installed"
|
||||
raise _("Missing Libraries"), _("The ReportLab modules are not installed")
|
||||
|
||||
def make_color(color):
|
||||
return Color(float(color[0])/255.0, float(color[1])/255.0,
|
||||
|
||||
Reference in New Issue
Block a user