Same resource file can be used for multiple pages by placing them in App_GlobalResources.
Global resource file formats are:
name.language.resx
name.language-culture.resx
Also make below note:
Resource files under App_LocalResources are used for storing information that is not repeated accross pages, whereas App_GlobalResources is used for storing site-wide content or content that is duplicated on multiple pages.
If we put all of our content only in global resource files then we will be overloading App_GlobalResources and it can grow in size and making it difficult to manage and update. For large application having lot of content in single
resource file, there can be performance impact.
Please Mark as Answer if my post helps you..!
Thanks,
Prashanth Reddy
Marked as answer by Unseendreamzzz on Feb 05, 2013 02:28 PM
so there is no solution in which i handl my requirment in 2 resource files
Unless you code the translation feature by your own function, otherwise, you have to create the resource files for each page in order to use the localization features provided by ASP.NET.
No matter how much time you spend on coding. Wish you happy coding.
My Technical Blog
Unseendreamz...
Member
258 Points
175 Posts
multi language website in asp.net 4.0
Feb 02, 2013 10:58 AM|LINK
Salam!
I watn to develop a website i which there is 5 pages and i want to 5 pages in english and parsian language
i have 2 resource file one for english and 2nd for parsian for my default.aspx page
should i use these resource file for othar pages or i have create other 2 resource file for every page
please if any one can help me with example
rimagandhi
Participant
1826 Points
583 Posts
Re: multi language website in asp.net 4.0
Feb 02, 2013 11:10 AM|LINK
You have to create resource fille for each five pages.
Regards
Rima Gandhi.
Software Developer.
Unseendreamz...
Member
258 Points
175 Posts
Re: multi language website in asp.net 4.0
Feb 02, 2013 11:15 AM|LINK
so there is no solution in which i handl my requirment in 2 resource files
rimagandhi
Participant
1826 Points
583 Posts
Re: multi language website in asp.net 4.0
Feb 02, 2013 11:24 AM|LINK
As far as i knw you have to create individual resource file for eacgh page..
Regards
Rima Gandhi.
Software Developer.
PrashanthRed...
Member
559 Points
96 Posts
Re: multi language website in asp.net 4.0
Feb 02, 2013 12:54 PM|LINK
Hi,
Same resource file can be used for multiple pages by placing them in App_GlobalResources.
Global resource file formats are:
name.language.resx
name.language-culture.resx
Also make below note:
Resource files under App_LocalResources are used for storing information that is not repeated accross pages, whereas App_GlobalResources is used for storing site-wide content or content that is duplicated on multiple pages.
If we put all of our content only in global resource files then we will be overloading App_GlobalResources and it can grow in size and making it difficult to manage and update. For large application having lot of content in single resource file, there can be performance impact.
Thanks,
Prashanth Reddy
CruzerB
Contributor
5399 Points
1098 Posts
Re: multi language website in asp.net 4.0
Feb 02, 2013 01:14 PM|LINK
Hi,
Unless you code the translation feature by your own function, otherwise, you have to create the resource files for each page in order to use the localization features provided by ASP.NET.
My Technical Blog