AUDIT: r22822 - gnucash/trunk/src/gnome-utils - Mac: Adjust document path for new location

John Ralls jralls at code.gnucash.org
Sat Mar 2 20:50:57 EST 2013


Author: jralls
Date: 2013-03-02 20:50:57 -0500 (Sat, 02 Mar 2013)
New Revision: 22822
Trac: http://svn.gnucash.org/trac/changeset/22822

Modified:
   gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
Mac: Adjust document path for new location

BP

Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2013-03-02 14:03:42 UTC (rev 22821)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2013-03-03 01:50:57 UTC (rev 22822)
@@ -232,7 +232,7 @@
 {
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
 NSString *subdir = [NSString stringWithUTF8String: dir];
-    NSString *tag;
+NSString *tag, *subdirectory;
     NSURL *url = NULL;
 
     if (detail)
@@ -256,7 +256,7 @@
          * add some more pieces, and put it all back together again. Then,
          * because the gettext way of handling localizations is different from
          * OSX's, we have to figure out which translation to use. */
-NSArray *components = [NSArray arrayWithObjects: @"share", @"gnome", @"help", @"gnucash", nil ];
+NSArray *components = [NSArray arrayWithObjects: @"share", @"doc", @"gnucash-docs", nil ];
         NSString *prefix = [[[NSBundle mainBundle] resourcePath]
                             stringByDeletingLastPathComponent];
         NSArray *prefix_comps = [[prefix pathComponents]
@@ -271,8 +271,8 @@
         {
             const gchar *message =
                 _("GnuCash could not find the files for the help documentation.  "
-                  "This is likely because the 'gnucash-docs' package is not installed.");
-            gnc_error_dialog(NULL, "%s", message);
+                  "This is likely because the 'gnucash-docs' package is not installed");
+            gnc_error_dialog(NULL, "%s at %s", message, [docs_dir UTF8String]);
             [pool release];
             return;
         }



More information about the gnucash-changes mailing list