mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +01:00
i18n plan duration
This commit is contained in:
parent
64ab18bad7
commit
ac0712e5bb
@ -17,7 +17,7 @@ The [issue tracker](https://github.com/LaCasemate/fab-manager/issues) is the pre
|
|||||||
[features requests](#features) and [submitting pull requests](#pull-requests), but please respect the following
|
[features requests](#features) and [submitting pull requests](#pull-requests), but please respect the following
|
||||||
restrictions:
|
restrictions:
|
||||||
|
|
||||||
* Please **do not** use the issue tracker for personal support requests (use [the forum](http://www.fab-manager.com/forum)).
|
* Please **do not** use the issue tracker for personal support requests (use [the forum](https://forum.fab-manager.com)).
|
||||||
|
|
||||||
* Please **do not** derail or troll issues. Keep the discussion on topic and respect the opinions of others.
|
* Please **do not** derail or troll issues. Keep the discussion on topic and respect the opinions of others.
|
||||||
|
|
||||||
|
@ -112,25 +112,7 @@ Application.Filters.filter "toTrusted", [ "$sce", ($sce) ->
|
|||||||
|
|
||||||
Application.Filters.filter "planIntervalFilter", [ ->
|
Application.Filters.filter "planIntervalFilter", [ ->
|
||||||
(interval, intervalCount) ->
|
(interval, intervalCount) ->
|
||||||
if typeof intervalCount != 'number'
|
moment.duration(intervalCount, interval).humanize()
|
||||||
switch interval
|
|
||||||
when 'day' then return 'jour'
|
|
||||||
when 'week' then return 'semaine'
|
|
||||||
when 'month' then return 'mois'
|
|
||||||
when 'year' then return 'année'
|
|
||||||
else
|
|
||||||
if intervalCount == 1
|
|
||||||
switch interval
|
|
||||||
when 'day' then return 'un jour'
|
|
||||||
when 'week' then return 'une semaine'
|
|
||||||
when 'month' then return 'un mois'
|
|
||||||
when 'year' then return 'un an'
|
|
||||||
else
|
|
||||||
switch interval
|
|
||||||
when 'day' then return intervalCount+ ' jours'
|
|
||||||
when 'week' then return intervalCount+ ' semaines'
|
|
||||||
when 'month' then return intervalCount+ ' mois'
|
|
||||||
when 'year' then return intervalCount+ ' ans'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
Application.Filters.filter "humanReadablePlanName", ['$filter', ($filter)->
|
Application.Filters.filter "humanReadablePlanName", ['$filter', ($filter)->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user