mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Mac: Adjust document path for new location
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22822 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1f7ef9d7a6
commit
2b8975adfe
@ -232,7 +232,7 @@ gnc_gnome_help (const char *dir, const char *detail)
|
|||||||
{
|
{
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
NSString *subdir = [NSString stringWithUTF8String: dir];
|
NSString *subdir = [NSString stringWithUTF8String: dir];
|
||||||
NSString *tag;
|
NSString *tag, *subdirectory;
|
||||||
NSURL *url = NULL;
|
NSURL *url = NULL;
|
||||||
|
|
||||||
if (detail)
|
if (detail)
|
||||||
@ -256,7 +256,7 @@ else if ([subdir compare: @HF_GUIDE] == NSOrderedSame)
|
|||||||
* add some more pieces, and put it all back together again. Then,
|
* add some more pieces, and put it all back together again. Then,
|
||||||
* because the gettext way of handling localizations is different from
|
* because the gettext way of handling localizations is different from
|
||||||
* OSX's, we have to figure out which translation to use. */
|
* 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]
|
NSString *prefix = [[[NSBundle mainBundle] resourcePath]
|
||||||
stringByDeletingLastPathComponent];
|
stringByDeletingLastPathComponent];
|
||||||
NSArray *prefix_comps = [[prefix pathComponents]
|
NSArray *prefix_comps = [[prefix pathComponents]
|
||||||
@ -271,8 +271,8 @@ if (![[NSFileManager defaultManager] fileExistsAtPath: docs_dir])
|
|||||||
{
|
{
|
||||||
const gchar *message =
|
const gchar *message =
|
||||||
_("GnuCash could not find the files for the help documentation. "
|
_("GnuCash could not find the files for the help documentation. "
|
||||||
"This is likely because the 'gnucash-docs' package is not installed.");
|
"This is likely because the 'gnucash-docs' package is not installed");
|
||||||
gnc_error_dialog(NULL, "%s", message);
|
gnc_error_dialog(NULL, "%s at %s", message, [docs_dir UTF8String]);
|
||||||
[pool release];
|
[pool release];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user