Commit 2af948e1 authored by Yusei Tahara's avatar Yusei Tahara

Don't use Localizer directly. Use Base_translateString script instead.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23492 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 596904c6
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
isAnon mtool/isAnonymousUser|nothing;">\n isAnon mtool/isAnonymousUser|nothing;">\n
<tal:block tal:condition="isAnon">\n <tal:block tal:condition="isAnon">\n
<tal:block tal:define="dummy python: response.expireCookie(\'__ac\', path=\'/\');\n <tal:block tal:define="dummy python: response.expireCookie(\'__ac\', path=\'/\');\n
url python: \'%s?portal_status_message=%s\' % (here.absolute_url(), here.getPortalObject().Localizer.translate(\'ui\', \'Login+and/or+password+is+incorrect.\'));\n url python: \'%s?portal_status_message=%s\' % (here.absolute_url(), here.Base_translateString(\'Login and/or password is incorrect.\'));\n
url python: request.get(\'came_from\') and \'%s&amp;came_from=%s\' % (url, request[\'came_from\']) or url;\n url python: request.get(\'came_from\') and \'%s&amp;came_from=%s\' % (url, request[\'came_from\']) or url;\n
dummy python: response.redirect(url);" />\n dummy python: response.redirect(url);" />\n
</tal:block>\n </tal:block>\n
...@@ -91,6 +91,12 @@ ...@@ -91,6 +91,12 @@
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Login Page Template used by login and registration main page</string> </value> <value> <string>Login Page Template used by login and registration main page</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
704 705
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment