----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Swami_SRS Message 1 in Discussion Hi group, I have been trying to implement localzation in one of my asp.net pages for the past 2 days and it is not working the way it has to. I am not able to figure out where i am going wrong. Here's how i did it. Method 1: 1. In VS.NET, I added a resx file called Language.resx.( my default resx. file) 2. then i added a res file called Language.fr-FR.resx. (My specific file) 3. In the both the files i add a key called language with its value as "Default" (in default res) and "French" ( in the sepcific res file) respectively. 4. In the page load i set the currentUICulture of the thread to "fr-FR" using createSpecificCulture method. 5. I load the resource using the resourcemanager and access the value for the key "Language" Once i compile the project, and access the aspx i am always getting the string value as "Default" even if i set the currentUICulture to fr-FR. I am not sure why this comes up instead of "French".I checked the folders and the resource dlls have been generated in the proper locations under the bin folder. Method 2: 1. Here i excluded second resource file from the above existing project, and using the resgen.exe created a .resources file, namely Language.resources. 2. Then, using al.exe i converted the just created .resources file into a .dll with the name as Sample.Resrc.resources.dll 3. I deployed the dll generated into the fr-FR folder. Here again when i access the page, i am getting only "Default" as the message and not "French". Other Info: RootNamespace: Sample AssemblyName: Sample.Resrc:dll Res file : Language.resx. AL.exe command: al.exe /t:lib /out:Sample.resrc.resources.dll /culture:fr-FR /version:1.0.5000.0 /embed:Language.fr-FR.resx,Sample.Resrc.resources Please get back to me if u have any questions. TIA, Swami. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
