diff --git a/product/ERP5/skins/erp5_html_style/navigation_box.pt b/product/ERP5/skins/erp5_html_style/navigation_box.pt index 093cf9fbb17c05a8a8205f34fe069dc97aaadf87..f0ce162d4ce3c3874294bc75cc0ffae08b261bf4 100755 --- a/product/ERP5/skins/erp5_html_style/navigation_box.pt +++ b/product/ERP5/skins/erp5_html_style/navigation_box.pt @@ -139,6 +139,39 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. i18n:attributes="title"/></a--> </div> </td> + <td align="right" valign="middle"> + <!-- XXX This part depends on Localizer because of get_languages_map --> + <select name="language_select" size="1" + tal:attributes="onChange string:submitAction(this.form,'${here/absolute_url}/doLanguage')" + tal:define="language_map python: here.Localizer.get_languages_map()"> + <option selected value="" i18n:translate="" i18n:domain="ui" disabled>My language</option> + <tal:block tal:repeat="language language_map"> + <tal:block tal:condition="language/selected"> + <option value="en" + selected + tal:attributes="value language/id" + tal:content="python: here.translation_service.translate('ui', language['title'], target_language=language['id'])"> + English + </option> + </tal:block> + <tal:block tal:condition="not:language/selected"> + <option value="en" + tal:attributes="value language/id" + tal:content="python: here.translation_service.translate('ui', language['title'], target_language=language['id'])"> + English + </option> + </tal:block> + </tal:block> + </select> + </td> + <td align="right" valign="middle"> + <input class="input_image" type="image" +src="/images/pro/images/info.png" + title="Change Language" alt="Change Language" name="doLanguage:method" + i18n:attributes="title" i18n:domain="ui" + tal:attributes="src string:$portal_url/images/language.png" /> + <img src="/images/pro/images/sepafon.png" alt="|" tal:attributes="src string:$portal_url/images/sepafon.png"/> + </td> <td align="right" valign="middle"> <input type="text" name="SearchableText"> </td>