From 8668b4162432063cb6a549522c22d8c4d6fe2988 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Wed, 26 Feb 2020 15:15:26 +0100 Subject: [PATCH] update --- bin/mb-jgtools | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/mb-jgtools b/bin/mb-jgtools index 53f5cbd..651607e 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -398,6 +398,15 @@ CONFIG_FILE=$(mktemp) MENU_ITEMS=$(mktemp) trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS};wmctrl -k off" EXIT +case $LANG in + pl*) + CANCEL="Anuluj" + ;; + *) + CANCEL="Cancel" + ;; +esac + JGWIDTH="340" MENU_HALIGN="center" MENU_VALIGN="center" @@ -420,7 +429,7 @@ cat < ${MENU_ITEMS} . $HOME/.config/mabox/exit.csv ^sep() -Anuluj esc,exit 1 +$CANCEL esc,exit 1 EOF jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null