i18n: Use plurals for tokens/replies/unseen notifications

pull/2646/head
Samantaz Fox 3 years ago
parent 5bb2cb7d71
commit 37c953e633
No known key found for this signature in database
GPG Key ID: F42821059186176E

@ -144,18 +144,14 @@
"Subscription manager": "Subscription manager", "Subscription manager": "Subscription manager",
"Token manager": "Token manager", "Token manager": "Token manager",
"Token": "Token", "Token": "Token",
"`x` tokens": { "tokens_count": "{{count}} token",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` token", "tokens_count_plural": "{{count}} tokens",
"": "`x` tokens"
},
"Import/export": "Import/export", "Import/export": "Import/export",
"unsubscribe": "unsubscribe", "unsubscribe": "unsubscribe",
"revoke": "revoke", "revoke": "revoke",
"Subscriptions": "Subscriptions", "Subscriptions": "Subscriptions",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count": "{{count}} unseen notification",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` unseen notification", "subscriptions_unseen_notifs_count_plural": "{{count}} unseen notifications",
"": "`x` unseen notifications"
},
"search": "search", "search": "search",
"Log out": "Log out", "Log out": "Log out",
"Released under the AGPLv3 on Github.": "Released under the AGPLv3 on Github.", "Released under the AGPLv3 on Github.": "Released under the AGPLv3 on Github.",
@ -222,16 +218,12 @@
"This channel does not exist.": "This channel does not exist.", "This channel does not exist.": "This channel does not exist.",
"Could not get channel info.": "Could not get channel info.", "Could not get channel info.": "Could not get channel info.",
"Could not fetch comments": "Could not fetch comments", "Could not fetch comments": "Could not fetch comments",
"View `x` replies": { "comments_view_x_replies": "View {{count}} reply",
"([^.,0-9]|^)1([^.,0-9]|$)": "View `x` reply", "comments_view_x_replies_plural": "View {{count}} replies",
"": "View `x` replies"
},
"`x` ago": "`x` ago", "`x` ago": "`x` ago",
"Load more": "Load more", "Load more": "Load more",
"`x` points": { "comments_points_count": "{{count}} point",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` point", "comments_points_count_plural": "{{count}} points",
"": "`x` points"
},
"Could not create mix.": "Could not create mix.", "Could not create mix.": "Could not create mix.",
"Empty playlist": "Empty playlist", "Empty playlist": "Empty playlist",
"Not a playlist.": "Not a playlist.", "Not a playlist.": "Not a playlist.",

@ -120,18 +120,12 @@
"Subscription manager": "مدیریت اشتراک", "Subscription manager": "مدیریت اشتراک",
"Token manager": "مدیر توکن", "Token manager": "مدیر توکن",
"Token": "توکن", "Token": "توکن",
"`x` tokens": { "tokens_count_0": "{{count}} توکن ها",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` توکن ها",
"": "`x` توکن ها"
},
"Import/export": "وارد کردن/خارج کردن", "Import/export": "وارد کردن/خارج کردن",
"unsubscribe": "لغو اشتراک", "unsubscribe": "لغو اشتراک",
"revoke": "ابطال", "revoke": "ابطال",
"Subscriptions": "اشتراک ها", "Subscriptions": "اشتراک ها",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count_0": "{{count}} اعلان نادیده",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` اعلان نادیده",
"": "`x` اعلان نادیده"
},
"search": "جستجو", "search": "جستجو",
"Log out": "خروج", "Log out": "خروج",
"Released under the AGPLv3 on Github.": "منتشر شده تحت پروانه AGPLv3 روی گیت‌هاب.", "Released under the AGPLv3 on Github.": "منتشر شده تحت پروانه AGPLv3 روی گیت‌هاب.",
@ -198,16 +192,10 @@
"This channel does not exist.": "این کانال وجود ندارد.", "This channel does not exist.": "این کانال وجود ندارد.",
"Could not get channel info.": "نمیتوان اطلاعات کانال را دریافت کرد.", "Could not get channel info.": "نمیتوان اطلاعات کانال را دریافت کرد.",
"Could not fetch comments": "نمیتوان نظرات را دریافت کرد", "Could not fetch comments": "نمیتوان نظرات را دریافت کرد",
"View `x` replies": { "comments_view_x_replies_0": "نمایش {{count}} پاسخ ها",
"([^.,0-9]|^)1([^.,0-9]|$)": "نمایش `x` پاسخ ها",
"": "نمایش `x` پاسخ ها"
},
"`x` ago": "`x` پیش", "`x` ago": "`x` پیش",
"Load more": "بارگذاری بیشتر", "Load more": "بارگذاری بیشتر",
"`x` points": { "comments_points_count_0": "{{count}} نقطه ها",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` نقطه ها",
"": "`x` نقطه ها"
},
"Could not create mix.": "نمیتوان میکس ساخت.", "Could not create mix.": "نمیتوان میکس ساخت.",
"Empty playlist": "سیاههٔ پخش خالی", "Empty playlist": "سیاههٔ پخش خالی",
"Not a playlist.": "یک سیاههٔ پخش نیست.", "Not a playlist.": "یک سیاههٔ پخش نیست.",

@ -125,18 +125,14 @@
"Subscription manager": "Gestionnaire d'abonnement", "Subscription manager": "Gestionnaire d'abonnement",
"Token manager": "Gestionnaire de token", "Token manager": "Gestionnaire de token",
"Token": "Token", "Token": "Token",
"`x` tokens": { "tokens_count": "{{count}} token",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` token", "tokens_count_plural": "{{count}} tokens",
"": "`x` tokens"
},
"Import/export": "Importer/Exporter", "Import/export": "Importer/Exporter",
"unsubscribe": "se désabonner", "unsubscribe": "se désabonner",
"revoke": "révoquer", "revoke": "révoquer",
"Subscriptions": "Abonnements", "Subscriptions": "Abonnements",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count": "{{count}} notification non vue",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` notification non vue", "subscriptions_unseen_notifs_count_plural": "{{count}} notifications non vues",
"": "`x` notifications non vues"
},
"search": "rechercher", "search": "rechercher",
"Log out": "Se déconnecter", "Log out": "Se déconnecter",
"Released under the AGPLv3 on Github.": "Publié sous licence AGPLv3 sur Github.", "Released under the AGPLv3 on Github.": "Publié sous licence AGPLv3 sur Github.",
@ -203,16 +199,12 @@
"This channel does not exist.": "Cette chaine n'existe pas.", "This channel does not exist.": "Cette chaine n'existe pas.",
"Could not get channel info.": "Impossible de charger les informations de cette chaîne.", "Could not get channel info.": "Impossible de charger les informations de cette chaîne.",
"Could not fetch comments": "Impossible de charger les commentaires", "Could not fetch comments": "Impossible de charger les commentaires",
"View `x` replies": { "comments_view_x_replies": "Voir {{count}} réponse",
"([^.,0-9]|^)1([^.,0-9]|$)": "Voir `x` réponse", "comments_view_x_replies_plural": "Voir {{count}} réponses",
"": "Voir `x` réponses"
},
"`x` ago": "il y a `x`", "`x` ago": "il y a `x`",
"Load more": "Voir plus", "Load more": "Voir plus",
"`x` points": { "comments_points_count": "{{count}} point",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` point", "comments_points_count_plural": "{{count}} points",
"": "`x` points"
},
"Could not create mix.": "Impossible de charger cette liste de lecture.", "Could not create mix.": "Impossible de charger cette liste de lecture.",
"Empty playlist": "La liste de lecture est vide", "Empty playlist": "La liste de lecture est vide",
"Not a playlist.": "La liste de lecture est invalide.", "Not a playlist.": "La liste de lecture est invalide.",

@ -120,18 +120,12 @@
"Subscription manager": "Pengatur langganan", "Subscription manager": "Pengatur langganan",
"Token manager": "Pengatur token", "Token manager": "Pengatur token",
"Token": "Token", "Token": "Token",
"`x` tokens": { "tokens_count_0": "{{count}} token",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` token",
"": "`x` token"
},
"Import/export": "Impor/ekspor", "Import/export": "Impor/ekspor",
"unsubscribe": "batal langganan", "unsubscribe": "batal langganan",
"revoke": "cabut", "revoke": "cabut",
"Subscriptions": "Langganan", "Subscriptions": "Langganan",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count_0": "{{count}} pemberitahuan belum dilihat",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` pemberitahuan belum dilihat",
"": "`x` pemberitahuan belum dilihat"
},
"search": "cari", "search": "cari",
"Log out": "Keluar", "Log out": "Keluar",
"Released under the AGPLv3 on Github.": "Dirilis di bawah AGPLv3 di Github.", "Released under the AGPLv3 on Github.": "Dirilis di bawah AGPLv3 di Github.",
@ -198,16 +192,10 @@
"This channel does not exist.": "Kanal ini tidak ada.", "This channel does not exist.": "Kanal ini tidak ada.",
"Could not get channel info.": "Tidak bisa mendapatkan info kanal.", "Could not get channel info.": "Tidak bisa mendapatkan info kanal.",
"Could not fetch comments": "Tidak dapat memuat komentar", "Could not fetch comments": "Tidak dapat memuat komentar",
"View `x` replies": { "comments_view_x_replies_0": "Lihat {{count}} balasan",
"([^.,0-9]|^)1([^.,0-9]|$)": "Lihat`x` balasan",
"": "Lihat `x` balasan"
},
"`x` ago": "`x` lalu", "`x` ago": "`x` lalu",
"Load more": "Muat lebih banyak", "Load more": "Muat lebih banyak",
"`x` points": { "comments_points_count_0": "{{count}} poin",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` poin",
"": "`x` poin"
},
"Could not create mix.": "Tidak dapat membuat mix.", "Could not create mix.": "Tidak dapat membuat mix.",
"Empty playlist": "Daftar putar kosong", "Empty playlist": "Daftar putar kosong",
"Not a playlist.": "Bukan daftar putar.", "Not a playlist.": "Bukan daftar putar.",

@ -118,18 +118,14 @@
"Token": "Gettone", "Token": "Gettone",
"generic_subscriptions_count": "{{count}} iscrizione", "generic_subscriptions_count": "{{count}} iscrizione",
"generic_subscriptions_count_plural": "{{count}} iscrizioni", "generic_subscriptions_count_plural": "{{count}} iscrizioni",
"`x` tokens": { "tokens_count": "{{count}} gettone",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` gettone", "tokens_count_plural": "{{count}} gettoni",
"": "`x` gettoni"
},
"Import/export": "Importa/esporta", "Import/export": "Importa/esporta",
"unsubscribe": "disiscriviti", "unsubscribe": "disiscriviti",
"revoke": "revoca", "revoke": "revoca",
"Subscriptions": "Iscrizioni", "Subscriptions": "Iscrizioni",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count": "{{count}} notifica non visualizzata",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` notifica non visualizzata", "subscriptions_unseen_notifs_count_plural": "{{count}} notifiche non visualizzate",
"": "`x` notifiche non visualizzate"
},
"search": "Cerca", "search": "Cerca",
"Log out": "Esci", "Log out": "Esci",
"Source available here.": "Codice sorgente.", "Source available here.": "Codice sorgente.",

