0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 17:44:41 +01:00
gitea/options/locale
zeripath 248b96d8a3
Use git attributes to determine generated and vendored status for language stats and diffs (#16773)
Replaces #16262
Replaces #16250
Replaces #14833

This PR first implements a `git check-attr` pipe reader - using `git check-attr --stdin -z --cached` - taking account of the change in the output format in git 1.8.5 and creates a helper function to read a tree into a temporary index file for that pipe reader.

It then wires this in to the language stats helper and into the git diff generation.

Files which are marked generated will be folded by default.

Fixes #14786
Fixes #12653
2021-09-09 21:13:36 +01:00
..
locale_bg-BG.ini
locale_cs-CZ.ini
locale_de-DE.ini [skip ci] Updated translations via Crowdin 2021-09-09 00:04:58 +00:00
locale_el-GR.ini [skip ci] Updated translations via Crowdin 2021-09-07 00:04:55 +00:00
locale_en-US.ini Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 2021-09-09 21:13:36 +01:00
locale_es-ES.ini [skip ci] Updated translations via Crowdin 2021-09-03 00:04:56 +00:00
locale_fa-IR.ini
locale_fi-FI.ini
locale_fr-FR.ini
locale_hu-HU.ini
locale_id-ID.ini
locale_it-IT.ini
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 2021-09-07 00:04:55 +00:00
locale_ko-KR.ini
locale_lv-LV.ini
locale_ml-IN.ini
locale_nl-NL.ini
locale_pl-PL.ini
locale_pt-BR.ini
locale_pt-PT.ini
locale_ru-RU.ini
locale_sr-SP.ini
locale_sv-SE.ini
locale_tr-TR.ini
locale_uk-UA.ini
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 2021-09-09 00:04:58 +00:00
locale_zh-HK.ini
locale_zh-TW.ini [skip ci] Updated translations via Crowdin 2021-09-03 00:04:56 +00:00
TRANSLATORS