Author: lluis
Date: 2008-01-24 04:49:58 -0500 (Thu, 24 Jan 2008)
New Revision: 93772
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
Log:
* MonoDevelop.Core/GettextCatalog.cs: Fix logic that determines the
location of locale directory.
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog 2008-01-24
09:49:31 UTC (rev 93771)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog 2008-01-24
09:49:58 UTC (rev 93772)
@@ -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:
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
2008-01-24 09:49:31 UTC (rev 93771)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/GettextCatalog.cs
2008-01-24 09:49:58 UTC (rev 93772)
@@ -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