The invention provides for a method for producing reports for business
intelligence that adapt automatically to a context, defined by a locale
variable. A parameter map is defined, based on locale key and field
names, and a report layout is produced that contains one or more
macrotized database language expressions that include partial expressions
built using the parameter map. Later, once a user selects a locale, the
partial expression resulting from a lookup in the parameter map using the
locale is used to modify one or more macrotized database language
expressions. Finally, the resulting valid database language expressions
are applied to the database to produce a report.