Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

[I18N] Improve translatability of archived labels

Allow any position and writing style of `(Archived)`.

(cherry picked from commit cab47bbb0e)
This commit is contained in:
0ko 2024-03-29 23:17:00 +05:00 committed by GitHub
parent 4ef8b139f2
commit b068d193d0
2 changed files with 2 additions and 1 deletions

View file

@ -137,7 +137,7 @@ func RenderLabel(ctx context.Context, locale translation.Locale, label *issues_m
if label.IsArchived() {
archivedCSSClass = "archived-label"
description = fmt.Sprintf("(%s) %s", locale.TrString("archived"), description)
description = locale.TrString("repo.issues.archived_label_description", description)
}
if labelScope == "" {

View file

@ -1628,6 +1628,7 @@ issues.label_modify = Edit label
issues.label_deletion = Delete label
issues.label_deletion_desc = Deleting a label removes it from all issues. Continue?
issues.label_deletion_success = The label has been deleted.
issues.archived_label_description = (Archived) %s
issues.label.filter_sort.alphabetically = Alphabetically
issues.label.filter_sort.reverse_alphabetically = Reverse alphabetically
issues.label.filter_sort.by_size = Smallest size