diff --git a/bin/mb-jgtools b/bin/mb-jgtools index e96cf13..53f5cbd 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -27,12 +27,20 @@ esac gtkbookmarks() { BOOKMARKS="$HOME/.gtk-bookmarks" if [[ -s "$BOOKMARKS" ]]; then +case $LANG in + pl*) + GTK_BOOKMARKS="Zakładki GTK" + ;; + *) + GTK_BOOKMARKS="GTK Bookmarks" + ;; +esac while read -r line do uri=$(echo $line | cut -b 8- | cut -d' ' -f1 | sed 's/%20/ /g') dirs+=("${line#* },^pipe(jgbrowser \"${uri}\")") done <"$BOOKMARKS" - printf "%b\n" "^sep(Zakładki GTK)" + printf "%b\n" "^sep($GTK_BOOKMARKS)" printf '%s\n' "${dirs[@]}" fi }