diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-19 10:10:15 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-19 10:10:15 +0200 |
commit | 61d02a395b0ca594640f0fb917d7162a5aba2c37 (patch) | |
tree | 7dd6f7f540dda3d89d37bc7e19f3f4d27dd53c85 /src/main.cpp | |
parent | 5da59b807d9840fb23feb42df729bf5e88ee9678 (diff) | |
parent | ac0b338b3e026d0d05a447894de9a6a994da82dc (diff) | |
download | mana-61d02a395b0ca594640f0fb917d7162a5aba2c37.tar.gz mana-61d02a395b0ca594640f0fb917d7162a5aba2c37.tar.bz2 mana-61d02a395b0ca594640f0fb917d7162a5aba2c37.tar.xz mana-61d02a395b0ca594640f0fb917d7162a5aba2c37.zip |
Merge branch 'master' into online-player-listonline-player-list
Conflicts:
src/net/tmwa/chathandler.cpp
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 68a6b0c3..935f2d89 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,6 +37,10 @@ #include <winnls.h> #endif +#ifdef __APPLE__ +#include "utils/specialfolder.h" +#endif + static void printHelp() { using std::endl; @@ -213,7 +217,14 @@ static void initInternationalization() #endif // _WIN32 setlocale(LC_MESSAGES, ""); + +#ifdef __APPLE__ + const auto translationsDir = getResourcesLocation() + "/Translations"; + bindtextdomain("mana", translationsDir.c_str()); +#else bindtextdomain("mana", LOCALEDIR); +#endif + bind_textdomain_codeset("mana", "UTF-8"); textdomain("mana"); #endif // ENABLE_NLS |