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

def TranslationService::PlacefulTranslationService::PlacefulTranslationService::translate (   self,
  domain,
  args,
  kw 
)

Translate the given args into 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.translate('default', err, mapping=err_mapping)

Definition at line 183 of file PlacefulTranslationService.py.

00183                                             :
        """Translate the given args into 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.translate('default', err, mapping=err_mapping)
        """
        return self.getDomain(domain).translate(*args, **kw)

    security.declareProtected(View, 'translateDefault')
    def translateDefault(self, *args, **kw):


Generated by  Doxygen 1.6.0   Back to index