diff --git a/js/i18n/elfinder.ru.js b/js/i18n/elfinder.ru.js index dfc5af35a2..1a3f8b9ab2 100644 --- a/js/i18n/elfinder.ru.js +++ b/js/i18n/elfinder.ru.js @@ -345,7 +345,6 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object' 'kindVideoFlash' : 'Видео Flash', 'kindVideoMKV' : 'Видео Matroska', 'kindVideoOGG' : 'Видео Ogg' - } } } diff --git a/js/ui/tree.js b/js/ui/tree.js index 1c684c9aa1..0be7ca73a6 100644 --- a/js/ui/tree.js +++ b/js/ui/tree.js @@ -185,6 +185,15 @@ $.fn.elfindertree = function(fm, opts) { * @return String */ itemhtml = function(dir) { + if (!dir.phash) { + var name = 'volume_'+dir.name, + i18n = fm.i18n(name); + + if (name != i18n) { + dir.name = i18n; + } + } + dir.name = fm.escape(dir.name); return tpl.replace(/(?:\{([a-z]+)\})/ig, function(m, key) {