Note that there are some explanatory texts on larger screens.

plurals
  1. POCultureInfo and (resx) Resource Files
    primarykey
    data
    text
    <p>Ive been using C#s (Visual Studios) resourcing mechanism and its worked nicely. I have a need to be able to use resources but instead of using CultureInfo as the determinator use something else. This is my current setup which works fine however I have to workout which Resource Manager to use. Either Brussels or Paris. The Resource Manager then works out which resource to use within Brussels or Paris to invoke. What I want is one resource manager for both, so I dont need to decide which resource manager to use. Part of the problem is the <strong>PublicResXFileCodeGenerator</strong> Custom Tool generates the code for you (which is very nice if you use the standard approach) </p> <p>This is what it currently looks like (This is working fine)</p> <blockquote> <p>Brussels Resources</p> <ul> <li>brussels.en-GB.resx</li> <li>brussels.ja-JP.resx</li> <li>brussels.fr-FR.resx</li> <li>brussels.resx</li> </ul> <p>Paris</p> <ul> <li>paris.en-GB.resx</li> <li>paris.ja-JP.resx</li> <li>paris.fr-FR.resx</li> <li>paris.resx</li> </ul> </blockquote> <p>I dont want to use the CultureInfo but instead specify my own resx identifier. Is there a way to do this using resx file? </p> <p>etc</p> <p>Brussels and Paris Resources</p> <blockquote> <ul> <li>MyResourceManager.brussels-en-GB.resx</li> <li>MyResourceManager.brussels-ja-JP.resx</li> <li>MyResourceManager.brussels-fr-FR.resx</li> <li>MyResourceManager.paris-en-GB.resx</li> <li>MyResourceManager.paris-ja-JP.resx</li> <li>MyResourceManager.paris-fr-FR.resx</li> <li>MyResourceManager.resx</li> </ul> </blockquote> <p>EDIT: An example of how I would like to use it (or something similar)</p> <blockquote> <p>MyResourceManager.Header</p> </blockquote> <p>instead of </p> <blockquote> <p>brussels.Header</p> <p>paris.Header</p> </blockquote> <p>An example of a similar problem but solved through Custom Cultures can be found here. <a href="https://stackoverflow.com/questions/3635390/how-to-load-different-resx-files-based-on-some-parameter">How to load different RESX files based on some parameter</a> I dont want to do this however as installing cultures on different machines is not an option. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload