Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model_protozoon.py
diff options
context:
space:
mode:
Diffstat (limited to 'model_protozoon.py')
-rw-r--r--model_protozoon.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/model_protozoon.py b/model_protozoon.py
index 59b2820..b63195f 100644
--- a/model_protozoon.py
+++ b/model_protozoon.py
@@ -1,5 +1,5 @@
# coding: UTF-8
-# Copyright 2009 Thomas Jourdan
+# Copyright 2009, 2010 Thomas Jourdan
#
# 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
@@ -107,24 +107,24 @@ class Protozoon(model_allele.Allele):
def explain(self, task, formater):
"""Explain all layers and mergers."""
# begin with header
- titel = 'protozoon ' + self.get_unique_id()
+ titel = _('protozoon ') + self.get_unique_id()
formater.header(titel)
# display combined layers
width = height = 256
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
ctx = cairo.Context(surface)
-# ctx.set_operator(cairo.OPERATOR_SOURCE)
-# ctx.set_source_rgb(0, 0, 0)
-# ctx.paint()
+ ctx.set_operator(cairo.OPERATOR_SOURCE)
+ ctx.set_source_rgb(0, 0, 0)
+ ctx.paint()
self.render(task, ctx, width, height)
- formater.surface_item(surface, 'Final image, all layers are combined', titel)
+ formater.surface_item(surface, _('Final image, all layers are combined'), titel)
+ #explain background color
+ formater.color_item(self.background, _('background color:'), alpha=False)
+
# explain all layers from top to bottom
self.treenode.explain(task, formater)
- #explain background color
- formater.color_item(self.background, 'background color:', alpha=False)
-
# stop with footer
formater.footer()