1
Dear guys
I wanna setup XOOPS for a bilingual/bidirectional site. On its way these supports is required (minimal):
- bilingual content
- bidirectional theme
- bilingual/bidirectional images
- dynamic localized date/time
Ok . i did some works and i need your comment
Marcan's ML hack was great
after its install I added these lines to the
header.php around line 80 :
if ($fd = @fopen(XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'-'.$xoopsConfig['language'].'/theme.html','ro')){
fclose($fd);
$xoopsConfig['theme_set'] = $xoopsConfig['theme_set'].'-'.$xoopsConfig['language'];
}
and then I created language based different themes for my goal e.g.
themes/default-persian this works good , what is your oppinion ? plzzz
next I did some dirty works
after adding below lines at the end of
include/common.php :
if ($fd = @fopen(XOOPS_URL.'/images-'.$xoopsConfig['language'].'/image.gif','ro')){
fclose($fd);
define('XOOPS_URL_IMAGE', XOOPS_URL.'/images-'.$xoopsConfig['language']);
} else{
define('XOOPS_URL_IMAGE', XOOPS_URL.'/images');
}
I changed ALL
XOOPS_URL."/images by
XOOPS_URL_IMAGE." around the XOOPS ! this works not too bad , I need your clean soloutions ...
I am going to change date and calendar by language switching ,,
Jalali calendar is persians only way to ...
thats enough ! ..
helps requiredHave FUN