Hi all,
On the Doc. in the website, it says:
"URL Language Code" and the "Image Prefix" are the first 2 letters of the ISOCODE for the language.
Because some of the language has the same ISOCODE in the first 2 letters.
eg.
For Chinese, it has Traditional Chinese and Simplified Chinese
They are "zh-TW" and "zh-CN".
It will cause a URL problem when switching the language with the module jdlanguage.
I have simply modified the code to fix the URL problem.
In "mod_jdlanguage.php" line 22 found:
list($lang->link, $lang->menutitle) = modJdLanguageHelper::getLink($lang->lang_code);
Replace to:
list($lang->link, $lang->menutitle) = modJdLanguageHelper::getLink($lang->lang_code,$lang->image);
In "helper.php" line 18 found:
public static function getLink($target) {
Replace to:
public static function getLink($target,$image) {
Then, in line 42 found
$link = substr($target, 0, 2).'/';
Replace to
$link = $image.'/';
p.s. All of the above is talking about "jDiction 0.7"
Hope it will help someone and sorry for my poor English.