From fddb30b9392d6d5c11039d0bbfdc55fca28c6bd1 Mon Sep 17 00:00:00 2001 From: Stanislav Nikitin Date: Thu, 9 Feb 2017 03:05:18 +0500 Subject: [PATCH] One more try to fix Windows's Translator. --- translator/translator_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translator/translator_windows.go b/translator/translator_windows.go index e678cec..b3d3972 100644 --- a/translator/translator_windows.go +++ b/translator/translator_windows.go @@ -37,7 +37,8 @@ func (t *Translator) detectLanguage() { func (t *Translator) detectTranslationsDirectory() error { // Translations MUST reside in directory neear binary! // ToDo: more checks. - t.translationsPath, _ = filepath.join(filepath.Abs(filepath.Dir(os.Args[0])), "translations") + dir, _ := filepath.Abs(filepath.Dir(os.Args[0])) + t.translationsPath = filepath.join(dir, "translations") return nil }