Revert "Fix heatmap localization"
It conflicts with unmerged translations.
This reverts commit 708f4bc3b6
.
This commit is contained in:
parent
4c40a261d5
commit
ba75514887
25 changed files with 33 additions and 57 deletions
|
@ -1535,7 +1535,7 @@ filter.container.tagged = موسوم
|
||||||
[heatmap]
|
[heatmap]
|
||||||
less = أقل
|
less = أقل
|
||||||
number_of_contributions_in_the_last_12_months = %s مساهم في آخر 12 شهر
|
number_of_contributions_in_the_last_12_months = %s مساهم في آخر 12 شهر
|
||||||
contributions_zero = بلا مساهمات
|
no_contributions = بلا مساهمات
|
||||||
more = أكثر
|
more = أكثر
|
||||||
|
|
||||||
[admin]
|
[admin]
|
||||||
|
|
|
@ -1357,7 +1357,7 @@ runners.description = Описание
|
||||||
[heatmap]
|
[heatmap]
|
||||||
less = По-малко
|
less = По-малко
|
||||||
number_of_contributions_in_the_last_12_months = %s приноса през последните 12 месеца
|
number_of_contributions_in_the_last_12_months = %s приноса през последните 12 месеца
|
||||||
contributions_zero = Няма приноси
|
no_contributions = Няма приноси
|
||||||
more = Повече
|
more = Повече
|
||||||
|
|
||||||
[git.filemode]
|
[git.filemode]
|
||||||
|
@ -1382,4 +1382,4 @@ recent_commits.what = скорошни подавания
|
||||||
component_loading = Зареждане на %s...
|
component_loading = Зареждане на %s...
|
||||||
|
|
||||||
[projects]
|
[projects]
|
||||||
type-1.display_name = Индивидуален проект
|
type-1.display_name = Индивидуален проект
|
|
@ -166,7 +166,7 @@ footer.links=Odkazy
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s příspěvků za posledních 12 měsíců
|
number_of_contributions_in_the_last_12_months=%s příspěvků za posledních 12 měsíců
|
||||||
contributions_zero=Žádné příspěvky
|
no_contributions=Žádné příspěvky
|
||||||
less=Méně
|
less=Méně
|
||||||
more=Více
|
more=Více
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ footer.links=Links
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s Beiträge in den letzten 12 Monaten
|
number_of_contributions_in_the_last_12_months=%s Beiträge in den letzten 12 Monaten
|
||||||
contributions_zero=Keine Beiträge
|
no_contributions=Keine Beiträge
|
||||||
less=Weniger
|
less=Weniger
|
||||||
more=Mehr
|
more=Mehr
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ footer.links=Συνδέσεις
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s συνεισφορές τους τελευταίους 12 μήνες
|
number_of_contributions_in_the_last_12_months=%s συνεισφορές τους τελευταίους 12 μήνες
|
||||||
contributions_zero=Χωρίς συνεισφορές
|
no_contributions=Χωρίς συνεισφορές
|
||||||
less=Λιγότερα
|
less=Λιγότερα
|
||||||
more=Περισσότερα
|
more=Περισσότερα
|
||||||
|
|
||||||
|
|
|
@ -164,10 +164,7 @@ footer.links = Links
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months = %s contributions in the last 12 months
|
number_of_contributions_in_the_last_12_months = %s contributions in the last 12 months
|
||||||
contributions_zero = No contributions
|
no_contributions = No contributions
|
||||||
contributions_format = {contributions} on {month} {day}, {year}
|
|
||||||
contributions_one = contribution
|
|
||||||
contributions_few = contributions
|
|
||||||
less = Less
|
less = Less
|
||||||
more = More
|
more = More
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ server_internal = Eraris interno de servilo
|
||||||
[heatmap]
|
[heatmap]
|
||||||
less = Malpli
|
less = Malpli
|
||||||
number_of_contributions_in_the_last_12_months = %s kontribuoj dum la pasintaj 12 monatoj
|
number_of_contributions_in_the_last_12_months = %s kontribuoj dum la pasintaj 12 monatoj
|
||||||
contributions_zero = Neniu kontribuo
|
no_contributions = Neniu kontribuo
|
||||||
more = Pli
|
more = Pli
|
||||||
|
|
||||||
[startpage]
|
[startpage]
|
||||||
|
|
|
@ -150,7 +150,7 @@ footer.links=Enlaces
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s contribuciones en los últimos 12 meses
|
number_of_contributions_in_the_last_12_months=%s contribuciones en los últimos 12 meses
|
||||||
contributions_zero=No hay contribuciones
|
no_contributions=No hay contribuciones
|
||||||
less=Menos
|
less=Menos
|
||||||
more=Más
|
more=Más
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ footer.links=Liens
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s contributions au cours des 12 derniers mois
|
number_of_contributions_in_the_last_12_months=%s contributions au cours des 12 derniers mois
|
||||||
contributions_zero=Aucune contribution
|
no_contributions=Aucune contribution
|
||||||
less=Moins
|
less=Moins
|
||||||
more=Plus
|
more=Plus
|
||||||
|
|
||||||
|
@ -3733,4 +3733,4 @@ component_loading_info = Cela peut prendre du temps…
|
||||||
component_failed_to_load = Une erreur inattendue s'est produite.
|
component_failed_to_load = Une erreur inattendue s'est produite.
|
||||||
contributors.what = contributions
|
contributors.what = contributions
|
||||||
component_loading = Chargement %s...
|
component_loading = Chargement %s...
|
||||||
component_loading_failed = Échec de chargement de %s
|
component_loading_failed = Échec de chargement de %s
|
|
@ -131,7 +131,7 @@ footer.software = Sobre o Software
|
||||||
footer.links = Ligazóns
|
footer.links = Ligazóns
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
contributions_zero = Sen Achegas
|
no_contributions = Sen Achegas
|
||||||
less = Menos
|
less = Menos
|
||||||
more = Máis
|
more = Máis
|
||||||
number_of_contributions_in_the_last_12_months = %s de contribucións nos últimos 12 meses
|
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.heading.tooltip = Engadir Título
|
||||||
buttons.italic.tooltip = Engade texto en cursiva
|
buttons.italic.tooltip = Engade texto en cursiva
|
||||||
buttons.quote.tooltip = Texto de cita
|
buttons.quote.tooltip = Texto de cita
|
||||||
buttons.bold.tooltip = Engadir texto en negriña
|
buttons.bold.tooltip = Engadir texto en negriña
|
|
@ -152,7 +152,7 @@ footer.software = A proposito del Software
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
more = Più
|
more = Più
|
||||||
contributions_zero = Nessun contributo
|
no_contributions = Nessun contributo
|
||||||
less = Meno
|
less = Meno
|
||||||
number_of_contributions_in_the_last_12_months = %s contributi negli ultimi 12 mesi
|
number_of_contributions_in_the_last_12_months = %s contributi negli ultimi 12 mesi
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,7 @@ footer.links=リンク
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=過去 12 か月間で %s 件の実績
|
number_of_contributions_in_the_last_12_months=過去 12 か月間で %s 件の実績
|
||||||
contributions_zero=実績なし
|
no_contributions=実績なし
|
||||||
less=少
|
less=少
|
||||||
more=多
|
more=多
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,7 @@ footer.links=Saites
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s darbības pēdējo 12 mēnešu laikā
|
number_of_contributions_in_the_last_12_months=%s darbības pēdējo 12 mēnešu laikā
|
||||||
contributions_zero=Nav aktivitātes
|
no_contributions=Nav aktivitātes
|
||||||
less=Mazāk
|
less=Mazāk
|
||||||
more=Vairāk
|
more=Vairāk
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ footer.links = Verwijzingen
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months = %s contributies in de laatste 12 maanden
|
number_of_contributions_in_the_last_12_months = %s contributies in de laatste 12 maanden
|
||||||
contributions_zero = Geen contributies
|
no_contributions = Geen contributies
|
||||||
less = Minder
|
less = Minder
|
||||||
more = Meer
|
more = Meer
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ footer.links=Links
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses
|
number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses
|
||||||
contributions_zero=Sem contribuições
|
no_contributions=Sem contribuições
|
||||||
less=Menos
|
less=Menos
|
||||||
more=Mais
|
more=Mais
|
||||||
|
|
||||||
|
@ -3579,4 +3579,4 @@ executable_file = Arquivo executável
|
||||||
component_loading = Carregando %s...
|
component_loading = Carregando %s...
|
||||||
component_loading_failed = Não foi possível carregar o(a) %s
|
component_loading_failed = Não foi possível carregar o(a) %s
|
||||||
component_loading_info = Pode demorar um pouco…
|
component_loading_info = Pode demorar um pouco…
|
||||||
contributors.what = contribuições
|
contributors.what = contribuições
|
|
@ -151,7 +151,7 @@ footer.links=Ligações
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses
|
number_of_contributions_in_the_last_12_months=%s contribuições nos últimos 12 meses
|
||||||
contributions_zero=Nenhuma contribuição
|
no_contributions=Nenhuma contribuição
|
||||||
less=Menos
|
less=Menos
|
||||||
more=Mais
|
more=Mais
|
||||||
|
|
||||||
|
|
|
@ -164,10 +164,7 @@ footer.links=Ссылки
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=Принимал(а) участие %s раз за последние 12 месяцев
|
number_of_contributions_in_the_last_12_months=Принимал(а) участие %s раз за последние 12 месяцев
|
||||||
contributions_zero=Действий не было
|
no_contributions=Не принимал(а) участия
|
||||||
contributions_format = {contributions} {day} {month} {year}
|
|
||||||
contributions_one=действие
|
|
||||||
contributions_few=действий
|
|
||||||
less=Меньше
|
less=Меньше
|
||||||
more=Больше
|
more=Больше
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ footer.links=Odkazy
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=%s príspevkov za posledných 12 mesiacov
|
number_of_contributions_in_the_last_12_months=%s príspevkov za posledných 12 mesiacov
|
||||||
contributions_zero=Žiadne príspevky
|
no_contributions=Žiadne príspevky
|
||||||
less=Menej
|
less=Menej
|
||||||
more=Viac
|
more=Viac
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,7 @@ gpg_key_verified_long = Ključ je bil preverjen z žetonom in ga je mogoče upor
|
||||||
[heatmap]
|
[heatmap]
|
||||||
less = Manj
|
less = Manj
|
||||||
number_of_contributions_in_the_last_12_months = %s prispevkov v zadnjih 12 mesecih
|
number_of_contributions_in_the_last_12_months = %s prispevkov v zadnjih 12 mesecih
|
||||||
contributions_zero = Ni prispevkov
|
no_contributions = Ni prispevkov
|
||||||
more = Več
|
more = Več
|
||||||
|
|
||||||
[filter]
|
[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.
|
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]
|
[actions]
|
||||||
runners.runner_manage_panel = Upravljanje tekačev
|
runners.runner_manage_panel = Upravljanje tekačev
|
|
@ -150,7 +150,7 @@ footer.links=Bağlantılar
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=son 12 ayda %s katkı
|
number_of_contributions_in_the_last_12_months=son 12 ayda %s katkı
|
||||||
contributions_zero=Katkı yapılmamış
|
no_contributions=Katkı yapılmamış
|
||||||
less=Daha az
|
less=Daha az
|
||||||
more=Daha Fazla
|
more=Daha Fazla
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ footer.links=链接
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=一年内 %s 次贡献
|
number_of_contributions_in_the_last_12_months=一年内 %s 次贡献
|
||||||
contributions_zero=目前还没有贡献。
|
no_contributions=目前还没有贡献。
|
||||||
less=更少的
|
less=更少的
|
||||||
more=更多的
|
more=更多的
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ footer.links=連結
|
||||||
|
|
||||||
[heatmap]
|
[heatmap]
|
||||||
number_of_contributions_in_the_last_12_months=過去十二個月內有 %s 個貢獻
|
number_of_contributions_in_the_last_12_months=過去十二個月內有 %s 個貢獻
|
||||||
contributions_zero=沒有貢獻
|
no_contributions=沒有貢獻
|
||||||
less=少
|
less=少
|
||||||
more=多
|
more=多
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
<div id="user-heatmap" class="is-loading"
|
<div id="user-heatmap" class="is-loading"
|
||||||
data-heatmap-data="{{JsonUtils.EncodeToString .HeatmapData}}"
|
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-total-contributions="{{ctx.Locale.Tr "heatmap.number_of_contributions_in_the_last_12_months" (ctx.Locale.PrettyNumber .HeatmapTotalContributions)}}"
|
||||||
data-locale-contributions-zero="{{ctx.Locale.Tr "heatmap.contributions_zero"}}"
|
data-locale-no-contributions="{{ctx.Locale.Tr "heatmap.no_contributions"}}"
|
||||||
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-more="{{ctx.Locale.Tr "heatmap.more"}}"
|
||||||
data-locale-less="{{ctx.Locale.Tr "heatmap.less"}}"
|
data-locale-less="{{ctx.Locale.Tr "heatmap.less"}}"
|
||||||
></div>
|
></div>
|
||||||
|
|
|
@ -59,22 +59,8 @@ export default {
|
||||||
</div>
|
</div>
|
||||||
<calendar-heatmap
|
<calendar-heatmap
|
||||||
:locale="locale"
|
:locale="locale"
|
||||||
:no-data-text="locale.contributions_zero"
|
:no-data-text="locale.no_contributions"
|
||||||
:tooltip-formatter="
|
:tooltip-unit="locale.contributions"
|
||||||
(v) =>
|
|
||||||
locale.contributions_format
|
|
||||||
.replace(
|
|
||||||
'{contributions}',
|
|
||||||
`<b>${v.count} ${
|
|
||||||
v.count === 1
|
|
||||||
? locale.contributions_one
|
|
||||||
: locale.contributions_few
|
|
||||||
}</b>`
|
|
||||||
)
|
|
||||||
.replace('{month}', locale.months[v.date.getMonth()])
|
|
||||||
.replace('{day}', v.date.getDate())
|
|
||||||
.replace('{year}', v.date.getFullYear())
|
|
||||||
"
|
|
||||||
:end-date="endDate"
|
:end-date="endDate"
|
||||||
:values="values"
|
:values="values"
|
||||||
:range-color="colorRange"
|
:range-color="colorRange"
|
||||||
|
|
|
@ -18,14 +18,13 @@ export function initHeatmap() {
|
||||||
return {date: new Date(v), count: heatmap[v]};
|
return {date: new Date(v), count: heatmap[v]};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// last heatmap tooltip localization attempt https://github.com/go-gitea/gitea/pull/24131/commits/a83761cbbae3c2e3b4bced71e680f44432073ac8
|
||||||
const locale = {
|
const locale = {
|
||||||
months: new Array(12).fill().map((_, idx) => translateMonth(idx)),
|
months: new Array(12).fill().map((_, idx) => translateMonth(idx)),
|
||||||
days: new Array(7).fill().map((_, idx) => translateDay(idx)),
|
days: new Array(7).fill().map((_, idx) => translateDay(idx)),
|
||||||
|
contributions: 'contributions',
|
||||||
contributions_in_the_last_12_months: el.getAttribute('data-locale-total-contributions'),
|
contributions_in_the_last_12_months: el.getAttribute('data-locale-total-contributions'),
|
||||||
contributions_zero: el.getAttribute('data-locale-contributions-zero'),
|
no_contributions: el.getAttribute('data-locale-no-contributions'),
|
||||||
contributions_format: el.getAttribute('data-locale-contributions-format'),
|
|
||||||
contributions_one: el.getAttribute('data-locale-contributions-one'),
|
|
||||||
contributions_few: el.getAttribute('data-locale-contributions-few'),
|
|
||||||
more: el.getAttribute('data-locale-more'),
|
more: el.getAttribute('data-locale-more'),
|
||||||
less: el.getAttribute('data-locale-less'),
|
less: el.getAttribute('data-locale-less'),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue