i18n: Use plurals for year/month/day/etc...

This commit is contained in:
Samantaz Fox 2021-12-22 00:07:20 +01:00
parent 7bb1471207
commit 692f4e5be2
No known key found for this signature in database
GPG Key ID: F42821059186176E
13 changed files with 133 additions and 345 deletions

View File

@ -359,34 +359,20 @@
"Yiddish": "Yiddish", "Yiddish": "Yiddish",
"Yoruba": "Yoruba", "Yoruba": "Yoruba",
"Zulu": "Zulu", "Zulu": "Zulu",
"`x` years": { "generic_count_years": "{{count}} year",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` year", "generic_count_years_plural": "{{count}} years",
"": "`x` years" "generic_count_months": "{{count}} month",
}, "generic_count_months_plural": "{{count}} months",
"`x` months": { "generic_count_weeks": "{{count}} week",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` month", "generic_count_weeks_plural": "{{count}} weeks",
"": "`x` months" "generic_count_days": "{{count}} day",
}, "generic_count_days_plural": "{{count}} days",
"`x` weeks": { "generic_count_hours": "{{count}} hour",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` week", "generic_count_hours_plural": "{{count}} hours",
"": "`x` weeks" "generic_count_minutes": "{{count}} minute",
}, "generic_count_minutes_plural": "{{count}} minutes",
"`x` days": { "generic_count_seconds": "{{count}} second",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` day", "generic_count_seconds_plural": "{{count}} seconds",
"": "`x` days"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` hour",
"": "`x` hours"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minute",
"": "`x` minutes"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` second",
"": "`x` seconds"
},
"Fallback comments: ": "Fallback comments: ", "Fallback comments: ": "Fallback comments: ",
"Popular": "Popular", "Popular": "Popular",
"Search": "Search", "Search": "Search",

View File

@ -340,34 +340,13 @@
"Yiddish": "ییدیش", "Yiddish": "ییدیش",
"Yoruba": "یوروبایی", "Yoruba": "یوروبایی",
"Zulu": "زولو", "Zulu": "زولو",
"`x` years": { "generic_count_years_0": "{{count}} سال",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` سال", "generic_count_months_0": "{{count}} ماه",
"": "`x` سال" "generic_count_weeks_0": "{{count}} هفته",
}, "generic_count_days_0": "{{count}} روز",
"`x` months": { "generic_count_hours_0": "{{count}} ساعت",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ماه", "generic_count_minutes_0": "{{count}} دقیقه",
"": "`x` ماه" "generic_count_seconds_0": "{{count}} ثانیه",
},
"`x` weeks": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` هفته",
"": "`x` هفته"
},
"`x` days": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` روز",
"": "`x` روز"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ساعت",
"": "`x` ساعت"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` دقیقه",
"": "`x` دقیقه"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ثانیه",
"": "`x` ثانیه"
},
"Fallback comments: ": "نظرات عقب گرد: ", "Fallback comments: ": "نظرات عقب گرد: ",
"Popular": "محبوب", "Popular": "محبوب",
"Search": "جستجو", "Search": "جستجو",

View File

@ -340,34 +340,20 @@
"Yiddish": "Yiddish", "Yiddish": "Yiddish",
"Yoruba": "Yoruba", "Yoruba": "Yoruba",
"Zulu": "Zoulou", "Zulu": "Zoulou",
"`x` years": { "generic_count_years": "{{count}} an",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` an", "generic_count_years_plural": "{{count}} ans",
"": "`x` ans" "generic_count_months": "{{count}} mois",
}, "generic_count_months_plural": "{{count}} mois",
"`x` months": { "generic_count_weeks": "{{count}} semaine",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` mois", "generic_count_weeks_plural": "{{count}} semaines",
"": "`x` mois" "generic_count_days": "{{count}} jour",
}, "generic_count_days_plural": "{{count}} jours",
"`x` weeks": { "generic_count_hours": "{{count}} heure",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` semaine", "generic_count_hours_plural": "{{count}} heures",
"": "`x` semaines" "generic_count_minutes": "{{count}} minute",
}, "generic_count_minutes_plural": "{{count}} minutes",
"`x` days": { "generic_count_seconds": "{{count}} seconde",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` jour", "generic_count_seconds_plural": "{{count}} secondes",
"": "`x` jours"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` heure",
"": "`x` heures"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minute",
"": "`x` minutes"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` seconde",
"": "`x` secondes"
},
"Fallback comments: ": "Commentaires alternatifs : ", "Fallback comments: ": "Commentaires alternatifs : ",
"Popular": "Populaire", "Popular": "Populaire",
"Search": "Rechercher", "Search": "Rechercher",

