Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   ASP.NET (http://www.programmingforums.org/forum35.html)
-   -   Global Application in different Languages (http://www.programmingforums.org/showthread.php?t=14455)

JO90 Nov 15th, 2007 3:23 AM

Global Application in different Languages
 
I want to write a "Global application", with strings that show on the webForm, according to the Culture of the user. {country they belong to}
I created a Web site.[Called 'KOP'] , I added a web Form.[called 'ZX.aspx']
I added a TextBox called 'TB1'.
I added a .resx[file] called APP.resx
I added another one called APP.en-US.resx [with strings in English]
I added another one called APP.it-IT [with strings in Italian]

I added 1 string in the GRID[of APP.resx] THAT SHOWS. [(NAME=)JO (value=)Bravo]
I added 1 string in the GRID[of APP.en-US.resx] THAT SHOWS. [(NAME=)JO (value=)INTELLIGENT]
I added 1 string in the GRID[of APP.it-IT.resx] THAT SHOWS. [(NAME=)JO (value=)Intelligente]




Then I wrote this code inside the PageLoad of my ZX.aspx[ [webForm]:

Dim QQ As ResourceManager = New ResourceManager("KOP.APP", GetType(ZX).Assembly)
TB1.Text = QQ.GetString("JO")





Now , when I run the WebForm a RunTime ERROR says:
"
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "CULTUREInfoClass.AppStrings.resources" was correctly embedded or linked into assembly "App_Web_b1eu8ty0" at compile time, or that all the satellite assemblies required are loadable and fully signed. "




What shall I do ?


I think there is No mistake in my procedure but the RunTime cannot find 'JO' [string].


EXPERTS of Globalization & localization
HELP HELP.

Jimbo Nov 15th, 2007 9:45 PM

Re: Global Application in different Languages
 
What version of ASP.NET are you using? The resource model changed a lot from 1.1 to 2.0 (for one thing, resource managers aren't used anymore). If you're using 2.0, the links on this page might help.

JO90 Nov 16th, 2007 7:13 AM

Re: Global Application in different Languages
 
:icon_mrgreen:
Quote:

Originally Posted by Jimbo (Post 136886)
What version of ASP.NET are you using? The resource model changed a lot from 1.1 to 2.0 (for one thing, resource managers aren't used anymore). If you're using 2.0, the links on this page might help.


Thanks .....BUT
I have followed the steps suggested by your link....and it seems that my resourceFILEs are not embedded in the main assembly.

What shall I do to correctly embed resourceFiles in a web Site ?
It says just put them in the App_GlobalResources Folder.
I already DID......what is missing then ? [CLR cannot find them , it says :
"System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "z_GL.JO.resources" was correctly embedded or linked into assembly "App_Web_dbrakfgx" at compile time, or that all the satellite assemblies required are loadable and
fully signed."
]





Apart from putting resources in APP_GlobalResources Folder.....what shall I do ?
:mrgreen:


I am using Visual Studio 2005 and .NETframework 2.0.


All times are GMT -5. The time now is 3:35 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC