summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author0ko <0ko@noreply.codeberg.org>2024-03-19 10:37:03 +0100
committerEarl Warren <contact@earl-warren.org>2024-03-20 08:20:08 +0100
commit26e4af4268080d940674a05d0da272a0783315dd (patch)
treea514ec14295ed54fe5b42000262c89eeea93bc11 /templates
parent[I18N] Translations update from Weblate (#2645) (diff)
downloadforgejo-26e4af4268080d940674a05d0da272a0783315dd.tar.xz
forgejo-26e4af4268080d940674a05d0da272a0783315dd.zip
Fix heatmap localization
Fixes #2552 (cherry picked from commit 708f4bc3b6bb40dd2b18ff7c009e2f9cfe7c4780)
Diffstat (limited to 'templates')
-rw-r--r--templates/user/heatmap.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/user/heatmap.tmpl b/templates/user/heatmap.tmpl
index b604b929a3..05403e34e3 100644
--- a/templates/user/heatmap.tmpl
+++ b/templates/user/heatmap.tmpl
@@ -2,7 +2,10 @@
<div id="user-heatmap" class="is-loading"
data-heatmap-data="{{JsonUtils.EncodeToString .HeatmapData}}"
data-locale-total-contributions="{{ctx.Locale.Tr "heatmap.number_of_contributions_in_the_last_12_months" (ctx.Locale.PrettyNumber .HeatmapTotalContributions)}}"
- data-locale-no-contributions="{{ctx.Locale.Tr "heatmap.no_contributions"}}"
+ data-locale-contributions-zero="{{ctx.Locale.Tr "heatmap.contributions_zero"}}"
+ data-locale-contributions-format="{{ctx.Locale.Tr "heatmap.contributions_format"}}"
+ data-locale-contributions-one="{{ctx.Locale.Tr "heatmap.contributions_one"}}"
+ data-locale-contributions-few="{{ctx.Locale.Tr "heatmap.contributions_few"}}"
data-locale-more="{{ctx.Locale.Tr "heatmap.more"}}"
data-locale-less="{{ctx.Locale.Tr "heatmap.less"}}"
></div>