From c53319e24dc6ee973d08005bec0dd35a415d6577 Mon Sep 17 00:00:00 2001 From: Gael Pasgrimaud Date: Tue, 21 Jun 2011 00:49:11 +0200 Subject: [PATCH] fix action translation --- pyramid_formalchemy/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyramid_formalchemy/views.py b/pyramid_formalchemy/views.py index ae2da46..18bc601 100644 --- a/pyramid_formalchemy/views.py +++ b/pyramid_formalchemy/views.py @@ -145,10 +145,14 @@ class ModelView(object): raise NotFound() request.model_class = model_class = I18NModel(request.model_class, request) + request.model_label = model_label = model_class.label + request.model_plural = model_plural = model_class.plural kwargs.update( main = get_renderer('pyramid_formalchemy:templates/admin/master.pt').implementation(), model_class=model_class, model_name=request.model_name, + model_label=model_label, + model_plural=model_plural, breadcrumb=self.breadcrumb(**kwargs), actions=request.actions, F_=get_translator())