One more Windows Translator fix.
This commit is contained in:
parent
5be1b103cb
commit
f934cc4d68
@ -90,6 +90,7 @@ func (t *Translator) Initialize() {
|
||||
// Load translations into memory.
|
||||
func (t *Translator) loadTranslations() {
|
||||
fmt.Println("Loading translations for language " + t.Language)
|
||||
fmt.Println("Translations directory: " + t.translationsPath)
|
||||
|
||||
t.translations[t.Language] = make(map[string]string)
|
||||
|
||||
|
@ -37,7 +37,7 @@ func (t *Translator) detectLanguage() {
|
||||
func (t *Translator) detectTranslationsDirectory() error {
|
||||
// Translations MUST reside in directory neear binary!
|
||||
// ToDo: more checks.
|
||||
t.translationsPath, _ = filepath.Abs(filepath.Dir(os.Args[0]))
|
||||
t.translationsPath, _ = filepath.join(filepath.Abs(filepath.Dir(os.Args[0])), "translations")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user