Download List

프로젝트 설명

XOOPSの統合パッケージを開発するプロジェクトです。

System Requirements

System requirement is not defined
xlang
xlang-020

Released at 2008-12-26 19:41
xlang xlang-020 (1 files Hide)

Release Notes

XOOPS Language Translation Support
This module support to translate the language files.
This create the bilingual table of two language English and Foreign language,
like French Arabian Japanse Chinese Korean and others

* Changes *
1. support D3 modules
(1) If there are language files in XOOPS_TRUST_PATH,
those files are read.

(2) support prefix of language file

You want to make language file like the following.
modinfo.php
----
define($constpref."xxx","yyy");
----

you describe option file like the following.
exsample of options/webphoto/filter.php
-----
function xlang_filter_webphoto_modinfo_php_key( $str )
{
$key = '"_MI_WEBPHOTO_' ;
$val = '$constpref."' ;
$str = str_replace( $key, $val, $str );
return $str;
}
-----

言語翻訳支援 モジュール
XOOPSモジュールの言語ファイルの翻訳を支援するため、
英語と自国語(日本語)の2つの言語の対訳表を表示・編集する。

● 主な変更
1. D3モジュールに対応した
(1) XOOPS_TRUST_PATH 側に言語ファイルがあれば、それを読み込む

(2) 言語ファイルの prefix に対応した

下記のような言語ファイルを生成するには、
modinfo.php
----
define($constpref."xxx","yyy");
----

下記のようにオプション・ファイルを設定する
options/webphoto/filter.php の例
-----
function xlang_filter_webphoto_modinfo_php_key( $str )
{
$key = '"_MI_WEBPHOTO_' ;
$val = '$constpref."' ;
$str = str_replace( $key, $val, $str );
return $str;
}
-----

Changelog

No Changelogs