diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-10-18 14:30:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-10-18 14:30:45 -0700 |
commit | 834825f4061b1d74f6925233cdf9d1be1fdcc8f7 (patch) | |
tree | f68942e383dc44432be1115c29abe997f271f3a9 /macos.c | |
parent | c78bf189985b89941aab1861145b99f7f61c2013 (diff) | |
download | subsurface-834825f4061b1d74f6925233cdf9d1be1fdcc8f7.tar.gz |
Find translation files on Linux after Subsurface was installed
So far we only looked in the a local subdirectory, but once Subsurface has
been installed, we don't need to change the search path for translation
files anymore.
Fixes #2
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
-rw-r--r-- | macos.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |