mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-30 15:05:15 -04:00
Adds sr translation by Goran.
This commit is contained in:
parent
998d3f30c6
commit
3f0327ff1d
6 changed files with 65 additions and 33 deletions
|
@ -36,6 +36,8 @@ h5ai is provided under the terms of the [MIT License](http://github.com/lrsjng/h
|
||||||
* updates lv translation
|
* updates lv translation
|
||||||
* adds ro translation by [Jakob Cosoroabă](http://github.com/midday)
|
* adds ro translation by [Jakob Cosoroabă](http://github.com/midday)
|
||||||
* adds ja translation by [metasta](http://github.com/metasta)
|
* adds ja translation by [metasta](http://github.com/metasta)
|
||||||
|
* adds nb translation by [Sindre Sorhus](http://github.com/sindresorhus)
|
||||||
|
* adds sr translation by [Goran](http://github.com/vBm)
|
||||||
|
|
||||||
|
|
||||||
### v0.18 - *2012-02-24*
|
### v0.18 - *2012-02-24*
|
||||||
|
|
|
@ -443,6 +443,21 @@ var H5AI_CONFIG = {
|
||||||
"noMatch": "no match"
|
"noMatch": "no match"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"sr": {
|
||||||
|
"lang": "srpski",
|
||||||
|
"details": "detalji",
|
||||||
|
"icons": "ikone",
|
||||||
|
"name": "Ime",
|
||||||
|
"lastModified": "Poslednja modifikacija",
|
||||||
|
"size": "Veličina",
|
||||||
|
"parentDirectory": "Roditeljski direktorijum",
|
||||||
|
"empty": "prazno",
|
||||||
|
"folders": "direktorijum",
|
||||||
|
"files": "fajlovi",
|
||||||
|
"download": "download",
|
||||||
|
"noMatch": "bez poklapanja"
|
||||||
|
},
|
||||||
|
|
||||||
"sv": {
|
"sv": {
|
||||||
"lang": "svenska",
|
"lang": "svenska",
|
||||||
"details": "detaljerad",
|
"details": "detaljerad",
|
||||||
|
|
|
@ -306,8 +306,9 @@
|
||||||
shiftTree: shiftTree,
|
shiftTree: shiftTree,
|
||||||
linkHoverStates: linkHoverStates,
|
linkHoverStates: linkHoverStates,
|
||||||
initIndicators: initIndicators,
|
initIndicators: initIndicators,
|
||||||
getFileType: getFileType,
|
getFileType: getFileType
|
||||||
init: init
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
h5ai(init);
|
||||||
|
|
||||||
}(window, jQuery, h5ai));
|
}(window, jQuery, h5ai));
|
||||||
|
|
|
@ -33,40 +33,53 @@
|
||||||
qrCodesSize: null,
|
qrCodesSize: null,
|
||||||
showFilter: false
|
showFilter: false
|
||||||
},
|
},
|
||||||
h5ai = function () {
|
|
||||||
|
|
||||||
|
initMethods = [],
|
||||||
|
addInitMethod = function (fn) {
|
||||||
|
|
||||||
|
if ($.isFunction(fn)) {
|
||||||
|
initMethods.push(fn);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
init = function () {
|
||||||
|
|
||||||
|
var $html = $('html');
|
||||||
|
|
||||||
|
h5ai.isJs = $html.hasClass('h5ai-js');
|
||||||
|
h5ai.isPhp = $html.hasClass('h5ai-php');
|
||||||
|
|
||||||
|
if (h5ai.isJs) {
|
||||||
|
h5ai.extended.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
$.each(initMethods, function (idx, initMethod) {
|
||||||
|
|
||||||
|
initMethod();
|
||||||
|
})
|
||||||
|
|
||||||
|
// h5ai.core.init();
|
||||||
|
h5ai.localize.init();
|
||||||
|
h5ai.sort.init();
|
||||||
|
h5ai.finder.init();
|
||||||
|
h5ai.zippedDownload.init();
|
||||||
|
h5ai.context.init();
|
||||||
|
|
||||||
|
if (h5ai.isPhp) {
|
||||||
|
$('#tree').scrollpanel();
|
||||||
|
h5ai.core.shiftTree(false, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// publish for testing
|
||||||
|
window.h5ai = h5ai;
|
||||||
|
},
|
||||||
|
h5ai = function (fn) {
|
||||||
|
|
||||||
|
addInitMethod(fn);
|
||||||
};
|
};
|
||||||
|
|
||||||
h5ai.config = config;
|
h5ai.config = config;
|
||||||
h5ai.settings = $.extend({}, defaults, config.options);
|
h5ai.settings = $.extend({}, defaults, config.options);
|
||||||
|
|
||||||
h5ai.init = function () {
|
|
||||||
|
|
||||||
var $html = $('html');
|
|
||||||
|
|
||||||
h5ai.isJs = $html.hasClass('h5ai-js');
|
|
||||||
h5ai.isPhp = $html.hasClass('h5ai-php');
|
|
||||||
|
|
||||||
if (h5ai.isJs) {
|
|
||||||
h5ai.extended.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
h5ai.core.init();
|
|
||||||
h5ai.localize.init();
|
|
||||||
h5ai.sort.init();
|
|
||||||
h5ai.finder.init();
|
|
||||||
h5ai.zippedDownload.init();
|
|
||||||
h5ai.context.init();
|
|
||||||
|
|
||||||
if (h5ai.isPhp) {
|
|
||||||
$('#tree').scrollpanel();
|
|
||||||
h5ai.core.shiftTree(false, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// publish for testing
|
|
||||||
window.h5ai = h5ai;
|
|
||||||
};
|
|
||||||
|
|
||||||
// @include "Util.js"
|
// @include "Util.js"
|
||||||
// @include "Core.js"
|
// @include "Core.js"
|
||||||
// @include "Localize.js"
|
// @include "Localize.js"
|
||||||
|
@ -80,6 +93,6 @@
|
||||||
// @include "Html.js"
|
// @include "Html.js"
|
||||||
// @include "Extended.js"
|
// @include "Extended.js"
|
||||||
|
|
||||||
$(h5ai.init);
|
$(init);
|
||||||
|
|
||||||
}(jQuery, H5AI_CONFIG));
|
}(jQuery, H5AI_CONFIG));
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
|
|
||||||
if (path.html.$extended) {
|
if (path.html.$extended) {
|
||||||
path.html.$extended.replaceWith($html);
|
path.html.$extended.replaceWith($html);
|
||||||
h5ai.core.formatDates();
|
h5ai.localize.formatDates();
|
||||||
}
|
}
|
||||||
path.html.$extended = $html;
|
path.html.$extended = $html;
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
h5ai.localize = {
|
h5ai.localize = {
|
||||||
init: init
|
init: init,
|
||||||
|
formatDates: formatDates
|
||||||
};
|
};
|
||||||
|
|
||||||
}(jQuery, h5ai));
|
}(jQuery, h5ai));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue