Localization problem

edited 12:05PM in FastReport .NET
Hi.
I have some localization problem.
I created Windows.Forms.Form, Added DesignerControl and in DesignerForm_Load i added this code:
.....
string localePath = string.Format(@"{0}\{1}.frl", prop.LocalizationPath, prop.Language);
FastReport.Utils.Res.LoadLocale(localePath); //loading croatian
designerControl1.RefreshLayout();
.....

But when form shows the localization looks haotic. Some of the labels, menus etc., are on Croatian but some of them are on default language English.
If i change the location from menu everything is ok.
I have attached Print Screen of my form for better understanding (red is bad blue is ok).
I am using demo version of FastReport v1.3.51.0
Tnx.
fr.png 173.6K

Comments

  • edited 12:05PM
    Hello,

    You should call LoadLocale method before opening a designer (or before creating the DesignerControl).
  • edited 12:05PM
    tnx Alex

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.