One more try to fix Windows's Translator.

This commit is contained in:
Stanislav Nikitin 2017-02-09 03:05:18 +05:00
parent f934cc4d68
commit fddb30b939

View File

@ -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
}