UTF-8 Language Manager for Legacy System (1)

I’ve developed the common UTF-8 Language Manager for Legacy System 2.1. You can download this module form the download page. This is still the test version. And, you must install with the special method, because the action-filter of this module has to work earlier than module preload. But, it’s very easy.

Step1… Confirm precondition

This module offers Utf8LangMgr_LanguageManager as UTF-8 encoder to your site. But, this module doesn’t give any effects to the installer. Therefore, you must create UTF-8 database tables yourself. However, you don’t need to convert language files of each modules.

Step2… Put the module

Put this module’s directory to /modules as well as other modules.

Step3… Modify your setting

The configuration of Legacy package is written in /settings/site_default.ini.pnp. You must specify preload of this module as primary preload in that file. Because XOOPS Cube has override setting feature, you don’t need to modify site_default.ini.php directly. Create site_custom.ini.php in /settings, and write the following.

<?php
/**

[Legacy.PrimaryPreloads]
SetupUtf8LangMgr=/modules/Utf8LangMgr/preload/Primary/SetupUtf8LangMgr.class.php

*/
?>

Complete. Do report your troubles to the thread of xoopscube.org forum.

Note

If your site uses multi-byte languages, you must tell charcode to this language manager. Charcode of some languages I know is contained to primary preload of this module. But, if it’s not solved automatically, you must add descriptions to site_custom.ini.php.

[Module_Utf8LangMgr]
japanese=EUC-JP
korean=…

Settings in this file are applied to this language manager earlier than automatic solutions.

Advertisements
This entry was posted in XOOPS Cube. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s