Commit 0133444e authored by Ivan Tyagov's avatar Ivan Tyagov

Allow user to select a preferred language from first wizard page.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23405 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04384c6d
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>if field_my_user_preferred_language is not None:\n
context.edit(user_preferred_language = field_my_user_preferred_language[0])\n
return context.view()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>field_my_user_preferred_language=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>field_my_user_preferred_language</string>
<string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WizardTool_setUserPreferredLanguage</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Set user preffered language</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -46,6 +46,16 @@
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
......@@ -100,6 +110,7 @@
<string>my_ac_password</string>
<string>submit_login</string>
<string>my_next_action_header</string>
<string>my_user_preferred_language</string>
</list>
</value>
</item>
......@@ -124,6 +135,10 @@
<key> <string>name</string> </key>
<value> <string>WizardTool_view</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
......@@ -140,6 +155,10 @@
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>StringField</string>
</tuple>
<none/>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>PasswordField</string>
</tuple>
<none/>
<global name="PasswordField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.InputButtonField</string>
<string>InputButtonField</string>
</tuple>
<none/>
<global name="InputButtonField" module="Products.ERP5Form.InputButtonField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -152,6 +149,10 @@
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>image</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>login:method</string> </value>
......
......@@ -45,11 +45,32 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<h2 i18n:translate=""\n
i18n:domain="ui"> Welcome to wizard</h2>\n
\n
<p i18n:translate=""\n
i18n:domain="ui"> This tool will help you configure your fresh ERP5.</p>\n
<tal:block tal:define="user_preferred_language python: getattr(here, \'user_preferred_language\', \'en\');\n
languages python: [[\'en\', \'English\'],\n
[\'fr\', \'French\'],];">\n
<h2 i18n:translate=""\n
i18n:domain="ui"> Welcome to Wizard</h2>\n
\n
<p i18n:translate=""\n
i18n:domain="ui"> This tool will help you configure your fresh ERP5</p>\n
\n
<span i18n:translate=""\n
i18n:domain="ui">You can choose the language for the configuration process</span>:<br/>\n
\n
<select onchange="submitAction(this.form, \'WizardTool_setUserPreferredLanguage\')" \n
name="field_my_user_preferred_language">\n
<option value=""></option>\n
<tal:block tal:repeat="language languages">\n
<option tal:attributes="value python: language[0]"\n
tal:content="python: language[1]"\n
tal:condition="python: user_preferred_language==language[0]" selected="selected"/>\n
<option tal:attributes="value python: language[0]"\n
tal:content="python: language[1]"\n
tal:condition="python: user_preferred_language!=language[0]"/>\n
</tal:block>\n
</select>\n
\n
</tal:block>\n
\n
\n
\n
......
74
\ No newline at end of file
78
\ 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