WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php //Modul Description$module_description = 'Mit diesem Modul können sie eine News Seite ihrer Seite hinzufügen.';/** * include original Language Array as fallback for non existing indexes */require('EN.php'); /** Generate Language Array for the specified Language*/$MOD_NEWS_de = array( //index => value //Variables for the backend // 'SETTINGS' => 'News Einstellungen', //Variables for the frontend 'TEXT_READ_MORE' => 'Weiterlesen', 'TEXT_POSTED_BY' => 'Veröffentlicht von', 'TEXT_ON' => 'am', 'TEXT_LAST_CHANGED' => 'Zuletzt geändert am', 'TEXT_AT' => 'um', 'TEXT_BACK' => 'Zurück', 'TEXT_COMMENTS' => 'Kommentare', 'TEXT_COMMENT' => 'Kommentar', 'TEXT_ADD_COMMENT' => 'Kommentar hinzufügen', 'TEXT_BY' => 'von', 'PAGE_NOT_FOUND' => 'Seite nicht gefunden',);/* Now, merge the arrays for the final Output.*/$MOD_NEWS = array_merge($MOD_NEWS, $MOD_NEWS_de);/* The function 'array_merge()' will replace EN indexes by those from the new LANGUAGE array but will keep all NOT specified indexes an its values intact.*//* TEST Array Output */// print '<pre>';// print_r($MOD_NEWS);// print '</pre>';$TEXT['UNKNOWN'] = 'Gast';?>
<?phpinclude('EN.php');include('DE.php');?>
<?php$language_code = 'EN';$language_name = 'English';$language_version = '2.8';$language_platform = '2.8.x';$language_author = 'Ryan Djurovich, Christian Sommer';$language_license = 'GNU General Public License';?>
<?php // function to obtain the module language file depending on the backend language of the current userif (!function_exists('get_module_language_file')) { function get_module_language_file($mymod_dir) { $mymod_dir = strip_tags($mymod_dir); if(file_exists(WB_PATH .'/modules/' .$mymod_dir .'/languages/' .LANGUAGE .'.php')) { // a module language file exists for the users backend language return (WB_PATH .'/modules/' .$mymod_dir .'/languages/' .LANGUAGE .'.php'); } else { // an English module language file must exist in all multi-lingual modules if(file_exists(WB_PATH .'/modules/' .$mymod_dir .'/languages/EN.php')) { return (WB_PATH .'/modules/' .$mymod_dir .'/languages/EN.php'); } else { echo '<p><strong>Error: </strong>'; echo 'Default language file (EN.php) of module "' .htmlentities($mymod_dir) .'" does not exist.</p><br />'; return false; } } }}