From e761468ff210fa64ee1a73ccf3d093e194b39d20 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-fa.js | 62 +++++++++++++++++++++----- 1 file changed, 51 insertions(+), 11 deletions(-) (limited to 'ishtar_common/static/js/i18n/grid.locale-fa.js') diff --git a/ishtar_common/static/js/i18n/grid.locale-fa.js b/ishtar_common/static/js/i18n/grid.locale-fa.js index 3c233de6b..556a9a4b9 100644 --- a/ishtar_common/static/js/i18n/grid.locale-fa.js +++ b/ishtar_common/static/js/i18n/grid.locale-fa.js @@ -1,22 +1,55 @@ -;(function ($) { /** * jqGrid Persian Translation * Dual licensed under the MIT and GPL licenses: * 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["fa"] = { defaults: { recordtext: "نمابش {0} - {1} از {2}", emptyrecords: "رکوردی یافت نشد", loadtext: "بارگزاري...", - pgtext: "صفحه {0} از {1}" + savetext: "Saving...", + pgtext: "صفحه {0} از {1}", + 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: "AND", text: "کل" @@ -25,8 +58,8 @@ op: "OR", text: "مجموع" }], - matchText: " حاوی", - rulesText: " اطلاعات" + operandTitle : "Click to select search operation.", + resetTitle : "Reset Search Value" }, edit: { addCaption: "اضافه کردن رکورد", @@ -69,7 +102,7 @@ addtext: " ", addtitle: "افزودن رديف جديد", deltext: " ", - deltitle: "حذف ردبف هاي انتخاب شده", + deltitle: "حذف ردبف هاي انتیاب شده", searchtext: " ", searchtitle: "جستجوي رديف", refreshtext: "", @@ -77,7 +110,12 @@ alertcap: "اخطار", alerttext: "لطفا يک رديف انتخاب کنيد", viewtext: "", - viewtitle: "نمایش رکورد های انتخاب شده" + viewtitle: "نمایش رکورد های انتخاب شده", + savetext: "", + savetitle: "Save row", + canceltext: "", + canceltitle : "Cancel row editing", + selectcaption : "Actions..." }, col: { caption: "نمايش/عدم نمايش ستون", @@ -118,6 +156,7 @@ }, srcformat: "Y-m-d", newformat: "d/m/Y", + parseRe : /[#%\\\/:_;.,\t\s-]/, masks: { ISO8601Long: "Y-m-d H:i:s", ISO8601Short: "Y-m-d", @@ -131,7 +170,8 @@ UniversalSortableDateTime: "Y-m-d H:i:sO", YearMonth: "F, Y" }, - reformatAfterEdit: false + reformatAfterEdit: false, + userLocalTime : false }, baseLinkUrl: "", showAction: "نمايش", @@ -141,5 +181,5 @@ }, idName: "id" } - } -})(jQuery); \ No newline at end of file + }; +})); \ No newline at end of file -- cgit v1.2.3