question

Lauris-3082 avatar image
0 Votes"
Lauris-3082 asked Lauris-3082 commented

App service globalization culture="lv-lv"

Hi,

I recently migrated web app from premise to Azure App service. Today users reported that there is issue with currency label accross all site. After troubleshooting - I found out that if I set culture for application to "lv-lv" in web.config, like this:
<globalization uiCulture="lv" culture="lv-lv" requestEncoding="utf-8" responseEncoding="utf-8" />

Then OLD Latvia's currency "Lats" or "Ls" is displayed as currency.
The correct currency is "Euro".

How to solve this?

Best regards,
Lauris

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT answered Lauris-3082 commented

Hello @Lauris-3082,

We apologize deeply for the delay in response.


If you're using ASP.NET 4.6, please try this in your web.config :

 <configuration>
     <system.web>
         <globalization uiCulture="lv" culture="lv-LV" />
     </system.web>
 </configuration>


or a second option would be to specify a handler in the Global.asax file which would set the Culture and UI Culture for each request:


  protected void Application_BeginRequest()
     {
         Thread.CurrentThread.CurrentCulture = new CultureInfo("lv");
         Thread.CurrentThread.CurrentUICulture = new CultureInfo("lv");
     }

If your app is running on ASP.NET 5 please read this documentation.


Hope that helps. Please let us know if you have further questions.

Thanks,
Grace


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

Thank you for response. I do not have access to source code and application shuld be used on ASP.NET 3.5.

If I add:

<configuration>
<system.web>
<globalization uiCulture="lv" culture="lv-LV" />
</system.web>
</configuration>

Then currency displayed eq Lats (Ls),

Best regards,
Lauris

0 Votes 0 ·