PLT-7: Refactoring models to use translations (chunk 6)

- Add spanish translations
Этот коммит содержится в:
Elias Nahum
2016-01-25 10:22:12 -03:00
родитель 7b3be6c77e
Коммит f33cff21cf
17 изменённых файлов: 1089 добавлений и 127 удалений

Просмотреть файл

@@ -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
}