From 0583b0115114ba9357789d3aa153c472eb7071ab Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 9 May 2022 00:51:36 +0200 Subject: improvements to i18n development experience --- templates/headers/_display_bot_nav.html.ep | 4 ++-- templates/headers/_display_folders.html.ep | 10 +++++----- templates/headers/_display_headers.html.ep | 4 ++-- templates/headers/_pagination1.html.ep | 2 +- templates/webmail/displayheaders.html.ep | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/headers/_display_bot_nav.html.ep b/templates/headers/_display_bot_nav.html.ep index 9064d6e..5a58b77 100644 --- a/templates/headers/_display_bot_nav.html.ep +++ b/templates/headers/_display_bot_nav.html.ep @@ -5,14 +5,14 @@
- +
%= form_for move => (id => 'move-mail') => (class => 'pure-form') => begin
- %= label_for 'select-folder' => l('move') . ' ' . l('to') + %= label_for 'select-folder' => l('move to') %= select_field folder => [grep {$_ ne $folder} @$mail_folders] => (id => 'select-folder') %= csrf_field %= submit_button l('move') => (class => 'pure-button') diff --git a/templates/headers/_display_folders.html.ep b/templates/headers/_display_folders.html.ep index bf8a346..856844d 100644 --- a/templates/headers/_display_folders.html.ep +++ b/templates/headers/_display_folders.html.ep @@ -4,14 +4,14 @@

- <%= "$first_item - $last_item " . l('of') . " $total_items " . l('messages') %>\ - <%= ", $total_new_mails " . l('new') if $total_new_mails > 0 =%> - <%= ' - ' . ucfirst(l 'mbox_size') . ": " . print_sizes10 $total_size if $total_size %> + <%= l('[_1] of [_2] messages', $last_item - $first_item + 1, $total_items) %>\ + <%= l(', [_1] new', $total_new_mails) if $total_new_mails > 0 =%> + <%= l(' - mailbox size: [_1]', print_sizes10 $total_size) if $total_size %>

diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep index f391259..42f927c 100644 --- a/templates/headers/_display_headers.html.ep +++ b/templates/headers/_display_headers.html.ep @@ -14,7 +14,7 @@ - No. + # @@ -76,7 +76,7 @@ diff --git a/templates/headers/_pagination1.html.ep b/templates/headers/_pagination1.html.ep index 010bdbd..9b6121a 100644 --- a/templates/headers/_pagination1.html.ep +++ b/templates/headers/_pagination1.html.ep @@ -1,7 +1,7 @@
← ↞ - [<%= join(' ', ucfirst l('page'), $current_page, l('of'), $total_pages) %>] + [<%= l('page [_1] of [_2]', $current_page, $total_pages) %>] ↠ →
diff --git a/templates/webmail/displayheaders.html.ep b/templates/webmail/displayheaders.html.ep index 42e52fd..23f48d3 100644 --- a/templates/webmail/displayheaders.html.ep +++ b/templates/webmail/displayheaders.html.ep @@ -17,7 +17,7 @@ % } % else {

- %= l 'empty_folder' + %= l 'This folder is empty!'

% } -- cgit v1.2.3