mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c78bf18998
commit
834825f406
5 changed files with 17 additions and 6 deletions
10
linux.c
10
linux.c
|
@ -84,9 +84,15 @@ const char *subsurface_default_filename()
|
|||
}
|
||||
}
|
||||
|
||||
const char *subsurface_gettext_domainpath()
|
||||
const char *subsurface_gettext_domainpath(char *argv0)
|
||||
{
|
||||
return "./share/locale";
|
||||
if (argv0[0] == '.') {
|
||||
/* we're starting a local copy */
|
||||
return "./share/locale";
|
||||
} else {
|
||||
/* subsurface is installed, so system dir should be fine */
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue