set_language

 
          set_language(string $language)  
This method defines the language of your generated report. Smart Report engine supports six languages which are:
"en", "de", "ar", "es", "fr" and "it". Smart Report Engine language files can be found at : "/sre_reports/shared/languages/".
# This method is available in both the community edition and the commercial edition .

# Note

English is the default report language. So, You don't need to call this method if you want to set English as the language of your report.

# Parameters

Parameter Description
$languageThe abbreviation of the desired language of the interface of your report. Supported languages are: "en", "de", "ar", "es", "fr" and "it".

# Returns

This method returns the calling object, so it can be chained with other methods in the ‘ReportOptions’ class

# Code Example

 
           $report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items", "items_sales"))
       ->add_relationship("items", "id", "items_sales", "item_id")
       ->set_language("fr")
       ->set_style_name("grey")
       ->select_all_fields();
$engine = new CustomEngine($report);
$report_path = $engine->create_report();