mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-31 22:41:03 +00:00
feat(build): improve lint-locale-usage further (#8736)
Print out a list of all unused msgids
Handle Go files that make calls to translation.
Handle `models/unit/unit.go`, which stores msgids in `$Unit.NameKey`
Handle .locale.Tr in templates
Handle simple dynamically constructed `Tr("msgid-prefix." + SomeFunctionCall())`.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8736
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Ellen Εμιλία Άννα Zscheile <fogti+devel@ytrizja.de>
Co-committed-by: Ellen Εμιλία Άννα Zscheile <fogti+devel@ytrizja.de>
This commit is contained in:
parent
e101a8e2dd
commit
f447661345
18 changed files with 720 additions and 320 deletions
|
|
@ -48,6 +48,7 @@ const (
|
|||
AbuseCategoryTypeIllegalContent // 4
|
||||
)
|
||||
|
||||
// llu:TrKeys
|
||||
var AbuseCategoriesTranslationKeys = map[AbuseCategoryType]string{
|
||||
AbuseCategoryTypeSpam: "moderation.abuse_category.spam",
|
||||
AbuseCategoryTypeMalware: "moderation.abuse_category.malware",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue