summaryrefslogtreecommitdiffstats
path: root/model/file_info.go
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-01-25 10:22:12 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-01-25 10:22:12 -0300
commitf33cff21cf41ed060783e1eaad6c1c4838216ed2 (patch)
treed69baef96371c2e23b65ecbbccb221161d8d2fb7 /model/file_info.go
parent7b3be6c77e622dedab0b8d8c1d5fd0e7aa76de46 (diff)
downloadchat-f33cff21cf41ed060783e1eaad6c1c4838216ed2.tar.gz
chat-f33cff21cf41ed060783e1eaad6c1c4838216ed2.tar.bz2
chat-f33cff21cf41ed060783e1eaad6c1c4838216ed2.zip
PLT-7: Refactoring models to use translations (chunk 6)
- Add spanish translations
Diffstat (limited to 'model/file_info.go')
-rw-r--r--model/file_info.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/file_info.go b/model/file_info.go
index 741b4e55d..131baff6d 100644
--- a/model/file_info.go
+++ b/model/file_info.go
@@ -36,7 +36,7 @@ func GetInfoForBytes(filename string, data []byte) (*FileInfo, *AppError) {
if mimeType == "image/gif" {
// just show the gif itself instead of a preview image for animated gifs
if gifImage, err := gif.DecodeAll(bytes.NewReader(data)); err != nil {
- return nil, NewAppError("GetInfoForBytes", "Could not decode gif.", "filename="+filename)
+ return nil, NewLocAppError("GetInfoForBytes", "model.file_info.get.gif.app_error", nil, "filename="+filename)
} else {
hasPreviewImage = len(gifImage.Image) == 1
}