mirror of
1
Fork 0
forgejo/options/locale
Gusted 56b7478b25 [UI] Do not include trailing EOL character when counting lines
- Adjust the counting of the number of lines of a file to match the
amount of rendered lines. This simply means that a file with the content
of `a\n` will be shown as having `1 line` rather than `2 lines`. This
matches with the amount of lines that are being rendered (the last empty
line is never rendered) and matches more with the expecation of the
user (a trailing EOL is a technical detail).
- In the case there's no EOL, the reason why it was counting
'incorrectly' was to show if there was a trailing EOL or not, but now
text is shown to tell the user this.
- Integration test added.
- Resolves Codeberg/Community#1612

(cherry picked from commit 5cf976739c)
2024-08-06 12:24:38 +00:00
..
TRANSLATORS Fix missing left and right carets in TRANSLATORS (#21397) 2022-10-10 10:36:37 -04:00
locale_ar.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_be.ini [I18N] Translations update from Weblate (#2521) 2024-03-04 01:58:49 +00:00
locale_bg.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_bn.ini [I18N] Translations update from Weblate (#2350) 2024-02-17 22:18:04 +00:00
locale_bs.ini s/return_to_gitea/return_to_forgejo (#3822) 2024-05-20 18:44:33 +00:00
locale_ca.ini s/return_to_gitea/return_to_forgejo (#3822) 2024-05-20 18:44:33 +00:00
locale_cs-CZ.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00
locale_de-DE.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00
locale_el-GR.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_en-US.ini [UI] Do not include trailing EOL character when counting lines 2024-08-06 12:24:38 +00:00
locale_eo.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_es-ES.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_fa-IR.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_fi-FI.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_fil.ini [v8/forgejo] i18n: update of translations from Weblate 2024-07-18 12:48:00 +05:00
locale_fr-FR.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00
locale_gl.ini [v8/forgejo] i18n: update of translations from Weblate 2024-07-18 12:48:00 +05:00
locale_hi.ini [I18N] Translations update from Weblate (#3508) 2024-05-04 18:36:49 +00:00
locale_hu-HU.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00
locale_id-ID.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_is-IS.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_it-IT.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_ja-JP.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_ko-KR.ini [v8/forgejo] i18n: update of translations from Weblate 2024-07-18 12:48:00 +05:00
locale_lv-LV.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_ml-IN.ini [I18N] Add `common` section to new translation files 2024-07-23 04:26:25 +00:00
locale_nl-NL.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00
locale_pl-PL.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_pt-BR.ini [v8/forgejo] i18n: update of translations from Weblate 2024-07-18 12:48:00 +05:00
locale_pt-PT.ini [v8/forgejo] i18n: update of translations from Weblate 2024-07-18 12:48:00 +05:00
locale_ru-RU.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00
locale_si-LK.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_sk-SK.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_sl.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_sr-SP.ini [I18N] Add `common` section to new translation files 2024-07-23 04:26:25 +00:00
locale_sv-SE.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_tr-TR.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_uk-UA.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_yi.ini [v8/forgejo] i18n: update of translations from Weblate 2024-07-18 12:48:00 +05:00
locale_zh-CN.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_zh-HK.ini [v7/v8] i18n(*): freeze translations of register_notify (#4562) 2024-07-18 07:19:37 +00:00
locale_zh-TW.ini [I18N] Translations update from Weblate (#4568) 2024-07-24 12:05:57 +00:00