diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-01-22 01:37:11 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-01-22 01:37:11 -0300 |
commit | 6fd328ddaa61cd75c24cd2d9b8fdc0f73c7ab974 (patch) | |
tree | 04014253d528a8f8f79f7c26b02339e2945b20a5 /api/export.go | |
parent | c8d22ed1fba591e7a6b18afc5e6a6d541c11645c (diff) | |
download | chat-6fd328ddaa61cd75c24cd2d9b8fdc0f73c7ab974.tar.gz chat-6fd328ddaa61cd75c24cd2d9b8fdc0f73c7ab974.tar.bz2 chat-6fd328ddaa61cd75c24cd2d9b8fdc0f73c7ab974.zip |
Refactoring api to use translations (chunk 2)
- Add spanish translations
- Does not include tests
- Add func to get the translations for a user locale
Diffstat (limited to 'api/export.go')
-rw-r--r-- | api/export.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/export.go b/api/export.go index 77b821147..f2f8f87ab 100644 --- a/api/export.go +++ b/api/export.go @@ -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) } |