Logo Search packages:      
Sourcecode: zope-cps-translationservice version File versions  Download package

def TranslationService::PlacefulTranslationService::PlacefulTranslationService::translateDefault (   self,
  args,
  kw 
)

Translate the given args in the default domain
and return a unicode object.

This method is particularly useful for translating strings with
variables in them.

Example:
err = 'cpsschemas_err_file_too_big ${max_size}'
err_mapping = {'max_size': max_size}
translation_service(err, mapping=err_mapping)

Definition at line 197 of file PlacefulTranslationService.py.

00197                                            :
        """Translate the given args in the default domain
        and return a unicode object.

        This method is particularly useful for translating strings with
        variables in them.

        Example:
        err = 'cpsschemas_err_file_too_big ${max_size}'
        err_mapping = {'max_size': max_size}
        translation_service(err, mapping=err_mapping)
        """
        return self.translate('default', *args, **kw)

    __call__ = translateDefault


Generated by  Doxygen 1.6.0   Back to index