Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fabio Blardone 79 posts 98 karma points
    Jun 24, 2011 @ 11:48
    Fabio Blardone
    0

    .Net UserControl & Languages

    Hello everybody!

    i've tryed the example in umbraco.tv "Using .NET User Controls" for languages in a usercontrol but give me some errors such as: Error from compiler: in the Resource namespace already exist a definition of class; etc..

    I have these files in the solution:

    App_GlobalResources
          Project.resx
          Project.en-EN.resx

    I empty the code of Project.en-EN.Designer.cs but still not work :(

    Anyone could explain me how can i manipulate languages in a usercontrol? Are there other ways?

    Thanks

    Cheers

    Fabio

  • Richard 146 posts 168 karma points
    Jun 24, 2011 @ 12:53
    Richard
    0

    I used the method that Umbraco uses, and created a new project which I have then reused, to get an external XML file with the translations. Alternatively could you use the Umbraco dictionary method within your code.

    Richard

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Jun 24, 2011 @ 13:14
    Michael Latouche
    0

    Hi Fabio,

    Could you maybe post the entire error message? This might help identify the problem.

    Are these two files the only ones under App_GlobalRersources? Because if you have sevral ones, they cannot have the same names, even in subdirectories under App°GlobalResources.

    Cheers,

    Michael.

  • Fabio Blardone 79 posts 98 karma points
    Jun 27, 2011 @ 12:30
    Fabio Blardone
    0

    Richard it's a good idea, Thanks !

    Michael i found the solution, i have these files:

    App_GlobalResources
            Project.resx
            Project.it-IT.resx

    In the Project.resx i store the english words.. And then run correctly with the domains mapping ! However I still can not understand what was my mistake previously..

    Cheers,

    Fabio

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Jun 27, 2011 @ 13:01
    Michael Latouche
    0

    Hi Fabio,

    One more mystery of software I guess ;-)

    Good to hear you sorted it out!

    Cheers,

    Michael.

Please Sign in or register to post replies

Write your reply to:

Draft