Commit e795a56d authored by Gabriel Monnerat's avatar Gabriel Monnerat

Use Base_translateString to do translation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44551 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 01400bd1
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<h2>Welcome to UNG Web Office</h2>\n <tal:block tal:define="default_language python:here.Localizer.get_selected_language();">\n
<h2 tal:content="python:here.Base_translateString(\'Welcome to UNG Web Office\', lang=default_language)">Page Title</h2>\n
<div id="main-content">\n <div id="main-content">\n
<table border="0" width="100%" cellpadding="0" cellspacing="0">\n <table border="0" width="100%" cellpadding="0" cellspacing="0">\n
<tbody>\n <tbody>\n
...@@ -52,16 +53,32 @@ ...@@ -52,16 +53,32 @@
<tr>\n <tr>\n
<td align="center">\n <td align="center">\n
<table>\n <table>\n
<tr><td align="center" colspan="2"><font size="-1">Login in</font></td></tr>\n <tr>\n
<td align="center" colspan="2">\n
<font size="-1" tal:content="python:here.Base_translateString(\'Login in\', lang=default_language)">Login in</font>\n
</td>\n
</tr>\n
<tr></tr>\n <tr></tr>\n
<tr>\n <tr>\n
<td align="center"><label for="name">Name:</label></td>\n <td align="center">\n
<td align="center"><input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'" /></td>\n <label for="name" tal:content="python:here.Base_translateString(\'Name\', lang=default_language)">Name</label>\n
</td>\n
<td align="center">\n
<input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'" />\n
</td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td align="center"><label for="password">Password:</label></td><td><input type="password" name="__ac_password" id="password" /></td>\n <td align="center">\n
<label for="password" tal:content="python:here.Base_translateString(\'Password\', lang=default_language)">Password</label>\n
</td>\n
<td><input type="password" name="__ac_password" id="password" /></td>\n
</tr>\n </tr>\n
<td align="center" colspan="2"><input type="submit" name="logged_in:method" class="submit" value="Sign In"></td>\n <td align="center" colspan="2">\n
<input type="submit" \n
name="logged_in:method"\n
class="submit" \n
tal:attributes="value python:here.Base_translateString(\'Name\', lang=default_language)">\n
</td>\n
</table>\n </table>\n
</td>\n </td>\n
</tr>\n </tr>\n
...@@ -78,15 +95,37 @@ ...@@ -78,15 +95,37 @@
<td>\n <td>\n
<form id="create-user" method="post">\n <form id="create-user" method="post">\n
<table width="100%">\n <table width="100%">\n
<tr><td align="center" colspan="2"><b>Create an account</b></td></tr>\n <tr>\n
<td align="center" colspan="2">\n
<b tal:content="python:here.Base_translateString(\'Create an account\', lang=default_language)">Create an account</b>\n
</td>\n
</tr>\n
<tr><td id="form-message" align="center" colspan="2"></td></tr>\n <tr><td id="form-message" align="center" colspan="2"></td></tr>\n
<tr><td>First name:</td><td><input type="text" name="firstname"/></td></tr>\n <tr>\n
<tr><td>Last name:</td><td><input type="text" name="lastname"/></td></tr>\n <td tal:content="python:here.Base_translateString(\'First name\', lang=default_language)">First Name</td>\n
<tr><td>Email:</td><td><input type="text" name="email"/></td></tr>\n <td><input type="text" name="firstname"/></td>\n
<tr><td>Login name:</td><td><input type="text" name="login_name"/></td></tr>\n </tr>\n
<tr><td>Password:</td><td><input type="password" name="password"/></td></tr>\n <tr>\n
<tr><td>Confirm Password:</td><td><input type="password" name="confirm"/></td></tr>\n <td tal:content="python:here.Base_translateString(\'Last name\', lang=default_language)">Last Name</td>\n
<td align="center" colspan="2"><input type="submit" name="logged_in:method" class="submit" value="Create Account"></td>\n <td><input type="text" name="lastname"/></td>\n
</tr>\n
<tr><td>Email</td><td><input type="text" name="email"/></td></tr>\n
<tr>\n
<td tal:content="python:here.Base_translateString(\'Login name\', lang=default_language)">Login name</td>\n
<td><input type="text" name="login_name"/></td>\n
</tr>\n
<tr>\n
<td tal:content="python:here.Base_translateString(\'Password\', lang=default_language)">Password</td>\n
<td><input type="password" name="password"/></td>\n
</tr>\n
<tr>\n
<td tal:content="python:here.Base_translateString(\'Confirm Password\', lang=default_language)">Confirm Password</td>\n
<td><input type="password" name="confirm"/></td>\n
</tr>\n
<td align="center" colspan="2">\n
<input type="submit" name="logged_in:method" \n
class="submit" tal:attributes="value python:here.Base_translateString(\'Create Account\', lang=default_language)">\n
</td>\n
<tr><td id="back-login" align="left" colspan="2"><< Back</td></tr>\n <tr><td id="back-login" align="left" colspan="2"><< Back</td></tr>\n
</table>\n </table>\n
</form>\n </form>\n
...@@ -120,7 +159,8 @@ ...@@ -120,7 +159,8 @@
<a target="_blank" href="http://www.freecloudalliance.org/">Free Cloud Alliance</a>\n <a target="_blank" href="http://www.freecloudalliance.org/">Free Cloud Alliance</a>\n
-\n -\n
<a href="#">Help</a>\n <a href="#">Help</a>\n
</div> </div>\n
</tal:block>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
<script src="portal_skins/erp5_jquery/jquery/plugin/wdcalendar/wdCalendar_lang_US.js" type="text/javascript"></script>\n <script src="portal_skins/erp5_jquery/jquery/plugin/wdcalendar/wdCalendar_lang_US.js" type="text/javascript"></script>\n
<script src="portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js" type="text/javascript"></script>\n <script src="portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js" type="text/javascript"></script>\n
<script src="ung_js/ung_calendar.js" type="text/javascript"></script>\n <script src="ung_js/ung_calendar.js" type="text/javascript"></script>\n
<tal:block tal:define="default_language python:here.Localizer.get_selected_language()">\n
<div>\n <div>\n
<div id="calhead" style="padding-left:1px;padding-right:1px;">\n <div id="calhead" style="padding-left:1px;padding-right:1px;">\n
<div class="cHead">\n <div class="cHead">\n
...@@ -64,7 +65,7 @@ ...@@ -64,7 +65,7 @@
<div id="caltoolbar" class="ctoolbar">\n <div id="caltoolbar" class="ctoolbar">\n
<div id="showtodaybtn" class="fbutton">\n <div id="showtodaybtn" class="fbutton">\n
<div>\n <div>\n
<span title=\'Click to back to today\' class="showtoday">\n <span title=\'Click to back to today\' class="showtoday" tal:content="python:here.Base_translateString(\'Today\', lang=default_language)">\n
Today\n Today\n
</span>\n </span>\n
</div>\n </div>\n
...@@ -80,28 +81,28 @@ ...@@ -80,28 +81,28 @@
</div>\n </div>\n
<div id="showdaybtn" class="fbutton">\n <div id="showdaybtn" class="fbutton">\n
<div>\n <div>\n
<span title=\'Day\' class="showdayview">\n <span title=\'Day\' class="showdayview" tal:content="python:here.Base_translateString(\'Day\', lang=default_language)">\n
Day\n Day\n
</span>\n </span>\n
</div>\n </div>\n
</div>\n </div>\n
<div id="showweekbtn" class="fbutton fcurrent">\n <div id="showweekbtn" class="fbutton fcurrent">\n
<div>\n <div>\n
<span title=\'Week\' class="showweekview">\n <span title=\'Week\' class="showweekview" tal:content="python:here.Base_translateString(\'Week\', lang=default_language)">\n
Week\n Week\n
</span>\n </span>\n
</div>\n </div>\n
</div>\n </div>\n
<div id="showmonthbtn" class="fbutton">\n <div id="showmonthbtn" class="fbutton">\n
<div>\n <div>\n
<span title=\'Month\' class="showmonthview">\n <span title=\'Month\' class="showmonthview" tal:content="python:here.Base_translateString(\'Month\', lang=default_language)">\n
Month\n Month\n
</span>\n </span>\n
</div>\n </div>\n
</div>\n </div>\n
<div id="showreflashbtn" class="fbutton">\n <div id="showreflashbtn" class="fbutton">\n
<div>\n <div>\n
<span title=\'Refresh view\' class="showdayflash">\n <span title=\'Refresh view\' class="showdayflash" tal:content="python:here.Base_translateString(\'Refresh\', lang=default_language)">\n
Refresh\n Refresh\n
</span>\n </span>\n
</div>\n </div>\n
...@@ -120,6 +121,7 @@ ...@@ -120,6 +121,7 @@
</div>\n </div>\n
<div id="new_event_dialog"/>\n <div id="new_event_dialog"/>\n
</div>\n </div>\n
</tal:block>\n
</html> </html>
]]></unicode> </value> ]]></unicode> </value>
......
318 319
\ 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