From e0d7c3e8dd7273e0a613981b066704cbe3e231a7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 9 Sep 2015 13:42:10 +0200 Subject: Update and integrate JS library (jquery, jquery-ui, jqgrid) --- ishtar_common/static/js/i18n/grid.locale-sr.js | 58 ++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 9 deletions(-) (limited to 'ishtar_common/static/js/i18n/grid.locale-sr.js') diff --git a/ishtar_common/static/js/i18n/grid.locale-sr.js b/ishtar_common/static/js/i18n/grid.locale-sr.js index 305b17e2b..13163c15d 100644 --- a/ishtar_common/static/js/i18n/grid.locale-sr.js +++ b/ishtar_common/static/js/i18n/grid.locale-sr.js @@ -1,4 +1,3 @@ -;(function($){ /** * jqGrid Serbian Translation * Александар Миловац(Aleksandar Milovac) aleksandar.milovac@gmail.com @@ -7,21 +6,55 @@ * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ -$.jgrid = { +/*global jQuery, define */ +(function( factory ) { + "use strict"; + if ( typeof define === "function" && define.amd ) { + // AMD. Register as an anonymous module. + define([ + "jquery", + "../grid.base" + ], factory ); + } else { + // Browser globals + factory( jQuery ); + } +}(function( $ ) { + +$.jgrid = $.jgrid || {}; +if(!$.jgrid.hasOwnProperty("regional")) { + $.jgrid.regional = []; +} +$.jgrid.regional["sr"] = { defaults : { recordtext: "Преглед {0} - {1} од {2}", emptyrecords: "Не постоји ниједан запис", loadtext: "Учитавање...", - pgtext : "Страна {0} од {1}" + pgtext : "Страна {0} од {1}", + savetext: "Saving...", + pgfirst : "First Page", + pglast : "Last Page", + pgnext : "Next Page", + pgprev : "Previous Page", + pgrecs : "Records per Page", + showhide: "Toggle Expand Collapse Grid", + // mobile + pagerCaption : "Grid::Page Settings", + pageText : "Page:", + recordPage : "Records per Page", + nomorerecs : "No more records...", + scrollPullup: "Pull up to load more...", + scrollPulldown : "Pull down to refresh...", + scrollRefresh : "Release to refresh..." }, search : { caption: "Тражење...", Find: "Тражи", Reset: "Ресетуј", - odata : ['једнако', 'није једнако', 'мање', 'мање или једнако','веће','веће или једнако', 'почиње са','не почиње са','је у','није у','завршава са','не завршава са','садржи','не садржи'], + odata: [{ oper:'eq', text:"једнако"},{ oper:'ne', text:"није једнако"},{ oper:'lt', text:"мање"},{ oper:'le', text:"мање или једнако"},{ oper:'gt', text:"веће"},{ oper:'ge', text:"веће или једнако"},{ oper:'bw', text:"почиње са"},{ oper:'bn', text:"не почиње са"},{ oper:'in', text:"је у"},{ oper:'ni', text:"није у"},{ oper:'ew', text:"завршава са"},{ oper:'en', text:"не завршава са"},{ oper:'cn', text:"садржи"},{ oper:'nc', text:"не садржи"},{ oper:'nu', text:'is null'},{ oper:'nn', text:'is not null'}], groupOps: [ { op: "И", text: "сви" }, { op: "ИЛИ", text: "сваки" } ], - matchText: " match", - rulesText: " правила" + operandTitle : "Click to select search operation.", + resetTitle : "Reset Search Value" }, edit : { addCaption: "Додај запис", @@ -73,7 +106,12 @@ $.jgrid = { alertcap: "Упозорење", alerttext: "Молим, изаберите ред", viewtext: "", - viewtitle: "Погледај изабрани ред" + viewtitle: "Погледај изабрани ред", + savetext: "", + savetitle: "Save row", + canceltext: "", + canceltitle : "Cancel row editing", + selectcaption : "Actions..." }, col : { caption: "Изабери колоне", @@ -103,6 +141,7 @@ $.jgrid = { S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'}, srcformat: 'Y-m-d', newformat: 'd/m/Y', + parseRe : /[#%\\\/:_;.,\t\s-]/, masks : { ISO8601Long:"Y-m-d H:i:s", ISO8601Short:"Y-m-d", @@ -116,7 +155,8 @@ $.jgrid = { UniversalSortableDateTime: "Y-m-d H:i:sO", YearMonth: "F, Y" }, - reformatAfterEdit : false + reformatAfterEdit : false, + userLocalTime : false }, baseLinkUrl: '', showAction: '', @@ -125,4 +165,4 @@ $.jgrid = { idName : 'id' } }; -})(jQuery); +})); -- cgit v1.2.3