joey: thuban/Extensions/wms capabilities.py,1.7,1.8
Bernhard Herzog
bh at intevation.de
Thu Apr 1 17:15:44 CEST 2004
Martin Schulze <joey at infodrom.org> writes:
> Do you know if this poses a problem with gettext?
>
> cvs at intevation.de wrote:
>> @@ -126,6 +133,10 @@
>> self.capabilities = self.getCapabilities(resource, self.wmsVersion)
>> if not self.capabilities:
>> self.wmsVersion = None
>> + self.errorMsg \
>> + = _("Resource '%s' "
>> + + "does support neither WMS version 1.1 nor 1.0") \
>> + % resource
It's better written as
self.errorMsg \
= _("Resource '%s' "
"does support neither WMS version 1.1 nor 1.0") \
% resource
I.e. without the +. Python automatically concatenates string literals,
pretty much like C and xgettext supports it too.
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://sketch.sourceforge.net/
Thuban http://thuban.intevation.org/
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)