From fda68ddf20a7702d81bda0a37a096b7286f3b887 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Sun, 20 Apr 2025 07:06:03 +0000 Subject: [PATCH] i18n(en): add positional hints to sync_fork placeholders (#7579) Followup to https://codeberg.org/forgejo/forgejo/pulls/2364. It's only possible to use them without hints in the correct order in the string, because our i18n is not smart enough to figure out types in such strings on it's own. In some languages translators preferred to first specify branch name and then amount of commits without hints and got broken strings. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7579 Reviewed-by: Earl Warren --- options/locale/locale_en-US.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index f7fe0e0196..03420dbb53 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1220,8 +1220,8 @@ archive.title_date = This repository has been archived on %s. You can view files archive.nocomment = Commenting is not possible because the repository is archived. archive.pull.noreview = This repository is archived. You cannot review pull requests. -sync_fork.branch_behind_one = This branch is %d commit behind %s -sync_fork.branch_behind_few = This branch is %d commits behind %s +sync_fork.branch_behind_one = This branch is %[1]d commit behind %[2]s +sync_fork.branch_behind_few = This branch is %[1]d commits behind %[2]s sync_fork.button = Sync form.reach_limit_of_creation_1 = The owner has already reached the limit of %d repository.