recently used pipemenu fix

master
Daniel Napora 2017-01-31 12:39:11 +01:00
parent 1c22f1605e
commit 4a7265b7f6
1 changed files with 4 additions and 2 deletions

View File

@ -29,9 +29,11 @@ maximum_entries=15 # max. number of entries in menu
case $LANG in
pl*)
NOTFOUND="Nie znaleziono pliku recently-used.xbel"
CLEAR="Wyczyść ostatnio używane"
;;
*)
NOTFOUND="Cannot find a readable recently-used.xbel file"
CLEAR="Clear recently used file list"
;;
esac
@ -48,7 +50,7 @@ then
else
echo "$0: cannot find a readable recently-used.xbel file" >&2
echo '<openbox_pipe_menu>
<separator label="$NOTFOUND" />
<separator label="'$NOTFOUND'" />
</openbox_pipe_menu>'
exit 1
fi
@ -104,7 +106,7 @@ files=$(perl -MURI::Escape -e 'print uri_unescape($ARGV[0]);' "$files")
output='<openbox_pipe_menu>
'"$files"'
<separator />
<item label="Wyczyść ostatnio używane">
<item label="'${CLEAR}'">
<action name="Execute">
<command>
&apos;'"$0"'&apos; --clear