Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can I make a resx library?

How can I make a resx library?

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studiojsonhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gonzalo Cao
    wrote on last edited by
    #1

    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.

    L 1 Reply Last reply
    0
    • G Gonzalo Cao

      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.

      L Offline
      L Offline
      Lukasz Nowakowski
      wrote on last edited by
      #2

      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? ;-)

      G 1 Reply Last reply
      0
      • L Lukasz Nowakowski

        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? ;-)

        G Offline
        G Offline
        Gonzalo Cao
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups