Project

General

Profile

« Previous | Next » 

Revision 591

Added by doc almost 17 years ago

added language support to all integrated modules (except for news and form module)

View differences:

view.php
28 28
page exists, we might as well give them a link to the home page.
29 29
*/
30 30

  
31
// check if module language file exists for the language set by the user (e.g. DE, EN)
32
if(!file_exists(WB_PATH .'/modules/menu_link/languages/'.LANGUAGE .'.php')) {
33
	// no module language file exists for the language set by the user, include default module language file EN.php
34
	require_once(WB_PATH .'/modules/menu_link/languages/EN.php');
35
} else {
36
	// a module language file exists for the language defined by the user, load it
37
	require_once(WB_PATH .'/modules/menu_link/languages/'.LANGUAGE .'.php');
38
}
39

  
31 40
?>
32 41
<a href="<?php echo WB_URL; ?>">
33
Click HERE to go to the main page
42
<?php echo $MOD_MENU_LINK['TEXT']; ?>
34 43
</a>

Also available in: Unified diff