When I create the .mo file, is there a way to preview the translation in my installed version of squirrelmail (1.4.6) ?

Thanks,

Reuben


Tomas Kuliavas wrote:
Hello,


I would like to contibute to the squirrel mail project by translating it
into Maltese. Can anyone please send me the relevant info and the
translation strings in English for me to translate them to Maltese?

Maltese characters include the english a-z characters with the addition
of:


ġĠħĦċĊżŻ (i hope these are
displayed correctly)
    

I think you must use iso-8859-3 or utf-8 character set in order to send
these characters correctly.

ġĠħĦċĊżŻ

If you use SquirrelMail 1.4.6, open functions/i18n.php, find $languages
entries and add new lines with Maltese translation.

$languages['mt']['NAME']    = 'Maltese';
$languages['mt']['CHARSET'] = 'utf-8';
$languages['mt']['LOCALE']  = array('mt_MT.UTF-8','mt_MT','mt');
$languages['mt_MT']['ALIAS'] = 'mt';

If you use SquirrelMail 1.5.1, create locale/mt/setup.php file with
---
<?php
$languages['mt']['NAME']    = 'Maltese';
$languages['mt']['CHARSET'] = 'utf-8';
$languages['mt']['LOCALE']  = array('mt_MT.UTF-8','mt_MT','mt');
$languages['mt_MT']['ALIAS'] = 'mt';
?>
---

Then edit attached squirrelmail.po file with some gettext editor. PoEdit,
KBabel or Gtranslator.

After you translate some strings, place translated file in squirrelmail
locale/mt/LC_MESSAGES directory and compile binary message catalog with
command 'msgfmt -v -c -o squirrelmail.mo squirrelmail.po'

See also http://www.squirrelmail.org/wiki/LanguageTranslation.

If you have php with gettext support, you will need mt_MT.UTF-8 system
locale. PHP installation should contain mbstring extension.

squirrelmail.po file contains more than 1100 strings. If you want make
translation easier, I can provide translation files for core squirrelmail
scripts and then gradually increase number of strings by adding core
plugin strings.

Translated file should be posted on this mailing list.