@ -120,18 +120,12 @@
"Subscription manager": "登録チャンネルマネージャー", "Subscription manager": "登録チャンネルマネージャー",
"Token manager": "トークンマネージャー", "Token manager": "トークンマネージャー",
"Token": "トークン", "Token": "トークン",
"`x` tokens": { "tokens_count_0": "{{count}} 個のトークン",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個のトークン",
"": "`x` 個のトークン"
},
"Import/export": "インポート/エクスポート", "Import/export": "インポート/エクスポート",
"unsubscribe": "登録解除", "unsubscribe": "登録解除",
"revoke": "取り消す", "revoke": "取り消す",
"Subscriptions": "登録チャンネル", "Subscriptions": "登録チャンネル",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count_0": "{{count}} 個の未読通知",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個の未読通知",
"": "`x` 個の未読通知"
},
"search": "検索", "search": "検索",
"Log out": "ログアウト", "Log out": "ログアウト",
"Released under the AGPLv3 on Github.": "GitHub 上で AGPLv3 の元で公開されています。", "Released under the AGPLv3 on Github.": "GitHub 上で AGPLv3 の元で公開されています。",
@ -198,16 +192,10 @@
"This channel does not exist.": "このチャンネルは存在しません。", "This channel does not exist.": "このチャンネルは存在しません。",
"Could not get channel info.": "チャンネル情報を取得できませんでした。", "Could not get channel info.": "チャンネル情報を取得できませんでした。",
"Could not fetch comments": "コメントを取得できませんでした", "Could not fetch comments": "コメントを取得できませんでした",
"View `x` replies": { "comments_view_x_replies_0": "{{count}} 件の返信を見る",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 件の返信を見る",
"": "`x` 件の返信を見る"
},
"`x` ago": "`x`前", "`x` ago": "`x`前",
"Load more": "もっと読み込む", "Load more": "もっと読み込む",
"`x` points": { "comments_points_count_0": "{{count}} ポイント",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` ポイント",
"": "`x` ポイント"
},
"Could not create mix.": "ミックスを作成できませんでした。", "Could not create mix.": "ミックスを作成できませんでした。",
"Empty playlist": "空の再生リスト", "Empty playlist": "空の再生リスト",
"Not a playlist.": "再生リストではありません。", "Not a playlist.": "再生リストではありません。",

@ -139,18 +139,12 @@
"Source available here.": "소스는 여기에서 사용할 수 있습니다.", "Source available here.": "소스는 여기에서 사용할 수 있습니다.",
"Log out": "로그아웃", "Log out": "로그아웃",
"search": "검색", "search": "검색",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count_0": "{{count}} 읽지 않은 알림",
"": "`x` 읽지 않은 알림",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 읽지 않은 알림"
},
"Subscriptions": "구독", "Subscriptions": "구독",
"revoke": "철회", "revoke": "철회",
"unsubscribe": "구독 취소", "unsubscribe": "구독 취소",
"Import/export": "가져오기/내보내기", "Import/export": "가져오기/내보내기",
"`x` tokens": { "tokens_count_0": "{{count}} 토큰",
"": "`x` 토큰",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 토큰"
},
"Token": "토큰", "Token": "토큰",
"Token manager": "토큰 관리자", "Token manager": "토큰 관리자",
"Subscription manager": "구독 관리자", "Subscription manager": "구독 관리자",
@ -251,10 +245,7 @@
"Could not pull trending pages.": "인기 급상승 페이지를 가져올 수 없습니다.", "Could not pull trending pages.": "인기 급상승 페이지를 가져올 수 없습니다.",
"Could not create mix.": "믹스를 생성할 수 없습니다.", "Could not create mix.": "믹스를 생성할 수 없습니다.",
"`x` ago": "`x` 전", "`x` ago": "`x` 전",
"View `x` replies": { "comments_view_x_replies_0": "답글 {{count}}개 보기",
"": "답글 `x`개 보기",
"([^.,0-9]|^)1([^.,0-9]|$)": "답글 `x`개 보기"
},
"View Reddit comments": "Reddit의 댓글 보기", "View Reddit comments": "Reddit의 댓글 보기",
"Engagement: ": "약속: ", "Engagement: ": "약속: ",
"Wilson score: ": "Wilson Score: ", "Wilson score: ": "Wilson Score: ",
@ -347,10 +338,7 @@
"Tajik": "타지크어", "Tajik": "타지크어",
"Swedish": "스웨덴어", "Swedish": "스웨덴어",
"Spanish (Latin America)": "스페인어 (라틴 아메리카)", "Spanish (Latin America)": "스페인어 (라틴 아메리카)",
"`x` points": { "comments_points_count_0": "{{count}} 포인트",
"": "`x` 포인트",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 포인트"
},
"Invidious Private Feed for `x`": "`x` 에 대한 Invidious 비공개 피드", "Invidious Private Feed for `x`": "`x` 에 대한 Invidious 비공개 피드",
"Premieres `x`": "최초 공개 `x`", "Premieres `x`": "최초 공개 `x`",
"Premieres in `x`": "`x` 에 최초 공개", "Premieres in `x`": "`x` 에 최초 공개",

@ -131,10 +131,8 @@
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` inscrições", "([^.,0-9]|^)1([^.,0-9]|$)": "`x` inscrições",
"": "`x` inscrições" "": "`x` inscrições"
}, },
"`x` tokens": { "tokens_count": "{{count}} token",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` tokens", "tokens_count_plural": "{{count}} tokens",
"": "Símbolos `x`"
},
"Import/export": "Importar/Exportar", "Import/export": "Importar/Exportar",
"unsubscribe": "cancelar inscrição", "unsubscribe": "cancelar inscrição",
"revoke": "revogar", "revoke": "revogar",

@ -131,10 +131,8 @@
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscrições", "([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscrições",
"": "`x` subscrições" "": "`x` subscrições"
}, },
"`x` tokens": { "tokens_count": "{{count}} token",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` tokens", "tokens_count_plural": "{{count}} tokens",
"": "`x` tokens"
},
"Import/export": "Importar / exportar", "Import/export": "Importar / exportar",
"unsubscribe": "anular subscrição", "unsubscribe": "anular subscrição",
"revoke": "revogar", "revoke": "revogar",

