Windows build fix.
This commit is contained in:
parent
9273273b49
commit
5d3fb76f0f
@ -23,7 +23,6 @@ package translator
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// stdlib
|
// stdlib
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
@ -37,7 +36,7 @@ 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.Abs(filepath.Dir(os.Args[0]))
|
t.translationsPath, _ = filepath.Abs(filepath.Dir(os.Args[0]))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user