[I18N] Improve translatability of archived labels

Allow any position and writing style of `(Archived)`.
This commit is contained in:
0ko 2024-03-29 23:17:00 +05:00
parent 4b09dd11ec
commit cab47bbb0e
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

@ -1627,6 +1627,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