From 26e4af4268080d940674a05d0da272a0783315dd Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Tue, 19 Mar 2024 14:37:03 +0500 Subject: [PATCH] Fix heatmap localization Fixes #2552 (cherry picked from commit 708f4bc3b6bb40dd2b18ff7c009e2f9cfe7c4780) --- options/locale/locale_ar.ini | 2 +- options/locale/locale_bg.ini | 4 ++-- options/locale/locale_cs-CZ.ini | 2 +- options/locale/locale_de-DE.ini | 2 +- options/locale/locale_el-GR.ini | 2 +- options/locale/locale_en-US.ini | 5 ++++- options/locale/locale_eo.ini | 2 +- options/locale/locale_es-ES.ini | 2 +- options/locale/locale_fr-FR.ini | 4 ++-- options/locale/locale_gl.ini | 4 ++-- options/locale/locale_it-IT.ini | 2 +- options/locale/locale_ja-JP.ini | 2 +- options/locale/locale_lv-LV.ini | 2 +- options/locale/locale_nl-NL.ini | 2 +- options/locale/locale_pt-BR.ini | 4 ++-- options/locale/locale_pt-PT.ini | 2 +- options/locale/locale_ru-RU.ini | 5 ++++- options/locale/locale_sk-SK.ini | 2 +- options/locale/locale_sl.ini | 4 ++-- options/locale/locale_tr-TR.ini | 2 +- options/locale/locale_zh-CN.ini | 2 +- options/locale/locale_zh-TW.ini | 2 +- templates/user/heatmap.tmpl | 5 ++++- web_src/js/components/ActivityHeatmap.vue | 18 ++++++++++++++++-- web_src/js/features/heatmap.js | 7 ++++--- 25 files changed, 57 insertions(+), 33 deletions(-) diff --git a/options/locale/locale_ar.ini b/options/locale/locale_ar.ini index 586ffa845..0e27147e1 100644 --- a/options/locale/locale_ar.ini +++ b/options/locale/locale_ar.ini @@ -1535,7 +1535,7 @@ filter.container.tagged = موسوم [heatmap] less = أقل number_of_contributions_in_the_last_12_months = %s مساهم في آخر 12 شهر -no_contributions = بلا مساهمات +contributions_zero = بلا مساهمات more = أكثر [admin] diff --git a/options/locale/locale_bg.ini b/options/locale/locale_bg.ini index 55c4440a4..b6ad948b4 100644 --- a/options/locale/locale_bg.ini +++ b/options/locale/locale_bg.ini @@ -1357,7 +1357,7 @@ runners.description = Описание [heatmap] less = По-малко number_of_contributions_in_the_last_12_months = %s приноса през последните 12 месеца -no_contributions = Няма приноси +contributions_zero = Няма приноси more = Повече [git.filemode] @@ -1382,4 +1382,4 @@ recent_commits.what = скорошни подавания component_loading = Зареждане на %s... [projects] -type-1.display_name = Индивидуален проект \ No newline at end of file +type-1.display_name = Индивидуален проект diff --git a/options/locale/locale_cs-CZ.ini b/options/locale/locale_cs-CZ.ini index fae6eee56..693b2036b 100644 --- a/options/locale/locale_cs-CZ.ini +++ b/options/locale/locale_cs-CZ.ini @@ -166,7 +166,7 @@ footer.links=Odkazy [heatmap] number_of_contributions_in_the_last_12_months=%s příspěvků za posledních 12 měsíců -no_contributions=Žádné příspěvky +contributions_zero=Žádné příspěvky less=Méně more=Více diff --git a/options/locale/locale_de-DE.ini b/options/locale/locale_de-DE.ini index 8511ae068..1d93d05dd 100644 --- a/options/locale/locale_de-DE.ini +++ b/options/locale/locale_de-DE.ini @@ -164,7 +164,7 @@ footer.links=Links [heatmap] number_of_contributions_in_the_last_12_months=%s Beiträge in den letzten 12 Monaten -no_contributions=Keine Beiträge +contributions_zero=Keine Beiträge less=Weniger more=Mehr diff --git a/options/locale/locale_el-GR.ini b/options/locale/locale_el-GR.ini index fd26ec4b3..ef9669f2b 100644 --- a/options/locale/locale_el-GR.ini +++ b/options/locale/locale_el-GR.ini @@ -163,7 +163,7 @@ footer.links=Συνδέσεις [heatmap] number_of_contributions_in_the_last_12_months=%s συνεισφορές τους τελευταίους 12 μήνες -no_contributions=Χωρίς συνεισφορές +contributions_zero=Χωρίς συνεισφορές less=Λιγότερα more=Περισσότερα diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index e8b9f9520..b6279d092 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -164,7 +164,10 @@ footer.links = Links [heatmap] number_of_contributions_in_the_last_12_months = %s contributions in the last 12 months -no_contributions = No contributions +contributions_zero = No contributions +contributions_format = {contributions} on {month} {day}, {year} +contributions_one = contribution +contributions_few = contributions less = Less more = More diff --git a/options/locale/locale_eo.ini b/options/locale/locale_eo.ini index 5f1764168..0f03a1b9b 100644 --- a/options/locale/locale_eo.ini +++ b/options/locale/locale_eo.ini @@ -174,7 +174,7 @@ server_internal = Eraris interno de servilo [heatmap] less = Malpli number_of_contributions_in_the_last_12_months = %s kontribuoj dum la pasintaj 12 monatoj -no_contributions = Neniu kontribuo +contributions_zero = Neniu kontribuo more = Pli [startpage] diff --git a/options/locale/locale_es-ES.ini b/options/locale/locale_es-ES.ini index 2d26fb536..e366dc977 100644 --- a/options/locale/locale_es-ES.ini +++ b/options/locale/locale_es-ES.ini @@ -150,7 +150,7 @@ footer.links=Enlaces [heatmap] number_of_contributions_in_the_last_12_months=%s contribuciones en los últimos 12 meses -no_contributions=No hay contribuciones +contributions_zero=No hay contribuciones less=Menos more=Más diff --git a/options/locale/locale_fr-FR.ini b/options/locale/locale_fr-FR.ini index 49b15fd94..1c3d75438 100644 --- a/options/locale/locale_fr-FR.ini +++ b/options/locale/locale_fr-FR.ini @@ -165,7 +165,7 @@ footer.links=Liens [heatmap] number_of_contributions_in_the_last_12_months=%s contributions au cours des 12 derniers mois -no_contributions=Aucune contribution +contributions_zero=Aucune contribution less=Moins more=Plus @@ -3743,4 +3743,4 @@ contributors.what = contributions component_loading = Chargement %s... component_loading_failed = Échec de chargement de %s code_frequency.what = fŕequence de code -recent_commits.what = commits récents \ No newline at end of file +recent_commits.what = commits récents diff --git a/options/locale/locale_gl.ini b/options/locale/locale_gl.ini index 3ccdfc2bb..7c77357e3 100644 --- a/options/locale/locale_gl.ini +++ b/options/locale/locale_gl.ini @@ -131,7 +131,7 @@ footer.software = Sobre o Software footer.links = Ligazóns [heatmap] -no_contributions = Sen Achegas +contributions_zero = Sen Achegas less = Menos more = Máis number_of_contributions_in_the_last_12_months = %s de contribucións nos últimos 12 meses @@ -140,4 +140,4 @@ number_of_contributions_in_the_last_12_months = %s de contribucións nos último buttons.heading.tooltip = Engadir Título buttons.italic.tooltip = Engade texto en cursiva buttons.quote.tooltip = Texto de cita -buttons.bold.tooltip = Engadir texto en negriña \ No newline at end of file +buttons.bold.tooltip = Engadir texto en negriña diff --git a/options/locale/locale_it-IT.ini b/options/locale/locale_it-IT.ini index ab5f6b8ac..c7f9b5ea4 100644 --- a/options/locale/locale_it-IT.ini +++ b/options/locale/locale_it-IT.ini @@ -164,7 +164,7 @@ footer.software = A proposito del Software [heatmap] more = Più -no_contributions = Nessun contributo +contributions_zero = Nessun contributo less = Meno number_of_contributions_in_the_last_12_months = %s contributi negli ultimi 12 mesi diff --git a/options/locale/locale_ja-JP.ini b/options/locale/locale_ja-JP.ini index 6258e3da5..bb8db6e37 100644 --- a/options/locale/locale_ja-JP.ini +++ b/options/locale/locale_ja-JP.ini @@ -164,7 +164,7 @@ footer.links=リンク [heatmap] number_of_contributions_in_the_last_12_months=過去 12 か月間で %s 件の貢献 -no_contributions=貢献なし +contributions_zero=貢献なし less=少 more=多 diff --git a/options/locale/locale_lv-LV.ini b/options/locale/locale_lv-LV.ini index 31a738864..7fa8c21c2 100644 --- a/options/locale/locale_lv-LV.ini +++ b/options/locale/locale_lv-LV.ini @@ -150,7 +150,7 @@ footer.links=Saites [heatmap] number_of_contributions_in_the_last_12_months=%s darbības pēdējo 12 mēnešu laikā -no_contributions=Nav aktivitātes +contributions_zero=Nav aktivitātes less=Mazāk more=Vairāk diff --git a/options/locale/locale_nl-NL.ini b/options/locale/locale_nl-NL.ini index 9bb839bb0..53674a1c5 100644 --- a/options/locale/locale_nl-NL.ini +++ b/options/locale/locale_nl-NL.ini @@ -164,7 +164,7 @@ footer.links = Verwijzingen [heatmap] number_of_contributions_in_the_last_12_months = %s contributies in de laatste 12 maanden -no_contributions = Geen contributies +contributions_zero = Geen contributies less = Minder more = Meer diff --git a/options/locale/locale_pt-BR.ini b/options/locale/locale_pt-BR.ini index 60ca7f9f5..d64117a0b 100644 --- a/options/locale/locale_pt-BR.ini +++ b/options/locale/locale_pt-BR.ini @@ -157,7 +157,7 @@ footer.links=Links [heatmap] number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses -no_contributions=Sem contribuições +contributions_zero=Sem contribuições less=Menos more=Mais @@ -3585,4 +3585,4 @@ executable_file = Arquivo executável component_loading = Carregando %s... component_loading_failed = Não foi possível carregar o(a) %s component_loading_info = Pode demorar um pouco… -contributors.what = contribuições \ No newline at end of file +contributors.what = contribuições diff --git a/options/locale/locale_pt-PT.ini b/options/locale/locale_pt-PT.ini index 3a5bce2ae..202404663 100644 --- a/options/locale/locale_pt-PT.ini +++ b/options/locale/locale_pt-PT.ini @@ -151,7 +151,7 @@ footer.links=Ligações [heatmap] number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses -no_contributions=Nenhuma contribuição +contributions_zero=Nenhuma contribuição less=Menos more=Mais diff --git a/options/locale/locale_ru-RU.ini b/options/locale/locale_ru-RU.ini index 580edee65..866f32faf 100644 --- a/options/locale/locale_ru-RU.ini +++ b/options/locale/locale_ru-RU.ini @@ -164,7 +164,10 @@ footer.links=Ссылки [heatmap] number_of_contributions_in_the_last_12_months=Принимал(а) участие %s раз за последние 12 месяцев -no_contributions=Не принимал(а) участия +contributions_zero=Действий не было +contributions_format = {contributions} {day} {month} {year} +contributions_one=действие +contributions_few=действий less=Меньше more=Больше diff --git a/options/locale/locale_sk-SK.ini b/options/locale/locale_sk-SK.ini index f088cc6ac..549e3a7a1 100644 --- a/options/locale/locale_sk-SK.ini +++ b/options/locale/locale_sk-SK.ini @@ -149,7 +149,7 @@ footer.links=Odkazy [heatmap] number_of_contributions_in_the_last_12_months=%s príspevkov za posledných 12 mesiacov -no_contributions=Žiadne príspevky +contributions_zero=Žiadne príspevky less=Menej more=Viac diff --git a/options/locale/locale_sl.ini b/options/locale/locale_sl.ini index 1458672d8..01404dd0b 100644 --- a/options/locale/locale_sl.ini +++ b/options/locale/locale_sl.ini @@ -377,7 +377,7 @@ gpg_key_verified_long = Ključ je bil preverjen z žetonom in ga je mogoče upor [heatmap] less = Manj number_of_contributions_in_the_last_12_months = %s prispevkov v zadnjih 12 mesecih -no_contributions = Ni prispevkov +contributions_zero = Ni prispevkov more = Več [filter] @@ -691,4 +691,4 @@ code = Koda owner.settings.chef.keypair.description = Za preverjanje pristnosti v registru Chef je potreben par ključev. Če ste par ključev ustvarili že prej, se pri ustvarjanju novega para ključev stari par ključev zavrže. [actions] -runners.runner_manage_panel = Upravljanje tekačev \ No newline at end of file +runners.runner_manage_panel = Upravljanje tekačev diff --git a/options/locale/locale_tr-TR.ini b/options/locale/locale_tr-TR.ini index 53282219d..9e7414562 100644 --- a/options/locale/locale_tr-TR.ini +++ b/options/locale/locale_tr-TR.ini @@ -150,7 +150,7 @@ footer.links=Bağlantılar [heatmap] number_of_contributions_in_the_last_12_months=son 12 ayda %s katkı -no_contributions=Katkı yapılmamış +contributions_zero=Katkı yapılmamış less=Daha az more=Daha Fazla diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index b4e2851ee..30af45fc6 100644 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -164,7 +164,7 @@ footer.links=链接 [heatmap] number_of_contributions_in_the_last_12_months=一年内 %s 次贡献 -no_contributions=目前还没有贡献。 +contributions_zero=目前还没有贡献。 less=更少的 more=更多的 diff --git a/options/locale/locale_zh-TW.ini b/options/locale/locale_zh-TW.ini index 80b28ac87..b37fd12ea 100644 --- a/options/locale/locale_zh-TW.ini +++ b/options/locale/locale_zh-TW.ini @@ -164,7 +164,7 @@ footer.links=連結 [heatmap] number_of_contributions_in_the_last_12_months=過去十二個月內有 %s 個貢獻 -no_contributions=沒有貢獻 +contributions_zero=沒有貢獻 less=少 more=多 diff --git a/templates/user/heatmap.tmpl b/templates/user/heatmap.tmpl index b604b929a..05403e34e 100644 --- a/templates/user/heatmap.tmpl +++ b/templates/user/heatmap.tmpl @@ -2,7 +2,10 @@
diff --git a/web_src/js/components/ActivityHeatmap.vue b/web_src/js/components/ActivityHeatmap.vue index 96a6e6801..cc03f1bb2 100644 --- a/web_src/js/components/ActivityHeatmap.vue +++ b/web_src/js/components/ActivityHeatmap.vue @@ -59,8 +59,22 @@ export default {