Refactoring api to use translations (chunk 2)

- Add spanish translations
- Does not include tests
- Add func to get the translations for a user locale
This commit is contained in:
Elias Nahum
2016-01-22 01:37:11 -03:00
parent c8d22ed1fb
commit 6fd328ddaa
14 changed files with 2537 additions and 652 deletions

View File

@@ -267,7 +267,7 @@ func copyDirToExportWriter(writer ExportWriter, inPath string, outPath string) *
} else {
fromFile, err := os.Open(inPath + "/" + fileInfo.Name())
if err != nil {
return model.NewAppError("copyDirToExportWriter", "api.export.open.app_error", err.Error())
return model.NewLocAppError("copyDirToExportWriter", "api.export.open.app_error", nil, err.Error())
}
io.Copy(toFile, fromFile)
}