View File

@ -340,34 +340,13 @@
"Yiddish": "Bahasa Yiddi", "Yiddish": "Bahasa Yiddi",
"Yoruba": "Bahasa Yoruba", "Yoruba": "Bahasa Yoruba",
"Zulu": "Bahasa Zulu", "Zulu": "Bahasa Zulu",
"`x` years": { "generic_count_years_0": "{{count}} tahun",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` tahun", "generic_count_months_0": "{{count}} bulan",
"": "`x` tahun" "generic_count_weeks_0": "{{count}} pekan",
}, "generic_count_days_0": "{{count}} hari",
"`x` months": { "generic_count_hours_0": "{{count}} jam",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` bulan", "generic_count_minutes_0": "{{count}} menit",
"": "`x` bulan" "generic_count_seconds_0": "{{count}} detik",
},
"`x` weeks": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` pekan",
"": "`x` pekan"
},
"`x` days": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` hari",
"": "`x` hari"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` jam",
"": "`x` jam"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` menit",
"": "`x` menit"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` detik",
"": "`x` detik"
},
"Fallback comments: ": "Komentar alternatif: ", "Fallback comments: ": "Komentar alternatif: ",
"Popular": "Populer", "Popular": "Populer",
"Search": "Cari", "Search": "Cari",

View File

@ -330,34 +330,20 @@
"Yiddish": "Yiddish", "Yiddish": "Yiddish",
"Yoruba": "Yoruba", "Yoruba": "Yoruba",
"Zulu": "Zulu", "Zulu": "Zulu",
"`x` years": { "generic_count_years": "{{count}} anno",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` anno", "generic_count_years_plural": "{{count}} anni",
"": "`x` anni" "generic_count_months": "{{count}} mese",
}, "generic_count_months_plural": "{{count}} mesi",
"`x` months": { "generic_count_weeks": "{{count}} settimana",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` mese", "generic_count_weeks_plural": "{{count}} settimane",
"": "`x` mesi" "generic_count_days": "{{count}} giorno",
}, "generic_count_days_plural": "{{count}} giorni",
"`x` weeks": { "generic_count_hours": "{{count}} ora",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` settimana", "generic_count_hours_plural": "{{count}} ore",
"": "`x` settimane" "generic_count_minutes": "{{count}} minuto",
}, "generic_count_minutes_plural": "{{count}} minuti",
"`x` days": { "generic_count_seconds": "{{count}} secondo",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` giorno", "generic_count_seconds_plural": "{{count}} secondi",
"": "`x` giorni"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ora",
"": "`x` ore"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minuto",
"": "`x` minuti"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` secondo",
"": "`x` secondi"
},
"Fallback comments: ": "Commenti alternativi: ", "Fallback comments: ": "Commenti alternativi: ",
"Popular": "Popolare", "Popular": "Popolare",
"Search": "Cerca", "Search": "Cerca",

View File

