View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#1157
Originally Posted by jw243 View Post
Is there a way that the output of the {profile} tag comes up in German, i.e. instead of "general", "meeting" and "silent" it should show "Klingelton", "Einzelton" and "Lautlos".
You'd probably have to pipe it through a command and let the command "translate" the string, something like this:

Code:
#!/bin/sh

case $1 in
    general)
        echo "Klingelton"
        ;;
    meeting)
        echo "Einzelton"
        ;;
    silent)
        echo "Lautlos"
        ;;
    *)
        echo "???"
        ;;
esac
Assuming you save that as e.g. /home/user/MyDocs/ringer-status.sh you can then use the following code in Billboard:

Code:
{script:sh /home/user/MyDocs/ringer-status.sh {profile}}
(untested, but that should work)
 

The Following 2 Users Say Thank You to thp For This Useful Post: