summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macos.c b/macos.c
index 585e879b0..fb760887f 100644
--- a/macos.c
+++ b/macos.c
@@ -104,8 +104,10 @@ const char *subsurface_default_filename()
}
}
-const char *subsurface_gettext_domainpath()
+const char *subsurface_gettext_domainpath(char *argv0)
{
+ /* on a Mac we ignore the argv0 argument and instead use the resource_path
+ * to figure out where to find the translation files */
static char buffer[256];
const char *resource_path = quartz_application_get_resource_path();
if (resource_path) {