Local resources in different "path level"?

 Hmm, I'm working on making my site multi-languages..
 - btw. Mjello there :)

To decide which language there should be chosen, make the user able to change it etc. is working just find, but then I ran into I wanted to put some text in a local resource file for a file which wasn't in the root.. (e.g. /folder/thisfile.aspx)
Where should I then put the local resource file??

I have more files with same name(in different folders, e.g. /folder/thisfile.aspx and /folder2/thisfile.aspx)

- Is the only way to put it in a global resource, or am I able to use local resource?

 Hope you understand my problem
Best regards Jeppe Richardt..


----------------
Regards,
Jeppe Richardt
0
jeppe_r
4/30/2009 8:28:29 PM
asp.net.localization 2171 articles. 0 followers. Follow

2 Replies
491 Views

Similar Articles

[PageSpeed] 29

Every subfolder should have its own App_LocalResources folder. Just right-click on the folder in solution explorer and choose "add", "Add ASP.Net folder", "App_LocalResources".

Your resources then should be named "thisfile.aspx.resx". To use other languages, add more resource files with the culture name added:

"thisfile.aspx.en.resx" or "thisfile.aspx.en-US.resx".

It is no problem having files with the same name, as long as they are not in the same folder. As I described above, every folder has its own subfolder with resources, and thus every file has its own resource file.

 A global resource file is used for strings and other resources that are used application-wide; you can have only one App_GlobalResources folder with global resource files and that folder must be at the root level.


http://www.istruction.nl
0
Heleboel
5/1/2009 12:05:55 PM

 Of course ^^

Why didn't I think of that.. hmm..
Anyway thank you :)


----------------
Regards,
Jeppe Richardt
0
jeppe_r
5/1/2009 1:09:37 PM
Reply:

Similar Artilces:

"Locale" & "Language" differences?
Hi, I'm back again ... :-) I've another question, this time regarding languages. With 6.0.2, we are deploying the English DBMS to a number of languages, and it obviously doesn't work unless you set up an environment variable or change the registry to make it run in English. My question is this; are there any differences between setting an environment variable of "SQLLOCALE=lang=EN", and putting "EN" into the "Language" registry-key? Some of our overseas customers are currently using different sort-orders than English, so they would need (...

superreview granted: [Bug 341239] Change "LOCALIZATION NOTES" to "LOCALIZATION NOTE" : [Attachment 225266] Patch
David Bienvenu <bienvenu@nventure.com> has granted Simon Montagu <smontagu@smontagu.org>'s request for superreview: Bug 341239: Change "LOCALIZATION NOTES" to "LOCALIZATION NOTE" https://bugzilla.mozilla.org/show_bug.cgi?id=341239 Attachment 225266: Patch https://bugzilla.mozilla.org/attachment.cgi?id=225266&action=edit ...

superreview requested: [Bug 341239] Change "LOCALIZATION NOTES" to "LOCALIZATION NOTE" : [Attachment 225266] Patch
Simon Montagu <smontagu@smontagu.org> has asked for superreview: Bug 341239: Change "LOCALIZATION NOTES" to "LOCALIZATION NOTE" https://bugzilla.mozilla.org/show_bug.cgi?id=341239 Attachment 225266: Patch https://bugzilla.mozilla.org/attachment.cgi?id=225266&action=edit ...

superreview requested: [Bug 341239] Change "LOCALIZATION NOTES" to "LOCALIZATION NOTE" : [Attachment 225266] Patch #2
Simon Montagu <smontagu@smontagu.org> has asked David Bienvenu <bienvenu@nventure.com> for superreview: Bug 341239: Change "LOCALIZATION NOTES" to "LOCALIZATION NOTE" https://bugzilla.mozilla.org/show_bug.cgi?id=341239 Attachment 225266: Patch https://bugzilla.mozilla.org/attachment.cgi?id=225266&action=edit ...

[ID 19991104.004] "local %MYPKG::;" causes $MYPKG::FOO and ${"MYPKG::FOO"} to differ
Here's a program that uses the statement "local %MYPKG::;", and then finds that the variables $MYPKG::FOO and ${"MYPKG::FOO"} have different values. I don't see how this can ever correctly happen to a package variable. It prints the following output: "" "" "green" "green" "red" "red" "red" "" "blue" "" "blue" "yellow" "blue" "blue" when it should, in my opinion, print this: "" "" "...

bool NetworkCredential.Authenticate("userA", "pass", "domainX.local");
if you have say a domain user "userA" with password "pass123" that belongs to domain "domainX.local". Is there a way that you can query the domain controller to verify whether or not this user "userA" along with his password "pass123" are valid credentials? I stumble upon a way that sounds more like a trick rather than an actual authentication mechanism. The way is to use NetworkCredential to access an IIS resource. The IIS resource could be anything (an empty html page, image, etc..) with its security set to windows authentication. Is there like a better way tha...

