How can I make a resx library?
-
Hi everyone, I'm making an application that will be translated to a ton of languages, and the thing is that it has a main project and 5 more that provide funcionality. Until here everything is fine, but a lot of texts are repeated on the different projects. To solve this I thought of creating a project only for storing .resx files and expose them to the rest of the solution, this way I don't need to repeat the text for every solution. My problem is that by default visual studio creates a class that has an 'internal' modifier and wouldn't let me see it from different projects. Is there any way I can switch the modifier to public for the class that gives me access to the localization files or any simple work around?? Thanks a lot in advance.
-
Hi everyone, I'm making an application that will be translated to a ton of languages, and the thing is that it has a main project and 5 more that provide funcionality. Until here everything is fine, but a lot of texts are repeated on the different projects. To solve this I thought of creating a project only for storing .resx files and expose them to the rest of the solution, this way I don't need to repeat the text for every solution. My problem is that by default visual studio creates a class that has an 'internal' modifier and wouldn't let me see it from different projects. Is there any way I can switch the modifier to public for the class that gives me access to the localization files or any simple work around?? Thanks a lot in advance.
In Visual Studio, when you open resx file, on top you have buttons "Strings", "Add Resource"... and on the right there should be a drop down with label "Access modifier". Do I have to explain more? ;-)
-
In Visual Studio, when you open resx file, on top you have buttons "Strings", "Add Resource"... and on the right there should be a drop down with label "Access modifier". Do I have to explain more? ;-)
Thanks for the quick reply! But this seems to be a VS2008 feature (that or then I really need to get my glasses fixed), my bad for not specifying my Visual Studio version :(( Anyhow I got myself a way to do this: http://blogs.msdn.com/b/lifenglu/archive/2006/03/16/553348.aspx, I post it just in case someone happens to find the same issue. Thank you very much anyhow.