[freeside-commits] freeside/httemplate/pref pref-process.html, 1.17, 1.18 pref.html, 1.17, 1.18

Ivan,,, ivan at wavetail.420.am
Wed May 11 09:20:15 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/pref
In directory wavetail.420.am:/tmp/cvs-serv24392/httemplate/pref

Modified Files:
	pref-process.html pref.html 
Log Message:
i18n, RT#12515

Index: pref.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- pref.html	14 Dec 2010 06:33:28 -0000	1.17
+++ pref.html	11 May 2011 16:20:12 -0000	1.18
@@ -31,6 +31,20 @@
 <% ntable("#cccccc",2) %>
 
   <TR>
+    <TH ALIGN="right">Locale: </TH>
+    <TD>
+      <SELECT NAME="locale">
+%       foreach my $locale ( FS::Locales->locales ) {
+%         my %info = FS::Locales->locale_info($locale);
+%         my $selected = ($locale eq $curuser->option('locale'))
+%                          ? 'SELECTED' : '';
+          <OPTION VALUE="<% $locale %>" <%$selected%>><% $info{name} %> (<% $info{country} %>)
+%       }
+      </SELECT>
+    </TD>
+  </TR>
+
+  <TR>
     <TH ALIGN="right">Menu location: </TH>
     <TD>
       <INPUT TYPE="radio" NAME="menu_position" VALUE="left" onClick="document.images['menu_example'].src='../images/menu-left-example.png';" <% $menu_position eq 'left' ? ' CHECKED' : ''%>> Left<BR>

Index: pref-process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref-process.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- pref-process.html	14 Dec 2010 06:33:28 -0000	1.17
+++ pref-process.html	11 May 2011 16:20:12 -0000	1.18
@@ -21,7 +21,7 @@
 
   $access_user = qsearchs( 'access_user', {
     'username'  => getotaker,
-    '_password' => $cgi->param('_password'),
+    '_password' => scalar($cgi->param('_password')),
   } );
 
   $error = 'Current password incorrect; password not changed'
@@ -48,7 +48,7 @@
   my %param = $access_user->options;
 
   #XXX autogen
-  my @paramlist = qw( menu_position default_customer_view
+  my @paramlist = qw( locale menu_position default_customer_view
                       disable_html_editor
                       email_address
                       snom-ip snom-username snom-password



More information about the freeside-commits mailing list