- Locale: |
+ <% emt("Locale:") %> |
|
- Menu location: |
+ <% emt("Menu location:") %> |
- > Left
- > Top
+ > <% emt("Left") %>
+ > <% emt("Top") %>
|
|
- Enable mobile-friendly menu: |
+ <% emt("Enable mobile-friendly menu:") %> |
option('mobile_menu') ? 'CHECKED' : '' %>>
@@ -64,7 +66,7 @@ Interface
|
- Default customer view: |
+ <% emt("Default customer view:") %> |
|
@@ -80,21 +82,21 @@ Interface
% my $history_order = $curuser->option('history_order') || 'oldest';
- Customer history sort order: |
+ <% emt("Customer history sort order:") %> |
<& /elements/select.html,
field => 'history_order',
curr_value => $history_order,
options => [ 'oldest', 'newest' ],
- labels => { 'oldest' => 'Oldest first',
- 'newest' => 'Newest first',
+ labels => { 'oldest' => mt('Oldest first'),
+ 'newest' => mt('Newest first'),
},
&>
|
- Spreadsheet download format: |
+ <% emt("Spreadsheet download format:") %> |
|
- Disable HTML editor for customer notes: |
+ <% emt("Disable HTML editor for customer notes:") %> |
option('disable_html_editor') ? 'CHECKED' : '' %>>
|
- Disable submission on [Enter] key - one-time charges: |
+ <% emt("Disable submission on Enter key - one-time charges:") %> |
option('disable_enter_submit_onetimecharge') ? 'CHECKED' : '' %>>
|
- Don't copy MAC address delimiters to clipboard |
+ <% emt("Don't copy MAC address delimiters to clipboard") %> |
option('enable_mask_clipboard_hack') ? 'CHECKED' : '' %>>
|
- Scale documents to fit on a letter-size page |
+ <% emt("When printing, scale HTML documents to fit on a letter-size page") %> |
option('printtofit') ? 'CHECKED' : '' %>>
|
- How many recently-modified customers displayed on dashboard |
+ <% emt("How many recently-modified customers displayed on dashboard") %> |
|
+% my $validate_field_cve = 'customer_view_emails';
+% $js_form_validate->{pref_form}->{validate_fields}{$validate_field_cve} = 'digits: true';
+% $js_form_validate->{pref_form}->{error_message}{$validate_field_cve} = 'Please only enter numbers here.';
+
- How many recent outbound emails to show in customer view |
+ <% emt("How many recent outbound emails to show in customer view") %> |
- |
+
@@ -154,11 +160,11 @@ Interface
-Email Address
-<% ntable("#cccccc",2) %>
+<% emt("Email Address") %>
+
- Email Address(es) (comma separated) |
+ <% emt("Email Address(es) (comma separated) ") %> |
|
|
@@ -168,35 +174,35 @@ Email Address
-Development
-<% ntable("#cccccc",2) %>
+<% emt("Development") %>
+
-OR
+<% emt("OR")%>
-Vonage integration (see Click2Call)
+<% emt("Vonage integration (see") %> <% emt("Click2Call") %>)
<% ntable("#cccccc",2) %>
- Vonage phone number |
+ <% emt("Vonage phone number") %> |
|
- Vonage username |
+ <% emt("Vonage username") %> |
|
- Vonage password |
+ <% emt("Vonage password") %> |
|
@@ -258,9 +264,13 @@ Vonage integration (see Click2Call
% }
-
+">
+
+% my %footerdata = (
+% 'formvalidation' => $js_form_validate,
+% );
+<% include("/elements/footer.html", %footerdata) %>
-<% include('/elements/footer.html') %>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
@@ -287,4 +297,14 @@ my $menu_position = $1;
=~ /^([,\w\@.\-]*)$/ or die "illegal email_address"; #too late
my $email_address = $1;
+my $conf = new FS::Conf;
+
+my @locales = $conf->config('available-locales');
+
+if ( ! @locales ) {
+
+ @locales = FS::Locales->locales ;
+
+}
+
%init>