Back to index

plone3  3.1.7
Functions
PlacelessTranslationService.patches Namespace Reference

Functions

def wrap_compile_translations

Function Documentation

Definition at line 23 of file patches.py.

00023 
00024 def wrap_compile_translations(func):
00025     def compile_translations(*args, **kwargs):
00026         if 'directory' in kwargs:
00027             _compile_locales_dir(kwargs.get('directory'))
00028         func(*args, **kwargs)
00029     return compile_translations
00030 
00031 # Apply patch
00032 zcml.registerTranslations = wrap_compile_translations(zcml.registerTranslations)

Here is the call graph for this function: