Adding Multiple Language support and Fixing issues with slovenian symbols on Squirrelmail Web Mail on Linux

Saturday, 1st May 2010

No doubt Squirrelmail Web Mail is one excellent piece of software you can useon top of Qmail mail server.
However as with every piece of software you face issues every now and then.
The issue that a colleague of mine has encountered at the Company where are work is was caused by a broken character encodingof some of the slovenian letters like the Slovenian “c” and Slovenian “s”.
Besides that I’ve noted that the basic Squirrelmail installation I have previously done, some time ago wasmissing the all languages squirrelmail internationalization pack.

I revealed the missing Squirrelmail internationalzation by going to Squirrel Web mail’s installation directory /var/www/squirrelmail/locales/ and listing the content of the directory.:
The locales directory listing displayed only 4 files README.locales, index.php and timezones.cfg as well as a directory containing the default encoding configured to squirrelmail

The file README.locales explains thoroughly how to install all of the available translation languages to squirrelmail.
If you feel uncertain / informed on what you do I suggest you read The documentation available on Internationalization on Squirrelmail’s website
Anyways here is how for the lazy ones step by step walk through:

debian-server:~# mkdir /root/locales/;
debian-server:~# cd /root/locales/
debian-server:/root/locales# wget http://bit.ly/bKbrid"
debian-server:/root/locales# tar -zxvvf all_locales-1.4.18-20090526.tar.gz

The above commands will download all locales for the 1.4 generation stable release of Squirrelmail.

Note that it’s would be a good idea to download the latest all_locales on squirrelmail’s download webpage .

Now you will have in your /root/locales/ the following directory structure.

all_locales-1.4.18-20090526.tar.gz COPYING.locales images/ locale/ TRANSLATORS
ChangeLog.locales help/ install* ReleaseNotes.locales version

To install all the locales addons to squirrelmail to achieve internationalization of your Web mail you’ll have to invoke the install script which can be seen from the above file list.

debian-server:/root/locales# ./install
Please enter path to your squirrelmail installation: /var/www/squirrelmail/

Above in the prompt urging you to enter a directory enter the location to your squirrelmail installation in my case as shown above it’s /var/www/squirrelmail

That’s all now all necessery files will be merged with your squirrelmail installation directory.

Now you can safely remove the /root/locales squirrelmail internationalization installer files
debian-server:~# rm -rf /root/locales

However there is one more vital step to partake to assure Slovenian Symbols as well as other character encoding written in the UTF-8 standard will appear in your email communcation in squirrel web mail.
You’ll be required to change Squirrelmail’s Default Language
debian-server:/var/www/squirrelmail# ./configure

SquirrelMail Configuration : Read: config.php (1.4.0)
———————————————————
Main Menu —
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color on
S Save data
Q Quit

In the above screen Choose: 10. Languages The following screen will Appear.

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Language preferences
1. Default Language : en_US
2. Default Charset : iso-8859-2
3. Enable lossy encoding : false

R Return to Main Menu
C Turn color on
S Save data
Q Quit

Here you’ll need to change the variables: 2. and 3..
There Default Charset variable should be changed to utf-8 as well as the Enable lossy encoding variable should be switched to true.

If you wonder what Enable lossy encoding does please read the Supported Charsets documentation section on Squirrelmail’s website
The description for Lossy Encoding on the above link is:
Lossy Encoding – allows charset conversions when the output charset does not support all symbols used in the original email charset.

Hopefully this will solve your issues with broken Slovenian encoding in Squirrelmail and will add internationalization support in your Squirrel Web Mail.
If use the commend form and inform me about the issues you encounter and I’ll try to help!

Share this on:

Download PDFDownload PDF

Tags:

14 Responses to “Adding Multiple Language support and Fixing issues with slovenian symbols on Squirrelmail Web Mail on Linux”

  1. Shaunna Kues says:
    Internet Explorer 8.0 Internet Explorer 8.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)

    to be able to charge any in order to blog?

    View CommentView Comment
  2. Jenise Godbey says:
    Firefox 3.5.3 Firefox 3.5.3 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

    Nette Site! Der Beitrag ist gut geschrieben. Danke dafuer.

    View CommentView Comment
  3. admin says:
    IceWeasel 3.5.10 IceWeasel 3.5.10 GNU/Linux x64 GNU/Linux x64
    Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)

    nice I have even a German readers 🙂

    View CommentView Comment
  4. mike rossi says:
    Internet Explorer 8.0 Internet Explorer 8.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)

    I am speechless. This is a superb blog and very engaging too. Excellent work! That’s not really much coming from an amateur writer like me, but it’s all I could say after diving into your posts. Excellent grammar and vocabulary. Not like other blogs. You really know what you’re talking about too. So much that you made me want to learn more. Your blog has become a stepping stone for me, my friend. Thank you for the articulate journey. I really enjoyed the 8 posts that I have read so far.

    View CommentView Comment
  5. Teresita Stromer says:
    Firefox 3.5.3 Firefox 3.5.3 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

    Hello, this is a truly fascinating web blog and ive loved reading many in the content and posts contained upon the internet site, sustain the wonderful get the job done and hope to read a great deal much more exciting articles or blog posts inside the time to arrive.

    View CommentView Comment
  6. Susie Songster says:
    Internet Explorer 8.0 Internet Explorer 8.0 Windows 7 x64 Edition Windows 7 x64 Edition
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)

    Thank you for another wonderful post. Where else could anyone get that kind of info in like a ideal way of writing? I’ve a presentation next week, and I’m around the appear for like information.

    View CommentView Comment
  7. Latoria Cuhel says:
    Firefox 3.5.3 Firefox 3.5.3 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

    This is a Fantastic article! I hope you not mind.I published an excerpt on the website and linked back to your blog site for people to read the full version. Many thanks for the advice.

    View CommentView Comment
  8. Tai Computers Ltd says:
    Unknown Unknown Unknown Unknown

    There is a lot of bookmarks back to this subject, which is where I found it.

    View CommentView Comment
  9. Tai Computers Ltd says:
    Unknown Unknown Unknown Unknown

    Good tips, this place is like the oracle.

    View CommentView Comment
  10. customizable dog jerseys says:
    Firefox 3.8 Firefox 3.8 Ubuntu 9.25 Ubuntu 9.25
    Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.9.0.2) Gecko/2008092313 Ubuntu/9.25 (jaunty) Firefox/3.8

    Smile will be the key to remain young along with cute. Naks, bakit ka nakangiti?

    View CommentView Comment
  11. MandyF says:
    Firefox 3.0.14 Firefox 3.0.14 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729)

    Good Day Mate, I am commenting from Adelaide Australia. We have had a lot of wind lately and I’ve only just been able to connect to the blogsphere Thanks for the interesting post. It inspired me a lot with my TAFE human relations assessment task. God Bless the internet !

    View CommentView Comment
  12. Cary Centeno says:
    Google Chrome 4.0.221.7 Google Chrome 4.0.221.7 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.7 Safari/532.2

    to Luecha Na Malai, how dare you say that you are "sorry to say that many of my compatriots do not really practice Buddhism. Instead, they choose to behave like crooks"! What about the muslims, the animists, the christians, the atheists, are they crooks for not practicing Buddhism. I'm sorry, but the expectation that people must behave in a particular way or be labled crooks is at the very heart of the problem. Cutural uniformity is not the answer, rather tolerant diversity is. People should behave as citizens, with or without religion.

    View CommentView Comment
  13. klurl.nl says:
    Opera 26.0.1656.60 Opera 26.0.1656.60 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60

    I just like this site a lot, saved to bookmarks.

    View CommentView Comment

Leave a Reply

CommentLuv badge