@ -340,34 +340,13 @@
"Yiddish": "イディッシュ語", "Yiddish": "イディッシュ語",
"Yoruba": "ヨルバ語", "Yoruba": "ヨルバ語",
"Zulu": "ズール語", "Zulu": "ズール語",
"`x` years": { "generic_count_years_0": "{{count}}年",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`年", "generic_count_months_0": "{{count}}ヶ月",
"": "`x`年" "generic_count_weeks_0": "{{count}}週",
}, "generic_count_days_0": "{{count}}日",
"`x` months": { "generic_count_hours_0": "{{count}}時間",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`ヶ月", "generic_count_minutes_0": "{{count}}分",
"": "`x`ヶ月" "generic_count_seconds_0": "{{count}}秒",
},
"`x` weeks": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`週",
"": "`x`週"
},
"`x` days": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`日",
"": "`x`日"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`時間",
"": "`x`時間"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`分",
"": "`x`分"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x`秒",
"": "`x`秒"
},
"Fallback comments: ": "フォールバック時のコメント: ", "Fallback comments: ": "フォールバック時のコメント: ",
"Popular": "人気", "Popular": "人気",
"Search": "検索", "Search": "検索",

View File

@ -336,36 +336,15 @@
"Scottish Gaelic": "스코틀랜드 게일어", "Scottish Gaelic": "스코틀랜드 게일어",
"Popular": "인기", "Popular": "인기",
"Fallback comments: ": "대체 댓글: ", "Fallback comments: ": "대체 댓글: ",
"`x` seconds": {
"": "`x` 초",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 초"
},
"Swahili": "스와힐리어", "Swahili": "스와힐리어",
"Sundanese": "순다어", "Sundanese": "순다어",
"`x` hours": { "generic_count_years_0": "{{count}} 년",
"": "`x` 시", "generic_count_months_0": "{{count}} 월",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 시" "generic_count_weeks_0": "{{count}} 주",
}, "generic_count_days_0": "{{count}} 일",
"`x` minutes": { "generic_count_hours_0": "{{count}} 시",
"": "`x` 분", "generic_count_minutes_0": "{{count}} 분",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 분" "generic_count_seconds_0": "{{count}} 초",
},
"`x` days": {
"": "`x` 일",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 일"
},
"`x` weeks": {
"": "`x` 주",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 주"
},
"`x` months": {
"": "`x` 월",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 월"
},
"`x` years": {
"": "`x` 년",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 년"
},
"Zulu": "줄루어", "Zulu": "줄루어",
"Yoruba": "요루바어", "Yoruba": "요루바어",
"Yiddish": "이디시어", "Yiddish": "이디시어",

View File

@ -340,34 +340,20 @@
"Yiddish": "Iídiche", "Yiddish": "Iídiche",
"Yoruba": "Iorubá", "Yoruba": "Iorubá",
"Zulu": "Zulu", "Zulu": "Zulu",
"`x` years": { "generic_count_years": "{{count}} ano",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ano", "generic_count_years_plural": "{{count}} anos",
"": "`x` anos" "generic_count_months": "{{count}} mês",
}, "generic_count_months_plural": "{{count}} meses",
"`x` months": { "generic_count_weeks": "{{count}} semana",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` mês", "generic_count_weeks_plural": "{{count}} semanas",
"": "`x` meses" "generic_count_days": "{{count}} dia",
}, "generic_count_days_plural": "{{count}} dia",
"`x` weeks": { "generic_count_hours": "{{count}} hora",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` semana", "generic_count_hours_plural": "{{count}} horas",
"": "`x` semanas" "generic_count_minutes": "{{count}} minuto",
}, "generic_count_minutes_plural": "{{count}} minutos",
"`x` days": { "generic_count_seconds": "{{count}} segundo",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` dia", "generic_count_seconds_plural": "{{count}} segundos",
"": "`x` dia"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` hora",
"": "`x` horas"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minuto",
"": "`x` minutos"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` segundo",
"": "`x` segundos"
},
"Fallback comments: ": "Comentários alternativos: ", "Fallback comments: ": "Comentários alternativos: ",
"Popular": "Populares", "Popular": "Populares",
"Search": "Procurar", "Search": "Procurar",

