From 204e56f5b1544682d874654414e34f11a96c5930 Mon Sep 17 00:00:00 2001 From: BetaRays Date: Mon, 21 Jan 2019 09:55:29 +0100 Subject: [PATCH] =?UTF-8?q?Gentoo=20support=20=E2=80=94=20Specify=20altern?= =?UTF-8?q?ative=20way=20to=20install=20packages=20in=20gentoo=20installat?= =?UTF-8?q?ion=20instructions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- play.it-2/src/00_header.sh | 2 +- play.it-2/src/30_installation-instructions_gentoo.sh | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/play.it-2/src/00_header.sh b/play.it-2/src/00_header.sh index b177a389..a7811ee4 100644 --- a/play.it-2/src/00_header.sh +++ b/play.it-2/src/00_header.sh @@ -37,5 +37,5 @@ library_version=2.11.0~dev # shellcheck disable=SC2034 -library_revision=20190120.1 +library_revision=20190123.1 diff --git a/play.it-2/src/30_installation-instructions_gentoo.sh b/play.it-2/src/30_installation-instructions_gentoo.sh index 029ee172..3375d2ca 100644 --- a/play.it-2/src/30_installation-instructions_gentoo.sh +++ b/play.it-2/src/30_installation-instructions_gentoo.sh @@ -3,6 +3,7 @@ print_instructions_gentoo() { local pkg_path local str_format + local str_comment printf 'quickunpkg --' for pkg in "$@"; do if [ "$OPTION_ARCHITECTURE" != all ] && [ -n "${PACKAGES_LIST##*$pkg*}" ]; then @@ -17,6 +18,14 @@ print_instructions_gentoo() { fi printf "$str_format" "$pkg_path" done - printf ' # %s\n' 'https://www.dotslashplay.it/ressources/gentoo/' + case "${LANG%_*}" in + ('fr') + str_comment='ou mettez les paquets dans un PKGDIR et emergez-les' + ;; + ('en'|*) + str_comment='or put the packages in a PKGDIR and emerge them' + ;; + esac + printf ' # %s %s\n' 'https://www.dotslashplay.it/ressources/gentoo/' "$str_comment" } -- GitLab