translations on macOS: use path relative to executable for finding .po files

Together with the additions of building `libiconv` and a complete
`gettext` in `build.sh` in revision
e17cbecb16, this enables the use of all
available interface translations on macOS.

Fixes #2110, #2307, #2323.
This commit is contained in:
Moritz Bunkus 2018-06-16 22:19:07 +02:00
parent e17cbecb16
commit c9e95d272b
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# Version ?
## New features and enhancements
* macOS: translations: updated the `build.sh` script to build `libiconv` and a
complete `gettext`. Together with an additional fix to how translation files
are located, MKVToolNix can now use all interface languages on macOS,
too. Fixes #2110, #2307, #2323.
## Bug fixes
* MKVToolNix GUI: header editor: non-mandatory elements couldn't be removed

View File

@ -374,6 +374,8 @@ init_locales(std::string locale) {
# if defined(MTX_APPIMAGE)
locale_dir = (mtx::sys::get_installation_path() / ".." / "share" / "locale").string();
# elif defined(SYS_APPLE)
locale_dir = (mtx::sys::get_installation_path() / "locale").string();
# else
locale_dir = MTX_LOCALE_DIR;
# endif // MTX_APPIMAGE