summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-18 14:30:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-18 14:30:45 -0700
commit834825f4061b1d74f6925233cdf9d1be1fdcc8f7 (patch)
treef68942e383dc44432be1115c29abe997f271f3a9 /main.c
parentc78bf189985b89941aab1861145b99f7f61c2013 (diff)
downloadsubsurface-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 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 379b35280..880f5f5cc 100644
--- a/main.c
+++ b/main.c
@@ -230,7 +230,7 @@ int main(int argc, char **argv)
/* set up l18n - the search directory needs to change
* so that it uses the correct system directory when
* subsurface isn't run from the local directory */
- path = subsurface_gettext_domainpath();
+ path = subsurface_gettext_domainpath(argv[0]);
setlocale( LC_ALL, "" );
bindtextdomain("subsurface", path);
bind_textdomain_codeset("subsurface", "utf-8");