PEAK XOOPS - Re: cubeUtilsをEMLH互換とするpreload in englishin japanese

Top  >  Comments  >  News comment ()

Re: cubeUtilsをEMLH互換とするpreload

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target News
Subject A preload makes cubeUtils compatible with EMLH
Summary For multilanguation, I often use such a flagment of php code in my modules like this: if( function_exists('easiestml') ) { $mail_body = easiestml( $mail_body ) ; } This code removes language tags and needless text from text for e-mail etc.If you u...
Previous post - Next post | Parent - Children.1 .2 | Posted on 2008/6/13 17:37
nobunobu  Lance Corporal   Posts: 25
これ・・・
同じような関数定義を、小生のとあるサイトでは、
直接、MultiLanguagePreLoad.class.php内に追加定義してたりしてました・・・別のプリロードの方がスマートですね^^
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2008/6/13 22:39
avtx30  Lance Corporal   Posts: 36
ありがとうございます。早速導入しました。
Votes:2 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2008/6/22 17:18 | Last modified
GIJOE  Gunnery Sergeant   Posts: 4110
nobunobuさん、こんにちは。
コメントありがとうございます。

Quote:

nobunobu wrotes:
同じような関数定義を、小生のとあるサイトでは、
直接、MultiLanguagePreLoad.class.php内に追加定義してたりしてました

EMLH-1.30互換となるpreloadを作っていたら確かに、

function cubeUtil_MLConvert($str)

というグローバルスコープの関数を見つけてしまいました
(グローバルスコープなフィルタ関数だと、Smartyで直接使えるのがメリット大きい)

それでも、preloadは1ファイル1機能の方が判りやすいですし、EMLH-1.30互換なんて後付けもできて便利ですね
Votes:3 Average:6.67

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!