Skip to content

Instantly share code, notes, and snippets.

@ValeriaVG
Created October 27, 2016 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ValeriaVG/81f1936284e0afff1139bfe6c6833560 to your computer and use it in GitHub Desktop.
Save ValeriaVG/81f1936284e0afff1139bfe6c6833560 to your computer and use it in GitHub Desktop.
Dropzone Custom upload form russian language
Dropzone.autoDiscover = false;
$(function() {
// Now that the DOM is fully loaded, create the dropzone, and setup the
// event listeners
var myDropzone = new Dropzone("#my-dropzone", {
dictDefaultMessage: "Перетащите файлы для загрузки в это поле",
dictFallbackMessage: "К сожалению, ваш браузер не поддерживает Drag'n'Drop",
dictFallbackText: "Пожалуйста, воспользуйтесь старой доброй формой для загрузки",
dictFileTooBig: "Файл слишком большой({{filesize}}MB). Максимальный допустимый размер файла {{maxFilesize}}MB",
dictInvalidFileType: "Вы не можете загружать файлы этого типа.",
dictResponseError: "Произошла ошибка при загрузке файла. Попробуйте еще раз. Если ошибка будет повторяться - передайте эту информацию администратору сайта: Код ошибки {{statusCode}}",
dictCancelUpload: "Отменить загрузку",
dictCancelUploadConfirmation: "Уверены, что хотите прервать загрузку?",
dictRemoveFile: "Удалить файл",
dictRemoveFileConfirmation: null,
dictMaxFilesExceeded: "Превышен лимит количества файлов. Вы можете загрузить не более {{maxFiles}}"
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment