summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/lint_pkgbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-01-21 05:31:21 +0100
committerAllan McRae <allan@archlinux.org>2019-01-21 22:32:41 +0100
commit1b9e358f1d7ff806c62a7170f57342dd0e2338bf (patch)
treedaab9dc636e2519e222b41c31bfcd26272296819 /scripts/libmakepkg/lint_pkgbuild
parent4d1d857ef050778abd22669058dc5f7781604299 (diff)
downloadpacman-1b9e358f1d7ff806c62a7170f57342dd0e2338bf.tar.gz
pacman-1b9e358f1d7ff806c62a7170f57342dd0e2338bf.tar.xz
libmakepkg: make gettext replacements more templated
Making the undescore be translated is probably not something we need translators to think about. Additionally, a number of places which use the same text differ only by the variable being referenced, so simplifying the string means we can drop a redundant translation. Bonus: we save a few bytes here and there. \o/ Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/lint_pkgbuild')
-rw-r--r--scripts/libmakepkg/lint_pkgbuild/variable.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/variable.sh.in b/scripts/libmakepkg/lint_pkgbuild/variable.sh.in
index 1ee3c834..d19c95bc 100644
--- a/scripts/libmakepkg/lint_pkgbuild/variable.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/variable.sh.in
@@ -86,7 +86,7 @@ lint_variable() {
for i in ${arch_array[@]}; do
if extract_function_variable "package_$pkg" "${i}_${a}" 0 out; then
- error "$(gettext "%s_%s should be an array")" "$i" "$a"
+ error "$(gettext "%s should be an array")" "${i}_${a}"
ret=1
fi
done