@ -191,10 +191,8 @@
}, },
"Subscriptions": "Subscrições", "Subscriptions": "Subscrições",
"revoke": "revogar", "revoke": "revogar",
"`x` tokens": { "tokens_count": "{{count}} token",
"": "`x` tokens", "tokens_count_plural": "{{count}} tokens",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` tokens"
},
"`x` subscriptions": { "`x` subscriptions": {
"": "`x` subscrições", "": "`x` subscrições",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscrições" "([^.,0-9]|^)1([^.,0-9]|$)": "`x` subscrições"

@ -120,18 +120,12 @@
"Subscription manager": "订阅管理器", "Subscription manager": "订阅管理器",
"Token manager": "令牌管理器", "Token manager": "令牌管理器",
"Token": "令牌", "Token": "令牌",
"`x` tokens": { "tokens_count_0": "{{count}} 个令牌",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 个令牌",
"": "`x` 个令牌"
},
"Import/export": "导入/导出", "Import/export": "导入/导出",
"unsubscribe": "取消订阅", "unsubscribe": "取消订阅",
"revoke": "吊销", "revoke": "吊销",
"Subscriptions": "订阅", "Subscriptions": "订阅",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count_0": "{{count}} 条未读通知",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 条未读通知",
"": "`x` 条未读通知"
},
"search": "搜索", "search": "搜索",
"Log out": "登出", "Log out": "登出",
"Released under the AGPLv3 on Github.": "依据 AGPLv3 许可证发布于 Github。", "Released under the AGPLv3 on Github.": "依据 AGPLv3 许可证发布于 Github。",
@ -198,16 +192,10 @@
"This channel does not exist.": "频道不存在。", "This channel does not exist.": "频道不存在。",
"Could not get channel info.": "无法获取频道信息。", "Could not get channel info.": "无法获取频道信息。",
"Could not fetch comments": "无法获取评论", "Could not fetch comments": "无法获取评论",
"View `x` replies": { "comments_view_x_replies_0": "查看 {{count}} 条回复",
"([^.,0-9]|^)1([^.,0-9]|$)": "查看 `x` 条回复",
"": "查看 `x` 条回复"
},
"`x` ago": "`x` 前", "`x` ago": "`x` 前",
"Load more": "加载更多", "Load more": "加载更多",
"`x` points": { "comments_points_count_0": "{{count}} 分",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 分",
"": "`x` 分"
},
"Could not create mix.": "无法创建合集。", "Could not create mix.": "无法创建合集。",
"Empty playlist": "空播放列表", "Empty playlist": "空播放列表",
"Not a playlist.": "非播放列表。", "Not a playlist.": "非播放列表。",

@ -120,18 +120,12 @@
"Subscription manager": "訂閱管理員", "Subscription manager": "訂閱管理員",
"Token manager": "Token 管理員", "Token manager": "Token 管理員",
"Token": "Token", "Token": "Token",
"`x` tokens": { "tokens_count_0": "{{count}} 個存取金鑰",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` token",
"": "`x` 個存取金鑰"
},
"Import/export": "匯入/匯出", "Import/export": "匯入/匯出",
"unsubscribe": "取消訂閱", "unsubscribe": "取消訂閱",
"revoke": "撤銷", "revoke": "撤銷",
"Subscriptions": "訂閱", "Subscriptions": "訂閱",
"`x` unseen notifications": { "subscriptions_unseen_notifs_count_0": "{{count}} 個未讀的通知",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 個未讀的通知",
"": "`x` 個未讀的通知"
},
"search": "搜尋", "search": "搜尋",
"Log out": "登出", "Log out": "登出",
"Released under the AGPLv3 on Github.": "在 GitHub 上以 AGPLv3 釋出。", "Released under the AGPLv3 on Github.": "在 GitHub 上以 AGPLv3 釋出。",
@ -198,16 +192,10 @@
"This channel does not exist.": "此頻道不存在。", "This channel does not exist.": "此頻道不存在。",
"Could not get channel info.": "無法取得頻道資訊。", "Could not get channel info.": "無法取得頻道資訊。",
"Could not fetch comments": "無法擷取留言", "Could not fetch comments": "無法擷取留言",
"View `x` replies": { "comments_view_x_replies_0": "檢視 {{count}} 則回覆",
"([^.,0-9]|^)1([^.,0-9]|$)": "檢視 `x` 則回覆",
"": "檢視 `x` 則回覆"
},
"`x` ago": "`x` 以前", "`x` ago": "`x` 以前",
"Load more": "載入更多", "Load more": "載入更多",
"`x` points": { "comments_points_count_0": "{{count}} 點",
"([^.,0-9]|^)1([^.,0-9]|$)": "`x` 點",
"": "`x` 點"
},
"Could not create mix.": "無法建立混合。", "Could not create mix.": "無法建立混合。",
"Empty playlist": "空的播放清單", "Empty playlist": "空的播放清單",
"Not a playlist.": "不是播放清單。", "Not a playlist.": "不是播放清單。",

