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.

Revert "Fix heatmap localization"

It conflicts with unmerged translations.

This reverts commit 708f4bc3b6bb40dd2b18ff7c009e2f9cfe7c4780.

+33 -57
+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 - contributions_zero = بلا مساهمات 1538 + no_contributions = بلا مساهمات 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 - contributions_zero = Няма приноси 1360 + no_contributions = Няма приноси 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 - contributions_zero=Žádné příspěvky 169 + no_contributions=Žá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 - contributions_zero=Keine Beiträge 167 + no_contributions=Keine Beiträge 168 168 less=Weniger 169 169 more=Mehr 170 170
+1 -1
options/locale/locale_el-GR.ini
··· 159 159 160 160 [heatmap] 161 161 number_of_contributions_in_the_last_12_months=%s συνεισφορές τους τελευταίους 12 μήνες 162 - contributions_zero=Χωρίς συνεισφορές 162 + no_contributions=Χωρίς συνεισφορές 163 163 less=Λιγότερα 164 164 more=Περισσότερα 165 165
+1 -4
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 - contributions_zero = No contributions 168 - contributions_format = {contributions} on {month} {day}, {year} 169 - contributions_one = contribution 170 - contributions_few = contributions 167 + no_contributions = No contributions 171 168 less = Less 172 169 more = More 173 170
+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 - contributions_zero = Neniu kontribuo 177 + no_contributions = 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 - contributions_zero=No hay contribuciones 153 + no_contributions=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 - contributions_zero=Aucune contribution 168 + no_contributions=Aucune contribution 169 169 less=Moins 170 170 more=Plus 171 171 ··· 3733 3733 component_failed_to_load = Une erreur inattendue s'est produite. 3734 3734 contributors.what = contributions 3735 3735 component_loading = Chargement %s... 3736 - component_loading_failed = Échec de chargement de %s 3736 + component_loading_failed = Échec de chargement de %s
+2 -2
options/locale/locale_gl.ini
··· 131 131 footer.links = Ligazóns 132 132 133 133 [heatmap] 134 - contributions_zero = Sen Achegas 134 + no_contributions = 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
··· 152 152 153 153 [heatmap] 154 154 more = Più 155 - contributions_zero = Nessun contributo 155 + no_contributions = Nessun contributo 156 156 less = Meno 157 157 number_of_contributions_in_the_last_12_months = %s contributi negli ultimi 12 mesi 158 158
+1 -1
options/locale/locale_ja-JP.ini
··· 163 163 164 164 [heatmap] 165 165 number_of_contributions_in_the_last_12_months=過去 12 か月間で %s 件の実績 166 - contributions_zero=実績なし 166 + no_contributions=実績なし 167 167 less=少 168 168 more=多 169 169
+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 - contributions_zero=Nav aktivitātes 153 + no_contributions=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 - contributions_zero = Geen contributies 167 + no_contributions = Geen contributies 168 168 less = Minder 169 169 more = Meer 170 170
+2 -2
options/locale/locale_pt-BR.ini
··· 151 151 152 152 [heatmap] 153 153 number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses 154 - contributions_zero=Sem contribuições 154 + no_contributions=Sem contribuições 155 155 less=Menos 156 156 more=Mais 157 157 ··· 3579 3579 component_loading = Carregando %s... 3580 3580 component_loading_failed = Não foi possível carregar o(a) %s 3581 3581 component_loading_info = Pode demorar um pouco… 3582 - contributors.what = contribuições 3582 + 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 - contributions_zero=Nenhuma contribuição 154 + no_contributions=Nenhuma contribuição 155 155 less=Menos 156 156 more=Mais 157 157
+1 -4
options/locale/locale_ru-RU.ini
··· 164 164 165 165 [heatmap] 166 166 number_of_contributions_in_the_last_12_months=Принимал(а) участие %s раз за последние 12 месяцев 167 - contributions_zero=Действий не было 168 - contributions_format = {contributions} {day} {month} {year} 169 - contributions_one=действие 170 - contributions_few=действий 167 + no_contributions=Не принимал(а) участия 171 168 less=Меньше 172 169 more=Больше 173 170
+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 - contributions_zero=Žiadne príspevky 152 + no_contributions=Ž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 - contributions_zero = Ni prispevkov 380 + no_contributions = 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 - contributions_zero=Katkı yapılmamış 153 + no_contributions=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 - contributions_zero=目前还没有贡献。 167 + no_contributions=目前还没有贡献。 168 168 less=更少的 169 169 more=更多的 170 170
+1 -1
options/locale/locale_zh-TW.ini
··· 134 134 135 135 [heatmap] 136 136 number_of_contributions_in_the_last_12_months=過去十二個月內有 %s 個貢獻 137 - contributions_zero=沒有貢獻 137 + no_contributions=沒有貢獻 138 138 less=少 139 139 more=多 140 140
+1 -4
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-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"}}" 5 + data-locale-no-contributions="{{ctx.Locale.Tr "heatmap.no_contributions"}}" 9 6 data-locale-more="{{ctx.Locale.Tr "heatmap.more"}}" 10 7 data-locale-less="{{ctx.Locale.Tr "heatmap.less"}}" 11 8 ></div>
+2 -16
web_src/js/components/ActivityHeatmap.vue
··· 59 59 </div> 60 60 <calendar-heatmap 61 61 :locale="locale" 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 - " 62 + :no-data-text="locale.no_contributions" 63 + :tooltip-unit="locale.contributions" 78 64 :end-date="endDate" 79 65 :values="values" 80 66 :range-color="colorRange"
+3 -4
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 21 22 const locale = { 22 23 months: new Array(12).fill().map((_, idx) => translateMonth(idx)), 23 24 days: new Array(7).fill().map((_, idx) => translateDay(idx)), 25 + contributions: 'contributions', 24 26 contributions_in_the_last_12_months: el.getAttribute('data-locale-total-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'), 27 + no_contributions: el.getAttribute('data-locale-no-contributions'), 29 28 more: el.getAttribute('data-locale-more'), 30 29 less: el.getAttribute('data-locale-less'), 31 30 };