[TextCube] TC 1.7 plugin i18n development with BIG ERROR!


update 2008/07/15, Fixed JP_FlickrYoutubeMediaSearch Common files error!
i18n_error_fixed_JP_FlickrYoutubeMediaSearch_20080714.zip

update 2008/07/14, Fixed TT_SkinManager Common files error!

i18n_error_fixed_TT_SkinManager_20080714.zip

When you used the same name of the functions which you setting up in the different plugin. The function CANNOT work well and failure in the plugin that you never know which one.

This is an BIG ERROR. The function I made it called "_ts" and "_fs" that used to translation. If there are two plugins used the same name of the functions, one of them will be fail and the admin-page will show up the blank page.

For example, the plugin "PN_Visitor_Default" source code like this:
function _ts($t) {
// some work here.
}

And the "PN_Referer_Default" source code like this:
function _ts($t) {
 // some work here. The same as "PN_Visitor_Default", BTW, maybe not.
 }


When I go to the "PN_Visitor_Default" that will be fine, but the "PN_Referer_Default" show me nothing.
Cause the function re-defined in plugin. I used different function's name that two plugins work well again... =_="

SO, I FIXED all the plugins which I modified within i18n.

咳,我知道我英文很爛。那上面是要寫給韓國官方看的,加減湊合一下。總之,這是應該算是程式邏輯上的錯誤,改用 require_once or include 避免掉一些重複定義同一個 function 所帶來的不必要的麻煩。目前所有的插件能出問題的都在我的 blog 出問題了,所以請大家務必要更新。

目前受影響的只有我中文化的插件的部分,總計有:
其中還有我自己做的 plugin,真是汗顏。

檔案在此,請下載更新。
i18n_error_fixed_plugins_20080714.zip

i18n_error_fixed_plugins_20080711.zip
Writer profile
author image
偏執與強迫症的患者,算不上是無可救藥,只是我已經遇上我的良醫了。


Powered by Textcube