This sample project demonstrates how to localize the user interface. First of all, use
StiOptions.Localization.Load()
method to load localization file:
private void LoadLocalization()
{
StiOptions.Localization.Load(comboBoxLocalizations.Text);
}
...
Then, use
LoadLocalization()
method to localize the user interface:
...
private void ButtonShow_Click(object sender, EventArgs e)
{
LoadLocalization();
var report = new StiReport();
report.Load(@"Reports\SimpleList.mrt");
report.Show();
}
private void ButtonDesign_Click(object sender, EventArgs e)
{
LoadLocalization();
var report = new StiReport();
report.Load(@"Reports\SimpleList.mrt");
report.Design();
}
In the screenshot below you can see the result of the sample code: