From d96593f72f45d8fa1c84205cd73ffd3e4e51d8e5 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sun, 27 Jan 2013 11:42:46 +0100 Subject: i18n display of the time. --- app/views/call_histories/_index_core.html.haml | 9 +++++++++ config/locales/de.yml | 3 ++- config/locales/en.yml | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/views/call_histories/_index_core.html.haml b/app/views/call_histories/_index_core.html.haml index 7409203..4ca340d 100644 --- a/app/views/call_histories/_index_core.html.haml +++ b/app/views/call_histories/_index_core.html.haml @@ -3,9 +3,14 @@ %table.table.table-striped %thead %tr + %th + Datum %th Uhrzeit %th + Misc + %th + Avatar %th Teilnehmer %th @@ -16,6 +21,10 @@ - if !call_history.display_number.blank? - phone_book_entry = call_history.phone_book_entry_by_number(call_history.display_number) %tr{:id => "call_history_id_#{call_history.id}_tr", :class => (call_history.duration.blank? ? 'warning' : '')} + %td + = l call_history.start_stamp, :format => :date_only + %td + = l call_history.start_stamp, :format => :short %td - if call_history.voicemail_message? .voicemail-message diff --git a/config/locales/de.yml b/config/locales/de.yml index 087a2d3..e82f513 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -193,4 +193,5 @@ de: default: ! '%A, %d. %B %Y, %H:%M Uhr' long: ! '%A, %d. %B %Y, %H:%M Uhr' short: ! '%d. %B, %H:%M Uhr' - pm: nachmittags \ No newline at end of file + pm: nachmittags + date_only: '%d.%m.%Y' \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index dabe98d..4f29799 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3,4 +3,6 @@ en: dont_use_me: "NO ME USES!" # Temporal, just till we create the Voice Mail stuff. voice_mail: "Voice Mail" - fax: "Fax" \ No newline at end of file + fax: "Fax" + time: + date_only: '%m.%d.%Y' \ No newline at end of file -- cgit v1.2.3