getProjectCommon()); #***************************************************************************** # # template.php # # Author: Denis Roy # Date: 2005-06-16 # # Description: Type your page comments here - these are not sent to the browser # # #**************************************************************************** # # Begin: page-specific settings. Change these. $pageTitle = "Eclipse BIRT Home"; $pageKeywords = ""; $pageAuthor = ""; # Add page-specific Nav bars here # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3) # $Nav->addNavSeparator("My Page Links", "downloads.php"); # $Nav->addCustomNav("My Link", "mypage.php", "_self", 3); # $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 3); # End: page-specific settings # require "download.inc"; global $viewer; global $birtHome; global $buildPath; $langDir = "langpacks2.5.0"; $buildDir = $_GET['build']; // TODO: Do latest release if none specified. $iniLangConfigFile = "langconfig.ini"; $langInfo = parse_ini_file( $iniLangConfigFile ); if( $langInfo [ $buildDir ] != ""){ $iniFile = $langInfo [ $buildDir ] . "/lang.ini"; $langDir = $langInfo [ $buildDir ]; }else{ $iniFile = "langpacks2.5.0" . "/lang.ini"; } $buildInfo = parse_ini_file( $iniFile ); $fileTimeStamp = filemtime( $iniFile ); $haschartNLpack1 = $buildInfo [ "chartNLpack1" ] != ""; $hasruntimeNLpack1 = $buildInfo [ "runtimeNLpack1" ] != ""; $hasframeworkNLpack1 = $buildInfo [ "frameworkNLpack1" ] != ""; $hasrcpNLpack1 = $buildInfo [ "rcpNLpack1" ] != ""; $hasallInOneNLpack1 = $buildInfo [ "allInOneNLpack1" ] != ""; $hasallInOneNLpack2 = $buildInfo [ "allInOneNLpack2" ] != ""; $hasallInOneNLpack2a = $buildInfo [ "allInOneNLpack2a" ] != ""; $hasallInOneNLpackBidi = $buildInfo [ "allInOneNLpackBidi" ] != ""; $hasrcpNLpack2 = $buildInfo [ "rcpNLpack2" ] != ""; $hasrcpNLpack2a = $buildInfo [ "rcpNLpack2a" ] != ""; $hasrcpNLpackBidi = $buildInfo [ "rcpNLpackBidi" ] != ""; $hasruntimeNLpack2 = $buildInfo [ "runtimeNLpack2" ] != ""; $hasruntimeNLpack2a = $buildInfo [ "runtimeNLpack2a" ] != ""; $hasruntimeNLpackBidi = $buildInfo [ "runtimeNLpackBidi" ] != ""; $haschartNLpack2 = $buildInfo [ "chartNLpack2" ] != ""; $haschartNLpack2a = $buildInfo [ "chartNLpack2a" ] != ""; $haschartNLpackBidi = $buildInfo [ "chartNLpackBidi" ] != ""; $hasChartNLpack1Overlay = $buildInfo [ "ChartNLpack1Overlay" ] != ""; $hasAllInOneNLpack1Overlay = $buildInfo [ "AllInOneNLpack1Overlay" ] != ""; $hasFrameworkNLpack1Overlay = $buildInfo [ "FrameworkNLpack1Overlay" ] != ""; $hasRCPNLpack1Overlay = $buildInfo [ "RCPNLpack1Overlay" ] != ""; $hasframeworkNLpack2 = $buildInfo [ "frameworkNLpack2" ] != ""; $hasframeworkNLpack2a = $buildInfo [ "frameworkNLpack2a" ] != ""; $hasframeworkNLpackBidi = $buildInfo [ "frameworkNLpackBidi" ] != ""; $hasframeworksdkNLpack1 = $buildInfo [ "frameworksdkNLpack1" ] != ""; $hasframeworksdkNLpack2 = $buildInfo [ "frameworksdkNLpack2" ] != ""; $hasframeworksdkNLpack2a = $buildInfo [ "frameworksdkNLpack2a" ] != ""; $hasframeworksdkNLpackBidi = $buildInfo [ "frameworksdkNLpackBidi" ] != ""; function buildTable( $proj ) { global $birtPath; global $buildInfo; global $buildPath; global $langInfo; global $langDir; $rtn = ""; $ok = $buildInfo[ $proj . "OK" ]; if ( $ok ) $icon = "OK.gif"; else $icon = "FAIL.gif"; $baseName = $buildInfo[ $proj ]; $rtn = "
Availability
Platform Download
All "; $basePath = $langDir . "/". $baseName; $fileName = $basePath . ".zip"; if ( $ok && file_exists( $fileName ) ) { $rtn = $rtn . " $baseName.zip"; } else { $rtn = $rtn . "None" . $fileName; } $fileName = $basePath . ".md5"; if ( $ok && file_exists( $fileName ) ) { $rtn = $rtn . "   (md5)"; } $rtn = $rtn . "
"; return( $rtn ); } $html_allinone = ""; if ( $hasallInOneNLpack1 ) { $html_allinone = "