@ -303,13 +303,19 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
root = comments["comments"].as_a root = comments["comments"].as_a
root.each do |child| root.each do |child|
if child["replies"]? if child["replies"]?
replies_count_text = translate_count(locale,
"comments_view_x_replies",
child["replies"]["replyCount"].as_s.to_i? || 0,
NumberFormatting::Separator
)
replies_html = <<-END_HTML replies_html = <<-END_HTML
<div id="replies" class="pure-g"> <div id="replies" class="pure-g">
<div class="pure-u-1-24"></div> <div class="pure-u-1-24"></div>
<div class="pure-u-23-24"> <div class="pure-u-23-24">
<p> <p>
<a href="javascript:void(0)" data-continuation="#{child["replies"]["continuation"]}" <a href="javascript:void(0)" data-continuation="#{child["replies"]["continuation"]}"
data-onclick="get_youtube_replies" data-load-replies>#{translate(locale, "View `x` replies", number_with_separator(child["replies"]["replyCount"]))}</a> data-onclick="get_youtube_replies" data-load-replies>#{replies_count_text}</a>
</p> </p>
</div> </div>
</div> </div>
@ -471,7 +477,7 @@ def template_reddit_comments(root, locale)
<p> <p>
<a href="javascript:void(0)" data-onclick="toggle_parent">[ - ]</a> <a href="javascript:void(0)" data-onclick="toggle_parent">[ - ]</a>
<b><a href="https://www.reddit.com/user/#{child.author}">#{child.author}</a></b> <b><a href="https://www.reddit.com/user/#{child.author}">#{child.author}</a></b>
#{translate(locale, "`x` points", number_with_separator(child.score))} #{translate_count(locale, "comments_points_count", child.score, NumberFormatting::Separator)}
<span title="#{child.created_utc.to_s(translate(locale, "%a %B %-d %T %Y UTC"))}">#{translate(locale, "`x` ago", recode_date(child.created_utc, locale))}</span> <span title="#{child.created_utc.to_s(translate(locale, "%a %B %-d %T %Y UTC"))}">#{translate(locale, "`x` ago", recode_date(child.created_utc, locale))}</span>
<a href="https://www.reddit.com#{child.permalink}" title="#{translate(locale, "permalink")}">#{translate(locale, "permalink")}</a> <a href="https://www.reddit.com#{child.permalink}" title="#{translate(locale, "permalink")}">#{translate(locale, "permalink")}</a>
</p> </p>

@ -24,7 +24,7 @@
</div> </div>
<center> <center>
<%= translate(locale, "`x` unseen notifications", "#{notifications.size}") %> <%= translate_count(locale, "subscriptions_unseen_notifs_count", notifications.size) %>
</center> </center>
<% if !notifications.empty? %> <% if !notifications.empty? %>

@ -5,7 +5,7 @@
<div class="pure-g h-box"> <div class="pure-g h-box">
<div class="pure-u-1-3"> <div class="pure-u-1-3">
<h3> <h3>
<%= translate(locale, "`x` tokens", %(<span id="count">#{tokens.size}</span>)) %> <%= translate_count(locale, "tokens_count", tokens.size, NumberFormatting::HtmlSpan) %>
</h3> </h3>
</div> </div>
<div class="pure-u-1-3"></div> <div class="pure-u-1-3"></div>

Loading…
Cancel
Save