Firefox sends wrong language code -- how can I catch this?

Hi all,

I am trying to localize a website for Nynorsk (nn-NO, which is the second official language in Norway). The problem is, while Internet Explorer sends the right code, Firefox (most current version) only sends "nn".

ASP.NET's internal internationalization routines don't accept this. Creating a /App_GlobalResources/Resource.nn.resx file throws a compilation error (CS0101: The namespace 'Resources' already contains a definition for 'Resource'), and querying Thread.CurrentThread.CurrentCulture.Name inside InitializeCulture() even returns "nb-NO" (Bokmål, which is Norway's primary official language).

Does anybody know how to handle this? Is there a way I can catch the "nn" before it is converted into "nb-NO" by ASP.NET, so that I can properly transform it into "nn-NO"?

Thanks, Peter

0
pbb
1/24/2008 10:11:10 AM
asp.net.localization 2171 articles. 0 followers. Follow

4 Replies
503 Views

Similar Articles

[PageSpeed] 3

Ok, it's not only Firefox. Opera even goes as far as sending "no-nyn" as language code, which is also not understood by ASP.NET. This seems like a pretty significant problem,but I can't find any information about it on internet...

Anybody who can help me?

 

0
pbb
1/24/2008 12:01:11 PM

hi,

 Check if firefox support "nb-NO" culture or  not .

Go to Firefox  - Tools - Options - Languages- choose- and check in the dropdown list.

I think Firefox doesn't support  "nb-NO"  culture

 Thanks,

Satish

0
satishambition
1/25/2008 8:10:30 AM

Firefox supports both Bokmål (nb-no in ASP.NET) and Nynorks (nn-no in ASP.NET), but calls them just "nb" and "nn" respectively...

Both of these (nb and nn) are interpreted as Bokmål by ASP.NET.

0
pbb
1/25/2008 11:46:45 AM

Yes, you can create a custom base page.  In that page, override the InitializeCulture subroutine, and you have complete access to the request object at the point, and can set the culture to anything you want.

Then have all your other pages inherit from that page instead of System.UI.Page.

However, in ASP.NET the parent culture of "nb-NO" is "no" which is the generic norweign culture.  Therefore the fallback rules for nb-NO would be: nb-NO -> no -> website default.

I'm afraid I'm not well versed enough in norweign or the relationships of the primary/secondary languages used there to be of much help.

0
Motley
1/28/2008 10:41:10 PM
Reply:

Similar Artilces:

can anyone please send interview questions on VB.net language?
Thanx! Your best resource is Google. Try searching for VB.NET questions and you'll get 100s of links like: http://www.geekinterview.com/Interview-Questions/Microsoft/VB-NET HTH, VivekSocial Networking Platform in ASP.NET || Join now: CodeASP.NET Community Please mark the most helpful reply/replies as "Answer"....

Fwd: Bug#311117: mozilla-firefox-locale-all: Wrong order of language preferences
Hi, we have been reported at Debian that some Firefox lozalizations include a wrong order in the language preferences. Piotr Karwasz, who wrote the report, was so kind to make a list of the concerned locales, describing the specific problem in each one. Should I create a bug report in bugzilla.mozilla.org (agains which package?), or is it not necessary after this email? Regards, Cesar ---------- Mensaje reenviado ---------- Subject: Bug#311117: mozilla-firefox-locale-all: Wrong order of language preferences Date: S�bado 28 Mayo 2005 21:54 From: "Piotr P. Kar...

SMTPMAIL.Send Wont send, i donno if im blocked?? Is their somewhere else i can send it to make sure my code works??
im behind bell sympatico,   my ports are ma[pped and all that   im trying to send an easy email to my hotmail account, ive tried a couple others i donno if its because the reciving smtp server is blocking public (dynamic) IP's Probably it is, i donno where else i can send it that they dont block me, im just trying to make sure it works, i dont get any bugs and stuff so im assuming it is just being blocked any help??? somthingnottaken421: im behind bell sympatico,   my ports are ma[pped and all that   im trying to send an easy email to my hotmail a...

Fennec localization for three-character language code locales
Hi everyone, I hope you're all well. I have some exciting news about Fennec localization! The release of the Android 5.0 platform included new build tools within the Android SDK. These build tools now support building three-character language codes into multilocale apps. This is a big win for Mozilla l10n teams whose language is classified with a three-character language code and allows us to expand language coverage beyond what has ever been done before on mobile! As with many things, there is a bit of a catch here. Because these build tools are specific to the Androi...

(if a language dont have native support ;how can we localize website to that language)
Hi all if a language dont have native support from .NET  ;how can we localize website to that language i am looking to localize my website in a particular language but for that language i got  a locid only  (please see the previous post). regards anee CultureAndRegionInfoBuilder http://msdn.microsoft.com/en-us/library/ms172469.aspx    ...

can you tell me where to download the open code of the .net pet stores and .net book stores
Hello,I have heard that the .net pet store and .net book stores are very usefull for one to learn asp.net .So I hope that someone can give me the url address to downloal them.    Thank you very much. Enterprise code samples - those and more.Leon LangleybenMCSD, ASP.NET MVPBlog Thank you very much!                            ...

can someone translate this code from c# to vb.net
what's this in vb.net ? string str = ((TextBox)this.LoginView1.FindControl("Login1$UserName")).Text; I'm using the CreateUserWizard and in addition to adding a record to  aspnet_membership table I want to add a record to my customer details table. In this record I want to include the UserName and Email fields from aspnet_membership table. I found the above code,any suggestions as to how I can access these fields for insertion to my customer details table appriciated. Code snippets appriciated Thanks Daviddavid"paddling upstream searching for the s...

Can someone tells what is wrong with this code? I am trying to insert a boolean value into sql express... see the code.
I have a form and in that form I have checkbuttonList with a value of True and False that I am trying to insert into a boolean field using sql 2005 express and this is the error I kept on getting. I have been working on this for over three months now and I getting desperate.  Insert Error: Column name or number of supplied values does not match table definition. and here is the code behind I used... ' Add picture to foldersubAddNewPicture(imageUpload, strFileName, "Gallery") ' Add the record to the database UpdateCategory(VisibleCheckBox.SelectedValue, strFileNam...

how to compile web app so I can send it to a graphic designer and he can run the app without the C# code
What would be the best way to let a graphic designer work on my web app. I have worked for quite a while on the database, the BLL and DAL. I am also using code-behind in my aspx pages. Now I am ready to have a graphic designer apply his magic but I don’t want him to be able to rip me off. What would be the best way of sending him the aspx pages so he can work on the look and feel.   The database is on a server that can be accessed from the web. Can I compile it so he only gets the necessary files to run the website? For example  could he then if he has the free version of Visual ...

How can I build mini firefox? without network,without java. it can only view local html files.
...

Can any one Tell Me Concept of Master Pages & can send me code to create a simple Master Page
Can any one Tell Me Concept of Master Pages & can send me code to create a simple Master Page !!! i m new to ASP.NET 1.x and 2.0 pls help me thnx jayJay "Enjoy Life" http://msdn2.microsoft.com/library/wtxbf3hh.aspx...

Translate c#.net code to vb.net code
Hi I can usually do the translation myself, but this time I am a bit stumped  Let us consider to rewrite Urls (more than 16000 links) using a table. Save original url and rewritten url in a table. Now add a class file in App_Code folder. class UrlRewriteModule : IHttpModule{    public void Dispose()    {        // Nothing to dispose    }    public void Init(HttpApplication context)    {        context.BeginRequest += new EventHandler(context...

How to convert C#.Net code to VB.Net code ???...
HI, i was searching something new, then i suddenly find some tips to convert C#.Net code to VB.Net but i did not do well. i am puttint its url here plz tell me how to convert C#.Net code to VB.Net. http://www.dotnetspider.com/code/C-273-Convert-C-VB-NET.aspx Jasim...Please remember to click “Mark as Answer” on the post that helps youJasim AkhtarNew Delhi ( INDIA ) It would be better if you write the problem you having, while converting from C# to VB.NET. You cannot completely rely on online converters. ThanksMark post(s) as "Answer" that helped youElectronic ScrewWebsite||Bl...

net send in .net
Hi,  I am trying to execute net send comman in my vb.net code. But I am getting "win32 exception unhandled error". Please help me. My code is:Dim psi As New ProcessStartInfo() psi.UseShellExecute = False psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test" Process.Start(psi)  Thanks in advance! Shwetha Tryu changing   psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test&quo...

Web resources about - Firefox sends wrong language code -- how can I catch this? - asp.net.localization

Language - Wikipedia, the free encyclopedia
Language is the human capacity for acquiring and using complex systems of communication , and a language is any specific example of such a system. ...

The Eero Programming Language
Interesting new programming language from Andy Arvanitis: Eero is a fully binary- and header-compatible dialect of Objective-C, implemented ...


Microsoft Translator gets “conversation” feature, live translation in 7 languages
... Google a run for its money - at least in regions where Mandarin, English, French German, Italian, Portuguese, and Spanish are primary languages. All ...

The real-world origins of the names and languages in 'Star Wars'
... of Episode VII: The Force Awakens , we’ve done some intergalactic etymology to discover the origins of the character names, cultures and languages ...

Soccer coach equips players with iPads to overcome language barrier
With his ability to fire people up and get them motivated, Steve Jobs has been likened to a great football coach. And now to bring things full ...

Oscars: Foreign Language Shortlist Sees ‘Son Of Saul’, ‘A War’ Advance; ‘The Club’, ‘The Assassin’ & ...
... Academy of Motion Picture Arts and Sciences has released the shortlist of nine films that will advance to the next stage in the Foreign Language ...

Google Now on Tap Gets Quick Flight and Order Tracking, Related Articles, and More Languages
... if you need to read additional information on a story you are currently reading, you’ll get suggestions. And finally, Google is adding language ...

Try the knowledge-based Wolfram Language for free in your browser
Wolfram Open Cloud, announced and made available earlier this week, makes Wolfram Language even easier to access and try. Here's what you need ...

Inside A Robot Eyeball, Science Will Decode Our Body Language
... are often secondary: In fact, scientists believe that non-verbal cues represent two-thirds of the way we communicate. Yet this non-verbal language ...

Resources last updated: 12/18/2015 9:29:54 AM