Merge pull request #695 from andreasb242/mac-menu

Load translation on mac
presentation
andreasb242 7 years ago committed by GitHub
commit 6ea2e54139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/control/XournalMain.cpp

@ -50,6 +50,12 @@ void XournalMain::initLocalisation()
#define PACKAGE_LOCALE_DIR "../share/locale/"
#endif
#ifdef __APPLE__
#undef PACKAGE_LOCALE_DIR
Path p = Stacktrace::getExePath();
p /= "../Resources/share/locale/";
const char* PACKAGE_LOCALE_DIR = p.c_str();
#endif
bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
textdomain(GETTEXT_PACKAGE);

Loading…
Cancel
Save