Menu

GettextNet in ASP.NET

2013-04-03
2013-04-03
  • Patrick McEvoy

    Patrick McEvoy - 2013-04-03

    Hi there,

    Firstly, awesome job :)

    Secondly, I was having problems with ASP.NET project using xsp and mono on linux. Using Assembly.GetCallingAssembly().Location returns the location of the shadow copy and so (as you would expect) it can't then find the locale directories/libraries. As a very quick hack I changed GNU.Gettext/intl.cs:142 to AppDomain.CurrentDomain.BaseDirectory.

    Should I create another ctor overload to handle this situation? Or have a ASP.NET flag? What ya think?

    Cheers Patrick

     
  • arbinada

    arbinada - 2013-04-03

    Hi Patrick,
    Thank you for feedback.
    I have some similar issues on IIS/ServiceStack services.
    In my case, including compiled assemblies in project fixed the problem.
    I.e. in root of your ASP.Net project in Visual Studio you add following folders and files:

    \en
      \myapp.messages.dll
    \fr
      \myapp.messages.dll
    

    Mark output properties for DLL as "Copy if newer" then build.

    Is it help for you?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.