Language Pack for Report Designer Full Eclipse Install

NLPack1 - Language pack for the Report Designer Full Eclipse Install.

"; $html_allinone = $html_allinone . buildTable( "allInOneNLpack1" ); if ( $hasAllInOneNLpack1Overlay ){ $html_allinone = $html_allinone . "

NLPack1 - Language pack feature overlay for the Report Designer Full Eclipse Install.

"; $html_allinone = $html_allinone . buildTable( "AllInOneNLpack1Overlay" ); } } if ( $hasallInOneNLpack2 ) { $html_allinone = $html_allinone . "

NLPack2 - Language pack for the Report Designer Full Eclipse Install.

"; $html_allinone = $html_allinone . buildTable( "allInOneNLpack2" ); } if ( $hasallInOneNLpack2a ) { $html_allinone = $html_allinone . "

NLPack2a - Language pack for the Report Designer Full Eclipse Install.

"; $html_allinone = $html_allinone . buildTable( "allInOneNLpack2a" ); } if ( $hasallInOneNLpackBidi ) { $html_allinone = $html_allinone . "

NLPackBidi - Language pack for the Report Designer Full Eclipse Install.

"; $html_allinone = $html_allinone . buildTable( "allInOneNLpackBidi" ); } $html_framework = ""; if ( $hasframeworkNLpack1 ) { $html_framework = $html_framework . "

Language Pack for the Report Designer

NLPack1 - Language pack for the Report Designer.

"; $html_framework = $html_framework . buildTable( "frameworkNLpack1" ); if ( $hasFrameworkNLpack1Overlay ){ $html_framework = $html_framework . "

NLPack1 - Language pack feature overlay for the Report Designer.

"; $html_framework = $html_framework . buildTable( "FrameworkNLpack1Overlay" ); } } if ( $hasframeworkNLpack2 ) { $html_framework = $html_framework . "

NLPack2 - Language pack for the Report Designer.

"; $html_framework = $html_framework . buildTable( "frameworkNLpack2" ); } if ( $hasframeworkNLpack2a ) { $html_framework = $html_framework . "

NLPack2a - Language pack for the Report Designer.

"; $html_framework = $html_framework . buildTable( "frameworkNLpack2a" ); } if ( $hasframeworkNLpackBidi ) { $html_framework = $html_framework . "

NLPackBidi - Language pack for the Report Designer.

"; $html_framework = $html_framework . buildTable( "frameworkNLpackBidi" ); } $html_rcp = ""; if ( $hasrcpNLpack1 ) { $html_rcp = $html_rcp . "

Language Pack for RCP Report Designer

NLPack1 - Language pack for the RCP Report Designer.

"; $html_rcp = $html_rcp . buildTable( "rcpNLpack1" ); if ( $hasRCPNLpack1Overlay ){ $html_rcp = $html_rcp . "

NLPack1 - Language pack feature overlay for the RCP Report Designer.

"; $html_rcp = $html_rcp . buildTable( "RCPNLpack1Overlay" ); } } if ( $hasrcpNLpack2 ) { $html_rcp = $html_rcp . "

NLPack2 - Language pack for the RCP Report Designer.

"; $html_rcp = $html_rcp . buildTable( "rcpNLpack2" ); } if ( $hasrcpNLpack2a ) { $html_rcp = $html_rcp . "

