Hello Everyone,
I am working on website development in asp.net. where i have used Master Page concept and content page. and by using dropdownlist I am changing its language.
I am working on website development in asp.net. where i have used Master Page concept and content page. and by using dropdownlist I am changing its language.
Folder Hierarchy :
-----------------------------------------------------------------------------------------------------------------
Solution Localization Demo Solution Localization Demo
Localization Demo Localization Demo
App_Code App_Code
App_Data App_Data
App_GlobalRsources App_GlobalRsources
App_LocalResources App_LocalResources
ContentPage.aspx.ar.resx ContentPage.aspx.ar.resx
ContentPage.aspx.hi.resx ContentPage.aspx.hi.resx
ContentPage.aspx.de.resx ContentPage.aspx.de.resx
MasterPage.aspx.ar.resx MasterPage.aspx.ar.resx
MasterPage.aspx.hi.resx MasterPage.aspx.hi.resx
MasterPage.aspx.de.resx MasterPage.aspx.de.resx
Bin Bin
PagesFolder ContentPage.aspx
ViewPagesFolder ContentPage.aspx.cs
ContentPage.aspx MasterPage.master
ContentPage.aspx.cs MasterPage.master,cs
MasterPagesFolder web.config
MasterPage.master
MasterPage.master.cs
web.config
----------------------------------------------------------------------------------------------------------------
Fig .No. 1 (with Pages Folder) Fig .No. 2 (Without Pages Folder)
-----------------------------------------------------------------------------------------------------------------
but if I changed something like [refer fig. no. 1 ] added one folder and add actual content file inside it. then website stops localization process.
how to call that App_LocalResource Files.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 4, 2013, 12:47 AM EDT
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 3, 2013, 10:10 PM EDT
Please refer the below link. It is showing the easiest way to implement localization.
http://www.codeproject.com/Articles/15991/An-Easy-Introduction-to-Localization-in-ASP-NET-2
Regards,
Iftikar
Rohit More11 reputationPosted Jul 3, 2013, 10:43 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 3, 2013, 11:16 PM EDT
Lets say you want to change language either English (United States) or German (Germany).
The culture name from this: en-US and de-DE.
So you create two resource file under App_GlobalResources as
ProjectResources.en-US.resx and
ProjectResources.de-DE.resx
In your aspx page