forked from External/greenlight
Internationalize date format (#2685)
* Changed view_date helper to use datetime format from i18n * Removed German translation for date format, should be added via transifex Co-authored-by: Henning Schumann <henning.schumann@unicode-it.de> Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
parent
75fd49aa7e
commit
b61df09b94
|
@ -135,6 +135,6 @@ module ApplicationHelper
|
||||||
# Returns a more friendly/readable date time object
|
# Returns a more friendly/readable date time object
|
||||||
def view_date(date)
|
def view_date(date)
|
||||||
return "" if date.nil? # Handle invalid dates
|
return "" if date.nil? # Handle invalid dates
|
||||||
local_time(date, "%b %d, %Y %-I:%M%P")
|
local_time(date, :default)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -645,6 +645,9 @@ en:
|
||||||
test_install: >
|
test_install: >
|
||||||
This deployment is using a pre-configured testing server, you should replace this with your own.
|
This deployment is using a pre-configured testing server, you should replace this with your own.
|
||||||
For details, see the %{href}.
|
For details, see the %{href}.
|
||||||
|
time:
|
||||||
|
formats:
|
||||||
|
default: "%b %d, %Y %-I:%M%P"
|
||||||
update: Update
|
update: Update
|
||||||
verify:
|
verify:
|
||||||
accept: Verify
|
accept: Verify
|
||||||
|
|
Loading…
Reference in New Issue