Commit b7955a8c authored by Gabriel Monnerat's avatar Gabriel Monnerat

2011-04-04 gabriel

* Add field to change the language of Web Site

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45053 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab4a6356
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<input type="submit" \n <input type="submit" \n
name="logged_in:method"\n name="logged_in:method"\n
class="submit" \n class="submit" \n
value="Name" i18n:translate="" i18n:domain="ui">\n value="Login" i18n:translate="" i18n:domain="ui">\n
</td>\n </td>\n
</table>\n </table>\n
</td>\n </td>\n
......
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
<key> <string>navigation navigation-right</string> </key> <key> <string>navigation navigation-right</string> </key>
<value> <value>
<list> <list>
<string>your_language</string>
<string>your_login_box</string> <string>your_login_box</string>
</list> </list>
</value> </value>
......
...@@ -1101,6 +1101,15 @@ form#create-user table tbody tr:last-child td {\n ...@@ -1101,6 +1101,15 @@ form#create-user table tbody tr:last-child td {\n
text-decoration: underline;\n text-decoration: underline;\n
font-size: 8pt;\n font-size: 8pt;\n
cursor: pointer;\n cursor: pointer;\n
}\n
\n
select[name="field_your_language"] {\n
background: none repeat scroll 0 0 #FFF;\n
border: 0 none;\n
}\n
\n
div.navigation-right fieldset.widget div {\n
float: left;\n
} }
]]></string> </value> ]]></string> </value>
......
...@@ -34,6 +34,15 @@ function getCurrentObjectUrl(){\n ...@@ -34,6 +34,15 @@ function getCurrentObjectUrl(){\n
return window.location.href.split("?")[0];\n return window.location.href.split("?")[0];\n
}\n }\n
\n \n
function changeLanguage(language){\n
$.ajax({\n
url: "setDefaultAvailableLanguage?value=" + language,\n
async: false,\n
success: function(){\n
window.location.reload();\n
},\n
});\n
}\n
function getWebEditorName(){\n function getWebEditorName(){\n
currentUrlSplitted = window.location.href.split("?")[0].split("/");\n currentUrlSplitted = window.location.href.split("?")[0].split("/");\n
return currentUrlSplitted[currentUrlSplitted.length-1];\n return currentUrlSplitted[currentUrlSplitted.length-1];\n
......
2011-04-04 gabriel
* Add field to change the language of Web Site
2011-02-10 gabriel 2011-02-10 gabriel
* Add script ERP5Site_loadEmailThreadData to load the data of selected email. This script is used to open one email in the current page. * Add script ERP5Site_loadEmailThreadData to load the data of selected email. This script is used to open one email in the current page.
* Refactor ERP5Site_createNewEmailThread to do not create a new email if it already exist one Email Thread created. * Refactor ERP5Site_createNewEmailThread to do not create a new email if it already exist one Email Thread created.
......
329 330
\ 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