One more try to fix Windows's Translator.
This commit is contained in:
parent
f934cc4d68
commit
fddb30b939
@ -37,7 +37,8 @@ func (t *Translator) detectLanguage() {
|
|||||||
func (t *Translator) detectTranslationsDirectory() error {
|
func (t *Translator) detectTranslationsDirectory() error {
|
||||||
// Translations MUST reside in directory neear binary!
|
// Translations MUST reside in directory neear binary!
|
||||||
// ToDo: more checks.
|
// 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
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user