Author: lluis
Date: 2008-01-24 04:50:47 -0500 (Thu, 24 Jan 2008)
New Revision: 93773

Modified:
   branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog
   
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
Log:
2008-01-24  Lluis Sanchez Gual <[EMAIL PROTECTED]> 

        * MonoDevelop.Core/GettextCatalog.cs: Fix logic that determines the 
location
          of locale directory.



Modified: branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog   
2008-01-24 09:49:58 UTC (rev 93772)
+++ branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/ChangeLog   
2008-01-24 09:50:47 UTC (rev 93773)
@@ -1,3 +1,8 @@
+2008-01-24  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Core/GettextCatalog.cs: Fix logic that determines the 
location
+         of locale directory.
+
 2008-01-21  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Core/FileService.cs: Make NotifyFileChanged safer against

Modified: 
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
===================================================================
--- 
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
  2008-01-24 09:49:58 UTC (rev 93772)
+++ 
branches/monodevelop/main/1.0/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
  2008-01-24 09:50:47 UTC (rev 93773)
@@ -44,8 +44,9 @@
                        if (string.IsNullOrEmpty (catalog)) {
                                string location = 
System.Reflection.Assembly.GetExecutingAssembly ().Location;
                                location = Path.GetDirectoryName (location);
-                               //adding "../.." should give us $prefix
-                               string prefix = Path.Combine (Path.Combine 
(location, ".."), "..");
+                               // MD is located at $prefix/lib/monodevelop/bin
+                               // adding "../../.." should give us $prefix
+                               string prefix = Path.Combine (Path.Combine 
(Path.Combine (location, ".."), ".."), "..");
                                //normalise it
                                prefix = Path.GetFullPath (prefix);
                                //catalogue is installed to 
"$prefix/share/locale" by default

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to