View File

@ -340,34 +340,20 @@
"Yiddish": "Iídiche", "Yiddish": "Iídiche",
"Yoruba": "Ioruba", "Yoruba": "Ioruba",
"Zulu": "Zulu", "Zulu": "Zulu",
"`x` years": { "generic_count_years": "{{count}} ano",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ano", "generic_count_years_plural": "{{count}} anos",
"": "`x` anos" "generic_count_months": "{{count}} mês",
}, "generic_count_months_plural": "{{count}} meses",
"`x` months": { "generic_count_weeks": "{{count}} seman",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` mês", "generic_count_weeks_plural": "{{count}} semanas",
"": "`x` meses" "generic_count_days": "{{count}} dia",
}, "generic_count_days_plural": "{{count}} dias",
"`x` weeks": { "generic_count_hours": "{{count}} hora",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` seman", "generic_count_hours_plural": "{{count}} horas",
"": "`x` semanas" "generic_count_minutes": "{{count}} minuto",
}, "generic_count_minutes_plural": "{{count}} minutos",
"`x` days": { "generic_count_seconds": "{{count}} segundo",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` dia", "generic_count_seconds_plural": "{{count}} segundos",
"": "`x` dias"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` hora",
"": "`x` horas"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minuto",
"": "`x` minutos"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` segundo",
"": "`x` segundos"
},
"Fallback comments: ": "Comentários alternativos: ", "Fallback comments: ": "Comentários alternativos: ",
"Popular": "Popular", "Popular": "Popular",
"Search": "Pesquisar", "Search": "Pesquisar",

View File

@ -46,34 +46,20 @@
"Default": "Predefinido", "Default": "Predefinido",
"Top": "Destaques", "Top": "Destaques",
"Search": "Pesquisar", "Search": "Pesquisar",
"`x` seconds": { "generic_count_years": "{{count}} segundo",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` segundo", "generic_count_years_plural": "{{count}} segundos",
"": "`x` segundos" "generic_count_months": "{{count}} minuto",
}, "generic_count_months_plural": "{{count}} minutos",
"`x` minutes": { "generic_count_weeks": "{{count}} hora",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` minuto", "generic_count_weeks_plural": "{{count}} horas",
"": "`x` minutos" "generic_count_days": "{{count}} dia",
}, "generic_count_days_plural": "{{count}} dias",
"`x` hours": { "generic_count_hours": "{{count}} seman",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` hora", "generic_count_hours_plural": "{{count}} semanas",
"": "`x` horas" "generic_count_minutes": "{{count}} mês",
}, "generic_count_minutes_plural": "{{count}} meses",
"`x` days": { "generic_count_seconds": "{{count}} ano",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` dia", "generic_count_seconds_plural": "{{count}} anos",
"": "`x` dias"
},
"`x` weeks": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` seman",
"": "`x` semanas"
},
"`x` months": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` mês",
"": "`x` meses"
},
"`x` years": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ano",
"": "`x` anos"
},
"Chinese (Traditional)": "Chinês (tradicional)", "Chinese (Traditional)": "Chinês (tradicional)",
"Chinese (Simplified)": "Chinês (simplificado)", "Chinese (Simplified)": "Chinês (simplificado)",
"Could not pull trending pages.": "Não foi possível obter as páginas de tendências.", "Could not pull trending pages.": "Não foi possível obter as páginas de tendências.",

View File

@ -340,34 +340,13 @@
"Yiddish": "意第绪语", "Yiddish": "意第绪语",
"Yoruba": "约鲁巴语", "Yoruba": "约鲁巴语",
"Zulu": "祖鲁语", "Zulu": "祖鲁语",
"`x` years": { "generic_count_years_0": "{{count}} 年",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 年", "generic_count_months_0": "{{count}} 月",
"": "`x` 年" "generic_count_weeks_0": "{{count}} 周",
}, "generic_count_days_0": "{{count}} 天",
"`x` months": { "generic_count_hours_0": "{{count}} 小时",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 月", "generic_count_minutes_0": "{{count}} 分钟",
"": "`x` 个月" "generic_count_seconds_0": "{{count}} 秒",
},
"`x` weeks": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 周",
"": "`x` 周"
},
"`x` days": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 天",
"": "`x` 天"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 小时",
"": "`x` 小时"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 分钟",
"": "`x` 分钟"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 秒",
"": "`x` 秒"
},
"Fallback comments: ": "后备评论: ", "Fallback comments: ": "后备评论: ",
"Popular": "热门频道", "Popular": "热门频道",
"Search": "搜索", "Search": "搜索",

View File

@ -340,34 +340,13 @@
"Yiddish": "意第緒語", "Yiddish": "意第緒語",
"Yoruba": "約魯巴語", "Yoruba": "約魯巴語",
"Zulu": "祖魯語", "Zulu": "祖魯語",
"`x` years": { "generic_count_years_0": "{{count}} 年",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 年", "generic_count_months_0": "{{count}} 月",
"": "`x` 年" "generic_count_weeks_0": "{{count}} 週",
}, "generic_count_days_0": "{{count}} 天",
"`x` months": { "generic_count_hours_0": "{{count}} 小時",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 月", "generic_count_minutes_0": "{{count}} 分鐘",
"": "`x` 月" "generic_count_seconds_0": "{{count}} 秒",
},
"`x` weeks": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 週",
"": "`x` 週"
},
"`x` days": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 天",
"": "`x` 天"
},
"`x` hours": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 小時",
"": "`x` 小時"
},
"`x` minutes": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 天",
"": "`x` 分鐘"
},
"`x` seconds": {
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 秒",
"": "`x` 秒"
},
"Fallback comments: ": "汰退留言: ", "Fallback comments: ": "汰退留言: ",
"Popular": "熱門頻道", "Popular": "熱門頻道",
"Search": "搜尋", "Search": "搜尋",

View File

@ -123,22 +123,20 @@ def recode_date(time : Time, locale)
span = Time.utc - time span = Time.utc - time
if span.total_days > 365.0 if span.total_days > 365.0
span = translate(locale, "`x` years", (span.total_days.to_i // 365).to_s) return translate_count(locale, "generic_count_years", span.total_days.to_i // 365)
elsif span.total_days > 30.0 elsif span.total_days > 30.0
span = translate(locale, "`x` months", (span.total_days.to_i // 30).to_s) return translate_count(locale, "generic_count_months", span.total_days.to_i // 30)
elsif span.total_days > 7.0 elsif span.total_days > 7.0
span = translate(locale, "`x` weeks", (span.total_days.to_i // 7).to_s) return translate_count(locale, "generic_count_weeks", span.total_days.to_i // 7)
elsif span.total_hours > 24.0 elsif span.total_hours > 24.0
span = translate(locale, "`x` days", (span.total_days.to_i).to_s) return translate_count(locale, "generic_count_days", span.total_days.to_i)
elsif span.total_minutes > 60.0 elsif span.total_minutes > 60.0
span = translate(locale, "`x` hours", (span.total_hours.to_i).to_s) return translate_count(locale, "generic_count_hours", span.total_hours.to_i)
elsif span.total_seconds > 60.0 elsif span.total_seconds > 60.0
span = translate(locale, "`x` minutes", (span.total_minutes.to_i).to_s) return translate_count(locale, "generic_count_minutes", span.total_minutes.to_i)
else else
span = translate(locale, "`x` seconds", (span.total_seconds.to_i).to_s) return translate_count(locale, "generic_count_seconds", span.total_seconds.to_i)
end end
return span
end end
def number_with_separator(number) def number_with_separator(number)