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()
{
var fileName = (string)((Label)ComboBoxLocalizations.SelectedItem).Content;
StiOptions.Localization.Load(fileName);
}
...
Then, use
LoadLocalization()
method to localize the user interface:
...
private void ButtonShow_Click(object sender, RoutedEventArgs e)
{
LoadLocalization();
var report = new StiReport();
report.Load(@"Reports\SimpleList.mrt");
report.ShowWithWpf();
}
private void ButtonDesign_Click(object sender, RoutedEventArgs e)
{
LoadLocalization();
var report = new StiReport();
report.Load(@"Reports\SimpleList.mrt");
report.DesignV2WithWpf();
}
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen: