Open Source Content Management System

Adding new languages to MidCOM configuration

MidCOM's internationalization subsystem uses a language database for storing information about different languages the system has been localized to.

If your language is not included in the database, you can easily add it by editing the lib/midcom/config/language_db.inc file in your MidCOM installation directory (by default /usr/share/midgard/midcom).

The language configuration is in the following format:

'fi' => Array ( 
    'enname' => 'Finnish',
    'locale' => array('fi_FI.UTF-8', 'fi_FI'), 
    'localname' => 'Suomi', 
    'encoding' => 'UTF-8',
    'midgard_code' => 'fi', 
),

Once you have added your language it is a good idea to send its settings to the Midgard developer mailing list for inclusion in the official releases.

Designed by Nemein, hosted by Anykey