Archive for month: October, 2011

When setting up a site in Joomla 1.5 for multiple languages JoomFish is the tool for you (Joomla 2.5 has native multi language support). But there are some things in Joomla that JoomFish can’t handle, like the slogan for example. This is one way of making a language dependent slogan.

Create a file called en-GB.tpl_your_template_name_here.ini in language/en-GB (replace "your_template_name_here" with the actual name of your template).

Insert a line like this in the file you just created:SLOGAN=Your slogan in english here

Repeat the above steps for all languages you are supporting in your site, replacing en-GB in the directory and file name with the language codes for each language and the slogan in the corresponding language, for example sv-SE/sv-SE.tpl_your_template_name_here.ini for Swedish.

Edit your template’s index.php file and find the line that outputs the slogan. It will look something like this:<?php echo $slogan;?>
or<?php echo $this->params->get('siteSlogan'); ?>

Replace the line with this:<?php echo JText::_('Slogan'); ?>

This will give you slogans displayed in different languages but to change the slogan, the above ini-files must be edited (the template slogan parameter will no longer have effect).

The same method can be used if you want to have different logos displayed for different languages.

Most Shoutcast streams are sampled at 44.100 kHz or 22.050 kHz in stereo. In order to use a stream for MOH in Asterisk it must be converted to 8 kHz mono, hence the parameters -r 8000 -f 8192 and –mono.

The IP-address 192.168.1.2 and port 8000 in the example should be replaced by the real ip-adress (or hostname) and the port number of the Shoutcast server you want to stream from.

In order to test the streaming music-on-hold, the easiest way is to set up a dummy extension (extension 446 in this example).
Edit extensions_custom.conf and add the lines below:

Cookies

This website use cookies for user tracking (logged in users and commenters), displaying ads and for statistical purposes. By continuing to visit the site you agree on the use of cookies on this website. If you do not whish to agree to this, you should leave the website and clear your browser’s cookies.