Skip to content

Commit

Permalink
Mac: Adjust document path for new location
Browse files Browse the repository at this point in the history
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22822 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
jralls committed Mar 3, 2013
1 parent 1f7ef9d commit 2b8975a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gnome-utils/gnc-gnome-utils.c
Expand Up @@ -232,7 +232,7 @@ gnc_gnome_help (const char *dir, const char *detail)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *subdir = [NSString stringWithUTF8String: dir];
NSString *tag;
NSString *tag, *subdirectory;
NSURL *url = NULL;

if (detail)
Expand All @@ -256,7 +256,7 @@ else if ([subdir compare: @HF_GUIDE] == NSOrderedSame)
* 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]
Expand All @@ -271,8 +271,8 @@ if (![[NSFileManager defaultManager] fileExistsAtPath: docs_dir])
{
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;
}
Expand Down

0 comments on commit 2b8975a

Please sign in to comment.