MM-23706 search executable dir before working dir when looking for i18n (#14241)
* MM-23706 search executable dir before working dir when looking for i18n
Этот коммит содержится в:
@@ -44,7 +44,7 @@ func InitTranslations(localizationSettings model.LocalizationSettings) error {
|
||||
}
|
||||
|
||||
func InitTranslationsWithDir(dir string) error {
|
||||
i18nDirectory, found := fileutils.FindDir(dir)
|
||||
i18nDirectory, found := fileutils.FindDirRelBinary(dir)
|
||||
if !found {
|
||||
return fmt.Errorf("Unable to find i18n directory")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user