freebsd-ports/games/cataclysm-dda/files/patch-src-translations.cpp
Steve Wills 6b91da65fe games/cataclysm-dda: update, fix build, add SDL option
While here, give maintainership to submitter

PR:		226418
Submitted by:	Greg V <greg@unrelenting.technology>
2018-09-20 05:04:03 +00:00

11 lines
461 B
C++

--- src/translations.cpp.orig 2018-03-06 08:11:44 UTC
+++ src/translations.cpp
@@ -176,7 +176,7 @@ void set_language()
// Step 2. Bind to gettext domain.
std::string locale_dir;
-#if (defined __linux__ || (defined MACOSX && !defined TILES))
+#if (defined __linux__ || defined __FreeBSD__ || (defined MACOSX && !defined TILES))
if( !FILENAMES["base_path"].empty() ) {
locale_dir = FILENAMES["base_path"] + "share/locale";
} else {