[CONKY] Fix the display and add italian language
This commit is contained in:
parent
fc3fa44d05
commit
2799bf6b93
1 changed files with 4 additions and 0 deletions
|
@ -255,10 +255,14 @@ language+=([en]="English");
|
||||||
language+=([fr]="Français");
|
language+=([fr]="Français");
|
||||||
language+=([no]="Norsk");
|
language+=([no]="Norsk");
|
||||||
language+=([se]="Svenska");
|
language+=([se]="Svenska");
|
||||||
|
language+=([it]="Italiano");
|
||||||
|
|
||||||
if cmus-remote -Q &>/dev/null ; then
|
if cmus-remote -Q &>/dev/null ; then
|
||||||
COMMENT=$( cmus-remote -Q | grep "tag comment " | cut -d " " -f 3- )
|
COMMENT=$( cmus-remote -Q | grep "tag comment " | cut -d " " -f 3- )
|
||||||
LANGUAGE=$( echo $COMMENT | sed 's/.*lang:\(.\{2\}\).*/\1/')
|
LANGUAGE=$( echo $COMMENT | sed 's/.*lang:\(.\{2\}\).*/\1/')
|
||||||
|
if [ "$LANGUAGE" = "$COMMENT" ]; then
|
||||||
|
LANGUAGE="";
|
||||||
|
fi
|
||||||
COUNTRY=$( echo $COMMENT | sed 's/.*country:\(.\{2\}\).*/\1/')
|
COUNTRY=$( echo $COMMENT | sed 's/.*country:\(.\{2\}\).*/\1/')
|
||||||
if [ ! -z "$LANGUAGE" ] && [ ! -z "$COUNTRY" ]; then
|
if [ ! -z "$LANGUAGE" ] && [ ! -z "$COUNTRY" ]; then
|
||||||
echo "${language[$LANGUAGE]}, ${country[$COUNTRY]}"
|
echo "${language[$LANGUAGE]}, ${country[$COUNTRY]}"
|
||||||
|
|
Loading…
Reference in a new issue