diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index e1ae254..062b818 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,3 +1,5 @@
+include ActionView::Helpers::DateHelper
+
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
@@ -11,6 +13,6 @@ def question_count
end
def last_sync_date
- Question.first.created_at
+ time_ago_in_words Question.first.created_at
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index c2653af..c24868b 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -35,4 +35,111 @@ en:
one: "A fost găsită o singură întrebare"
other: "Toate întrebările"
more_pages:
- display_entries: "Întrebările %{first} - %{last} din %{total} total"
\ No newline at end of file
+ display_entries: "Întrebările %{first} - %{last} din %{total} total"
+ date:
+ abbr_day_names:
+ - Dum
+ - Lun
+ - Mar
+ - Mie
+ - Joi
+ - Vin
+ - Sâm
+ abbr_month_names:
+ -
+ - Ian
+ - Feb
+ - Mar
+ - Apr
+ - Mai
+ - Iun
+ - Iul
+ - Aug
+ - Sep
+ - Oct
+ - Noi
+ - Dec
+ day_names:
+ - Duminică
+ - Luni
+ - Marți
+ - Miercuri
+ - Joi
+ - Vineri
+ - Sâmbată
+ formats:
+ default: "%d-%m-%Y"
+ long: "%d %B %Y"
+ short: "%d %b"
+ month_names:
+ -
+ - Ianuarie
+ - Februarie
+ - Martie
+ - Aprilie
+ - Mai
+ - Iunie
+ - Iulie
+ - August
+ - Septembrie
+ - Octombrie
+ - Noiembrie
+ - Decembrie
+ order:
+ - :day
+ - :month
+ - :year
+ datetime:
+ distance_in_words:
+ about_x_hours:
+ one: aproximativ o oră
+ few: aproximativ %{count} ore
+ other: aproximativ %{count} ore
+ about_x_months:
+ one: aproximativ o lună
+ few: aproximativ %{count} luni
+ other: aproximativ %{count} luni
+ about_x_years:
+ one: aproximativ un an
+ few: aproximativ %{count} ani
+ other: aproximativ %{count} ani
+ almost_x_years:
+ one: aproape 1 an
+ few: aproape %{count} ani
+ other: aproape %{count} ani
+ half_a_minute: jumătate de minut
+ less_than_x_minutes:
+ one: mai puțin de un minut
+ few: mai puțin de %{count} minute
+ other: mai puțin de %{count} minute
+ less_than_x_seconds:
+ one: mai puțin de o secundă
+ few: mai puțin de %{count} secunde
+ other: mai puțin de %{count} secunde
+ over_x_years:
+ one: mai mult de un an
+ few: mai mult de %{count} ani
+ other: mai mult de %{count} ani
+ x_days:
+ one: 1 zi
+ few: "%{count} zile"
+ other: "%{count} zile"
+ x_minutes:
+ one: 1 minut
+ few: "%{count} minute"
+ other: "%{count} minute"
+ x_months:
+ one: 1 lună
+ few: "%{count} luni"
+ other: "%{count} luni"
+ x_seconds:
+ one: 1 secundă
+ few: "%{count} secunde"
+ other: "%{count} secunde"
+ prompts:
+ day: Ziua
+ hour: Ora
+ minute: Minutul
+ month: Luna
+ second: Secunda
+ year: Anul