loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'Plurals and translations for heatmap (take 2)' (#2702) from earl-warren/forgejo:wip-heatmap-i18n into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2702

+57 -33
+1 -1
options/locale/locale_ar.ini
··· 1535 1535 [heatmap] 1536 1536 less = أقل 1537 1537 number_of_contributions_in_the_last_12_months = %s مساهم في آخر 12 شهر 1538 - no_contributions = بلا مساهمات 1538 + contributions_zero = بلا مساهمات 1539 1539 more = أكثر 1540 1540 1541 1541 [admin]
+2 -2
options/locale/locale_bg.ini
··· 1357 1357 [heatmap] 1358 1358 less = По-малко 1359 1359 number_of_contributions_in_the_last_12_months = %s приноса през последните 12 месеца 1360 - no_contributions = Няма приноси 1360 + contributions_zero = Няма приноси 1361 1361 more = Повече 1362 1362 1363 1363 [git.filemode] ··· 1382 1382 component_loading = Зареждане на %s... 1383 1383 1384 1384 [projects] 1385 - type-1.display_name = Индивидуален проект 1385 + type-1.display_name = Индивидуален проект
+1 -1
options/locale/locale_cs-CZ.ini
··· 166 166 167 167 [heatmap] 168 168 number_of_contributions_in_the_last_12_months=%s příspěvků za posledních 12 měsíců 169 - no_contributions=Žádné příspěvky 169 + contributions_zero=Žádné příspěvky 170 170 less=Méně 171 171 more=Více 172 172
+1 -1
options/locale/locale_de-DE.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months=%s Beiträge in den letzten 12 Monaten 167 - no_contributions=Keine Beiträge 167 + contributions_zero=Keine Beiträge 168 168 less=Weniger 169 169 more=Mehr 170 170
+1 -1
options/locale/locale_el-GR.ini
··· 163 163 164 164 [heatmap] 165 165 number_of_contributions_in_the_last_12_months=%s συνεισφορές τους τελευταίους 12 μήνες 166 - no_contributions=Χωρίς συνεισφορές 166 + contributions_zero=Χωρίς συνεισφορές 167 167 less=Λιγότερα 168 168 more=Περισσότερα 169 169
+4 -1
options/locale/locale_en-US.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months = %s contributions in the last 12 months 167 - no_contributions = No contributions 167 + contributions_zero = No contributions 168 + contributions_format = {contributions} on {month} {day}, {year} 169 + contributions_one = contribution 170 + contributions_few = contributions 168 171 less = Less 169 172 more = More 170 173
+1 -1
options/locale/locale_eo.ini
··· 174 174 [heatmap] 175 175 less = Malpli 176 176 number_of_contributions_in_the_last_12_months = %s kontribuoj dum la pasintaj 12 monatoj 177 - no_contributions = Neniu kontribuo 177 + contributions_zero = Neniu kontribuo 178 178 more = Pli 179 179 180 180 [startpage]
+1 -1
options/locale/locale_es-ES.ini
··· 150 150 151 151 [heatmap] 152 152 number_of_contributions_in_the_last_12_months=%s contribuciones en los últimos 12 meses 153 - no_contributions=No hay contribuciones 153 + contributions_zero=No hay contribuciones 154 154 less=Menos 155 155 more=Más 156 156
+2 -2
options/locale/locale_fr-FR.ini
··· 165 165 166 166 [heatmap] 167 167 number_of_contributions_in_the_last_12_months=%s contributions au cours des 12 derniers mois 168 - no_contributions=Aucune contribution 168 + contributions_zero=Aucune contribution 169 169 less=Moins 170 170 more=Plus 171 171 ··· 3743 3743 component_loading = Chargement %s... 3744 3744 component_loading_failed = Échec de chargement de %s 3745 3745 code_frequency.what = fŕequence de code 3746 - recent_commits.what = commits récents 3746 + recent_commits.what = commits récents
+2 -2
options/locale/locale_gl.ini
··· 131 131 footer.links = Ligazóns 132 132 133 133 [heatmap] 134 - no_contributions = Sen Achegas 134 + contributions_zero = Sen Achegas 135 135 less = Menos 136 136 more = Máis 137 137 number_of_contributions_in_the_last_12_months = %s de contribucións nos últimos 12 meses ··· 140 140 buttons.heading.tooltip = Engadir Título 141 141 buttons.italic.tooltip = Engade texto en cursiva 142 142 buttons.quote.tooltip = Texto de cita 143 - buttons.bold.tooltip = Engadir texto en negriña 143 + buttons.bold.tooltip = Engadir texto en negriña
+1 -1
options/locale/locale_it-IT.ini
··· 164 164 165 165 [heatmap] 166 166 more = Più 167 - no_contributions = Nessun contributo 167 + contributions_zero = Nessun contributo 168 168 less = Meno 169 169 number_of_contributions_in_the_last_12_months = %s contributi negli ultimi 12 mesi 170 170
+1 -1
options/locale/locale_ja-JP.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months=過去 12 か月間で %s 件の貢献 167 - no_contributions=貢献なし 167 + contributions_zero=貢献なし 168 168 less=少 169 169 more=多 170 170
+1 -1
options/locale/locale_lv-LV.ini
··· 150 150 151 151 [heatmap] 152 152 number_of_contributions_in_the_last_12_months=%s darbības pēdējo 12 mēnešu laikā 153 - no_contributions=Nav aktivitātes 153 + contributions_zero=Nav aktivitātes 154 154 less=Mazāk 155 155 more=Vairāk 156 156
+1 -1
options/locale/locale_nl-NL.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months = %s contributies in de laatste 12 maanden 167 - no_contributions = Geen contributies 167 + contributions_zero = Geen contributies 168 168 less = Minder 169 169 more = Meer 170 170
+2 -2
options/locale/locale_pt-BR.ini
··· 157 157 158 158 [heatmap] 159 159 number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses 160 - no_contributions=Sem contribuições 160 + contributions_zero=Sem contribuições 161 161 less=Menos 162 162 more=Mais 163 163 ··· 3585 3585 component_loading = Carregando %s... 3586 3586 component_loading_failed = Não foi possível carregar o(a) %s 3587 3587 component_loading_info = Pode demorar um pouco… 3588 - contributors.what = contribuições 3588 + contributors.what = contribuições
+1 -1
options/locale/locale_pt-PT.ini
··· 151 151 152 152 [heatmap] 153 153 number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses 154 - no_contributions=Nenhuma contribuição 154 + contributions_zero=Nenhuma contribuição 155 155 less=Menos 156 156 more=Mais 157 157
+4 -1
options/locale/locale_ru-RU.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months=Принимал(а) участие %s раз за последние 12 месяцев 167 - no_contributions=Не принимал(а) участия 167 + contributions_zero=Действий не было 168 + contributions_format = {contributions} {day} {month} {year} 169 + contributions_one=действие 170 + contributions_few=действий 168 171 less=Меньше 169 172 more=Больше 170 173
+1 -1
options/locale/locale_sk-SK.ini
··· 149 149 150 150 [heatmap] 151 151 number_of_contributions_in_the_last_12_months=%s príspevkov za posledných 12 mesiacov 152 - no_contributions=Žiadne príspevky 152 + contributions_zero=Žiadne príspevky 153 153 less=Menej 154 154 more=Viac 155 155
+2 -2
options/locale/locale_sl.ini
··· 377 377 [heatmap] 378 378 less = Manj 379 379 number_of_contributions_in_the_last_12_months = %s prispevkov v zadnjih 12 mesecih 380 - no_contributions = Ni prispevkov 380 + contributions_zero = Ni prispevkov 381 381 more = Več 382 382 383 383 [filter] ··· 691 691 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. 692 692 693 693 [actions] 694 - runners.runner_manage_panel = Upravljanje tekačev 694 + runners.runner_manage_panel = Upravljanje tekačev
+1 -1
options/locale/locale_tr-TR.ini
··· 150 150 151 151 [heatmap] 152 152 number_of_contributions_in_the_last_12_months=son 12 ayda %s katkı 153 - no_contributions=Katkı yapılmamış 153 + contributions_zero=Katkı yapılmamış 154 154 less=Daha az 155 155 more=Daha Fazla 156 156
+1 -1
options/locale/locale_zh-CN.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months=一年内 %s 次贡献 167 - no_contributions=目前还没有贡献。 167 + contributions_zero=目前还没有贡献。 168 168 less=更少的 169 169 more=更多的 170 170
+1 -1
options/locale/locale_zh-TW.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months=過去十二個月內有 %s 個貢獻 167 - no_contributions=沒有貢獻 167 + contributions_zero=沒有貢獻 168 168 less=少 169 169 more=多 170 170
+4 -1
templates/user/heatmap.tmpl
··· 2 2 <div id="user-heatmap" class="is-loading" 3 3 data-heatmap-data="{{JsonUtils.EncodeToString .HeatmapData}}" 4 4 data-locale-total-contributions="{{ctx.Locale.Tr "heatmap.number_of_contributions_in_the_last_12_months" (ctx.Locale.PrettyNumber .HeatmapTotalContributions)}}" 5 - data-locale-no-contributions="{{ctx.Locale.Tr "heatmap.no_contributions"}}" 5 + data-locale-contributions-zero="{{ctx.Locale.Tr "heatmap.contributions_zero"}}" 6 + data-locale-contributions-format="{{ctx.Locale.Tr "heatmap.contributions_format"}}" 7 + data-locale-contributions-one="{{ctx.Locale.Tr "heatmap.contributions_one"}}" 8 + data-locale-contributions-few="{{ctx.Locale.Tr "heatmap.contributions_few"}}" 6 9 data-locale-more="{{ctx.Locale.Tr "heatmap.more"}}" 7 10 data-locale-less="{{ctx.Locale.Tr "heatmap.less"}}" 8 11 ></div>
+16 -2
web_src/js/components/ActivityHeatmap.vue
··· 59 59 </div> 60 60 <calendar-heatmap 61 61 :locale="locale" 62 - :no-data-text="locale.no_contributions" 63 - :tooltip-unit="locale.contributions" 62 + :no-data-text="locale.contributions_zero" 63 + :tooltip-formatter=" 64 + (v) => 65 + locale.contributions_format 66 + .replace( 67 + '{contributions}', 68 + `<b>${v.count} ${ 69 + v.count === 1 70 + ? locale.contributions_one 71 + : locale.contributions_few 72 + }</b>` 73 + ) 74 + .replace('{month}', locale.months[v.date.getMonth()]) 75 + .replace('{day}', v.date.getDate()) 76 + .replace('{year}', v.date.getFullYear()) 77 + " 64 78 :end-date="endDate" 65 79 :values="values" 66 80 :range-color="colorRange"
+4 -3
web_src/js/features/heatmap.js
··· 18 18 return {date: new Date(v), count: heatmap[v]}; 19 19 }); 20 20 21 - // last heatmap tooltip localization attempt https://github.com/go-gitea/gitea/pull/24131/commits/a83761cbbae3c2e3b4bced71e680f44432073ac8 22 21 const locale = { 23 22 months: new Array(12).fill().map((_, idx) => translateMonth(idx)), 24 23 days: new Array(7).fill().map((_, idx) => translateDay(idx)), 25 - contributions: 'contributions', 26 24 contributions_in_the_last_12_months: el.getAttribute('data-locale-total-contributions'), 27 - no_contributions: el.getAttribute('data-locale-no-contributions'), 25 + contributions_zero: el.getAttribute('data-locale-contributions-zero'), 26 + contributions_format: el.getAttribute('data-locale-contributions-format'), 27 + contributions_one: el.getAttribute('data-locale-contributions-one'), 28 + contributions_few: el.getAttribute('data-locale-contributions-few'), 28 29 more: el.getAttribute('data-locale-more'), 29 30 less: el.getAttribute('data-locale-less'), 30 31 };