NLPack2a - Language pack for the RCP Report Designer.

"; $html_rcp = $html_rcp . buildTable( "rcpNLpack2a" ); } if ( $hasrcpNLpackBidi ) { $html_rcp = $html_rcp . "

NLPackBidi - Language pack for the RCP Report Designer.

"; $html_rcp = $html_rcp . buildTable( "rcpNLpackBidi" ); } $html_runtime = ""; if ( $hasruntimeNLpack1 ) { $html_runtime = $html_runtime . "

Language Pack for the Report Engine

NLPack1 - Language pack for the Report Engine.

"; $html_runtime = $html_runtime . buildTable( "runtimeNLpack1" ); } if ( $hasruntimeNLpack2 ) { $html_runtime = $html_runtime . "

NLPack2 - Language pack for the Report Engine.

"; $html_runtime = $html_runtime . buildTable( "runtimeNLpack2" ); } if ( $hasruntimeNLpack2a ) { $html_runtime = $html_runtime . "

NLPack2a - Language pack for the Report Engine.

"; $html_runtime = $html_runtime . buildTable( "runtimeNLpack2a" ); } if ( $hasruntimeNLpackBidi ) { $html_runtime = $html_runtime . "

NLPackBidi - Language pack for the Report Engine.

"; $html_runtime = $html_runtime . buildTable( "runtimeNLpackBidi" ); } $html_chart = ""; if ( $haschartNLpack1 ) { $html_chart = $html_chart . "

Language Pack for the Chart Engine

NLPack1 - Language pack for the Chart Engine.

"; $html_chart = $html_chart . buildTable( "chartNLpack1" ); if ( $hasChartNLpack1Overlay ){ $html_chart = $html_chart . "

NLPack1 - Language pack feature overlay for the Chart Engine.

"; $html_chart = $html_chart . buildTable( "ChartNLpack1Overlay" ); } } if ( $haschartNLpack2 ) { $html_chart = $html_chart . "

NLPack2 - Language pack for the Chart Engine.

"; $html_chart = $html_chart . buildTable( "chartNLpack2" ); } if ( $haschartNLpack2a ) { $html_chart = $html_chart . "

NLPack2a - Language pack for the Chart Engine.

"; $html_chart = $html_chart . buildTable( "chartNLpack2a" ); } if ( $haschartNLpackBidi ) { $html_chart = $html_chart . "

NLPackBidi - Language pack for the Chart Engine.

"; $html_chart = $html_chart . buildTable( "chartNLpackBidi" ); } # Paste your HTML content between the EOHTML markers! $html = <<

Installing


Installing BIRT Language Packs on Windows

Only NLpack1, which contains six languages, is available for 2.5.0. Other languages can use the 2.1.1 language packs.
NLpack1 - Contains the NL fragments and the NL features that contain those fragments for: German, Spanish, French, Japanese, Korean, and Simplified Chinese.

  1. Download the Language Pack for the desired product and extract into your eclipse install.
  2. Open the Regional and Language Options in the Control Panel and switch to the advanced tab.
  3. Select the group 1 language you desire from the drop-down combo box.
  4. Save changes and restart the system.
  5. Launch Eclipse and select Window->Preferences->BIRT->Preview. Select the desired language from the drop-down combo box.
  6. Restart Eclipse.


Language Pack Notes:

NLpack1 - Contains the NL fragments and the NL features that contain those fragments for: German, Spanish, French, Japanese, Korean, and Simplified Chinese.
NLpack2 - Contains the NL fragments and the NL features that contain those fragments for: Czech, Hungarian, Polish and Russian.
NLpack2a - Contains the NL fragments and the NL features that contain those fragments for: Danish, Dutch, Finnish, Greek, Norwegian, Portuguese, Swedish and Turkish.
NLpackBidi - Contains the NL fragments and the NL features that contain those fragments for: Arabic and Hebrew (note that Hebrew is only for Eclipse runtime, GEF runtime and EMF runtime).

$html_allinone $html_framework $html_rcp $html_runtime $html_chart EOHTML; # Generate the web page $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); ?>