[I18N] Improve translatability of archived labels

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

(cherry picked from commit cab47bbb0e0b656117df339c32ef2cae90b90dc5)
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