Gå til innhold

Firefox, Nynorsk & ASP.NET


Anbefalte innlegg

Hi all,

 

Hopefully someone here can help me.

 

I'm developing some pages in ASP.NET (v2) and would include localization for Nynorsk (nn-no). However, I see that Firefox (2.0.0.11) sends out "nn" for Nynorsk instead of "nn-no", and ASP.NET does not allow me to create resource pages for "nn" (like App_GlobalResources/resource.nn.resx, I get a compilation error "CS0101: The namespace 'Resources' already contains a definition for 'Resource'" if I try that).

 

Everything works fine with Internet Explorer, which uses "nn-no" for Nynorsk.

 

Does anybody know what to do?

 

Thanks, Peter

Lenke til kommentar
Videoannonse
Annonse

You might be able to fix this by setting the corrent localization in BeginRequest in global.asax ?

System.Thread.Thread.Current.CurrentCulture = new CultureInfo("nn-no"); (or something)

 

Or you could possibly create a http module to change the request before it hits your pages.

 

This dirty fix might be sufficient until Fx and Opera fixes their browsers...

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...