$OpenBSD: patch-src_mumble_main_cpp,v 1.2 2017/02/28 15:35:22 dcoppa Exp $

Fix loading of translation files

--- src/mumble/main.cpp.orig	Fri Jan 27 13:29:08 2017
+++ src/mumble/main.cpp	Tue Feb 28 16:04:48 2017
@@ -334,7 +334,8 @@ int main(int argc, char **argv) {
 		a.installTranslator(&translator);
 
 	QTranslator loctranslator;
-	if (loctranslator.load(QLatin1String("mumble_") + locale, a.applicationDirPath()))
+	QString localeDir = QLatin1String(MUMTEXT(LOCALE_PATH));
+	if (loctranslator.load(QLatin1String("mumble_") + locale, localeDir))
 		a.installTranslator(&loctranslator);
 
 	QTranslator qttranslator;
