fix: use positional argument for "providers available" translation (#2537)

This commit is contained in:
scarf
2024-12-21 01:43:28 +09:00
committed by GitHub
parent f23fe98a66
commit da53d3855f
31 changed files with 104 additions and 104 deletions

View File

@@ -176,7 +176,7 @@ func (ae *AlpmExecutor) questionCallback() func(question alpm.QuestionAny) {
return nil
})
str := text.Bold(gotext.Get("There are %d providers available for %s:", size, qp.Dep()))
str := text.Bold(gotext.Get("There are %[1]d providers available for %[2]s:", size, qp.Dep()))
size = 1

View File

@@ -723,7 +723,7 @@ func (g *Grapher) provideMenu(dep string, options []aur.Pkg) *aur.Pkg {
return &options[0]
}
str := text.Bold(gotext.Get("There are %d providers available for %s:", size, dep))
str := text.Bold(gotext.Get("There are %[1]d providers available for %[2]s:", size, dep))
str += "\n"
size = 1