Page 1 of 1

How to define the language “pt-BR” in “Win Forms”?

Posted: Thu Sep 28, 2006 10:41 am
by JohnJohnJuvenal
Working with “StimulReport.Net” in “Windows Forms”, I have problems, would like to always fix the language pt-BR (Portuguese Brazil), but in some computers texts in EN are shown (English).


in:
...
Stimulsoft.Report.StiReport report
...
report.GlobalizationManager.Culture = new System.Globalization.CultureInfo("pt-BR");
report.RegData(ds);

stiPreview.Report = report;
report.Render();
...

this codigo does not function. the texts of the buttons always are in English

:brick:


*erro from brazil.... lol

How to define the language “pt-BR” in “Win Forms”?

Posted: Thu Sep 28, 2006 11:53 pm
by Vital
Hello!

First way:

Copy to your application dirrectory folder "Localization". In this folder place file br.xml.

Second way:

At start of your program place this code:

StiConfig.LoadLocalization("br.xml");

(This code requre latest prerelease build).

Thank you.