diff options
Diffstat (limited to 'ep_colorconstraint_bw.py')
-rw-r--r-- | ep_colorconstraint_bw.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ep_colorconstraint_bw.py b/ep_colorconstraint_bw.py index 5e09f8d..027795b 100644 --- a/ep_colorconstraint_bw.py +++ b/ep_colorconstraint_bw.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 @@ -61,6 +61,6 @@ class BwColorConstraint(model_locus.Locus): """Explain current values. pre: len(rgba) == 4 """ - part1 = 'black' if abs(rgba[0]) < EPSILON else 'white' - part2 = ', %d%% opaque' % (100*rgba[3]) if alpha else '' - return part1 + part2 + part1 = _('black') if abs(rgba[0]) < EPSILON else _('white') + part2 = _(', %d%% opaque') % (100*rgba[3]) if alpha else '' + return _('Color is reduced to black and white, ') + part1 + part2 |