"Firefox in your country" survey to localize in a few locales
Hi, Here is a new user survey to localize: https://bugzilla.mozilla.org/show_bug.cgi?id=452042 Strings to localize for the "Firefox in your country" survey The locales we target for this survey are: de | en-GB | es-ES | id | pl | pt-BR Thanks Pascal Working on pt-BR []s On Mon, Aug 25, 2008 at 6:24 AM, pascal <pascal.chevrel@free.fr> wrote: > Hi, > > Here is a new user survey to localize: > > https://bugzilla.mozilla.org/show_bug.cgi?id=3D452042 > Strings to localize for the "Firefox in your country" survey > >...

Slowdown of "sort keys %hash" under "use locale"
--Sig_/r7wgwqCsk4QPzP3QA6AyouH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable So, I was just presented an interesting slowdown in perl-5.8 that is still present in blead. The slowdown happens when sorting the keys of a hash and when the code is run under 'use locale'. mhx@r2d2 $ cat sorttest.pl=20 $code =3D shift; %words =3D map { chomp; ($_ =3D> 1) } <>; ($t0) =3D times; eval "\@s =3D $code \%words"; ($t1) =3D times; printf "sorting %d words using [ $code ] took %.2f seconds\n", ...

Always "safe" to run "Repair Local Database"????
I have read many TIDs about NDS corruption after running "repair local Database" in DSrepair. In the course of performing an NDS "Health Check" prior to upgrading from NetWare 5.0 to NetWare 5.1, I came up with several obituaries (DEAD and BACKLINKED) when I "Checked External References". Now I don't know how to get rid of them, and am afraid to corrupt the NDS database on this server by performing "Repair Local Database". Thanks On Tue, 07 Dec 2004 22:37:55 GMT, rsims@appliedtm.com wrote: >I have read many TIDs about NDS cor...

What is the difference between "for " and "foreach"
I always confused when should I use "for" and when foreach should be used...when we talking about efficient which one is better to use?thank you  its quite the same just a different way howto, never done or read about big differences about the both options:  string [] n = new string[] {"test1", "test2"} foreach(string a in n)   .... for(int i=0;i< i<n.Length;++i)   ....regards, roni---speed up your applications with distributed caching or replicated caching: http://www.sharedcache.com - its free! thank you , How about efficien...

Localized graphics (12 locales) for "Hello", need review
Hi, web devs are currently working on a new set of pages for Firefox Hello, which is going to be officially launched with Firefox 35 on January 13. Hopefully we'll have strings ready for localization before next week. The idea is to create some graphics using a localized "Hello": two bubbles (like Hello's icon in the browser), one using Latin script, the other using a non Latin script. Unfortunately we can't create an image for each locale, so we picked 12 of them based on number of users and type of script: ar, de, el, es-ES, fr, it, ja, pl, pt-BR, ru, tr...

How to make "Local Intranet" and "%" invisible in the right bottom of page?
There are two little images called "Local Intranet"(or internet) and "%" at the right bottom of browser. How to make them invisible? Its part of the web browser.The local intranet part is the browsers security zone you are in  and the % is the zoom control To add further, you can NOT make them invisible, unless you write your own browser. NC...    Or press F11 rtpHarry:  Or press F11 No -- Have the user press F11 NC...  ...

Uh-oh! What is the path to "Local Folders"?
I've messed up. What is the path to "Local Folders"? Thanks. Phalbe Henriksen On 10-01-31 12:40 PM, Phalbe Henriksen wrote: > I've messed up. What is the path to "Local Folders"? > > Thanks. [ProfD]Mail/Local Folders [ProfD] is your profile directory. To help you find your profile directory, see <http://www.mozilla.org/support/thunderbird/profile>. -- Chris Ilias <http://ilias.ca> List-owner: support-firefox, support-thunderbird, test-multimedia Keeper of the Knowledge Base: <https://support.mozilla.com/kb/> Thi...

Using "ALL" as a userID/resource in a local GWCheck?
Is "ALL" not supported in stand alone GW8 GWCheck? Is it no longer reserved UserID/Resource? It was in GW65 and 7 (not sure). Gert Owner, independent consultant www.GWCheck.com "the best GW site" - Tay Kratzer gert@gwcheck.com 1677@gwpoa.com Skype, Twitter, Facebook: GWCheck "How should I know if it works? That's what beta testers are for. I only coded it." - Linus Torvalds Gert, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has...

Web resources about - Local resources in different "path level"? - asp.net.localization

Resources last updated: 1/19/2016 8:54:52 PM