The Locale File

The static text content displayed by the report wizard at runtime can be customized and modified by use of the report wizard's LocaleFile property. e.g.
objWiz.LocaleFile = "locale.xml"
The Locale file which can reside anywhere on your network, contains the text and title definitions displayed by the generated reports. Note:
  1. If the locale file is not set, the report wizard will use it's default settings which are all basically English text.
  2. If the locale file is set, but the file does not exists in the specified location, the report wizard will create a locale file with the name specified with the default english definitions. We will add other languages as soon as we get them translated.
    If you have translated a copy of the locale file, you can send a copy to support@aspwebsolution.com so that we can include it the build.
You can then conveniently switch your reports from on language to the other as follows:
<%
If CBool(Session("UseImages")) Then
    strLocaleFile = "locale_images.xml"
Else
    If Session("Lang") = "German" Then
        strLocaleFile = "locale_german.xml"
    Else
        strLocaleFile = "locale.xml"
    End If
End If
%>
The report wizard's default locale file, looks like the output below:

**********************************************************************************
*          locale.xml
**********************************************************************************

<Locale version="1.0">
<!--
wizard button text
  -->
  <CloseText>Close</CloseText>
  <HomeText>Home</HomeText>
  <BuildText>Build Report</BuildText>
<!--
wizard button tooltips
  -->
  <CloseTitle>Close window</CloseTitle>
  <BuildTitle>Edit report properties</BuildTitle>
  <HomeTitle>Return home</HomeTitle>
<!--
grid filter button text
  -->
  <FilterButtonText>Go</FilterButtonText>
  <FilterButtonTextPopUp>Search</FilterButtonTextPopUp>
  <FilterButtonTitlePopUp>Filter this report</FilterButtonTitlePopUp>
  <ResetFiltersText>Reset filters</ResetFiltersText>
 
<!--
grid filter text
  -->
  <ContainsText>contains</ContainsText>
  <IsEqualToText>is equal to</IsEqualToText>
  <IsNotEqualToText>is not equal to</IsNotEqualToText>
  <IsGreaterThanText>is greater than</IsGreaterThanText>
  <IsLessThanText>is less than</IsLessThanText>
<!--
popup filter labels
  -->
  <FilterFieldText>Field</FilterFieldText>
  <FilterConditionText>Condition</FilterConditionText>
  <FilterValueText>Value</FilterValueText>
<FilterUseORText>
<![CDATA[
Use <b>OR</b>
  ]]>
  </FilterUseORText>
<!--
grid filter status text
  -->
<FiltersLabelText>
<![CDATA[
<b>Filter(s):</b>
  ]]>
  </FiltersLabelText>
<!--
grid sort status text
  -->
<SortOrderLabelText>
<![CDATA[
<b>Sort Order:</b>
  ]]>
  </SortOrderLabelText>
  <SortOrderAscText />
<SortOrderDescText>
<![CDATA[
<i>descending</i>
  ]]>
  </SortOrderDescText>
<!--
grid summary status text
  -->
<SummaryLabelText>
<![CDATA[
<b>Summary:</b>
  ]]>
  </SummaryLabelText>
<!--
grid navigation button text
  -->
  <FirstText>« First</FirstText>
  <PrevText>«</PrevText>
  <NextText>»</NextText>
  <LastText>Last »</LastText>
  <ResetText>Reset</ResetText>
  <ReloadText>Reload</ReloadText>
  <PageCountText>Page @CurrentPage of @NumOfPages (@NumOfRecs recs)</PageCountText>
  <PageSizeText>Page Size:</PageSizeText>
  <ShowPageNumbers>True</ShowPageNumbers>
<!--
grid navigation button title
  -->
  <FirstTitle>Go to the first page</FirstTitle>
  <PrevTitle>Previous page</PrevTitle>
  <NextTitle>Next page</NextTitle>
  <LastTitle>Go to the last page</LastTitle>
  <ResetTitle>Reset grid and go to first page</ResetTitle>
  <ReloadTitle>Reload grid</ReloadTitle>
<!--
grid header button text
  -->
<RefreshText>
<![CDATA[
<font face="MS OUTLOOK">C</font>
  ]]>
  </RefreshText>
  <SortColAscText>+</SortColAscText>
  <SortColDescText>-</SortColDescText>
<!--
grid header button title
  -->
  <RefreshTitle>Refresh grid</RefreshTitle>
  <SortColAscTitle>Click to sort ascending</SortColAscTitle>
  <SortColDescTitle>Click to sort descending</SortColDescTitle>
  <RemoveSortTitle>Remove this sort</RemoveSortTitle>
<!--
grid export button text
  -->
  <PrintText>Print</PrintText>
  <PrintTitle />
  <XLSText>Excel</XLSText>
  <XLSTitle />
  <CSVText>CSV</CSVText>
  <CSVTitle />
  <XMLText>XML</XMLText>
  <XMLTitle />
  <TXTText>Text</TXTText>
  <TXTTitle />
  <PDFText>PDF</PDFText>
  <PDFTitle />
  <DOCText>Word</DOCText>
  <DOCTitle />
<!--
graph paging buttons
  -->
  <GraphPagingText>View Current</GraphPagingText>
  <GraphPagingTitle>View only current records</GraphPagingTitle>
  <RemoveGraphPagingText>View All</RemoveGraphPagingText>
  <RemoveGraphPagingTitle>View all records</RemoveGraphPagingTitle>
<!--
 database objects labels
  -->
  <TablesText>Tables</TablesText>
  <AllowedTablesText>Allowed Tables</AllowedTablesText>
  <ViewsText>Views</ViewsText>
  <StoredProceduresText>Stored Procedures</StoredProceduresText>
  <AllowedProceduresText>Allowed Procedures</AllowedProceduresText>
  </Locale>
...

See Also