[B] urlrewite: basic patch for i18n vtitle stable
authorJulien Jehannet <julien.jehannet@logilab.fr>
Wed, 30 Sep 2009 18:53:18 +0200
branchstable
changeset 3537 73b5bec579ba
parent 3535 106b95ec1144
child 3538 a5c6142cbfa8
[B] urlrewite: basic patch for i18n vtitle
web/views/urlrewrite.py
--- a/web/views/urlrewrite.py	Wed Sep 30 17:57:02 2009 +0200
+++ b/web/views/urlrewrite.py	Wed Sep 30 18:53:18 2009 +0200
@@ -169,6 +169,8 @@
             match = inputurl.match(uri)
             for key in formgroups:
                 form2[key] = match.group(key)
+        if "vtitle" in form2:
+            form2['vtitle'] = req._(form2['vtitle'])
         if form2:
             req.form.update(form2)
         return controller, rset