Developing a system for a Bolivian company, on a windows with culture pt-BR
, some objects like datetimepicker
have their internal components according to the language in which the system was installed.
Home
And in my case, when this system was installed in Bolivia, no windows will have as culture es-BO
, so it would need a way through code that the exchange of culture is made so that these objects have their components with texts in Spanish and not with the culture and that the system was installed.
According to the documentation this culture exchange must occur before the components are initialized (% w / o%) with the following lines of code:
Thread.CurrentThread.CurrentCulture = new CultureInfo("es-BO");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-BO");
But even using this solution, my result continued being the texts of the object all in Portuguese. The exchange comes to occur but the system "automatically" returns the culture to the initial? or am I making this trade the wrong way?