code
stringlengths
1
2.08M
language
stringclasses
1 value
$(function(){ $('.image-thumbnail').fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : false }); });
JavaScript
$(function() { var tinymce_path = default_texteditor_path+'/tiny_mce/'; var tinymce_options = { // Location of TinyMCE script script_url : tinymce_path +"tiny_mce.js", // General options theme : "advanced", plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist", // Theme options theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, entity_encoding : "raw", /* // Example content CSS (should be your site CSS) content_css : "css/content.css", */ // Drop lists for link/image/media/template dialogs template_external_list_url : tinymce_path +"lists/template_list.js", external_link_list_url : tinymce_path +"lists/link_list.js", external_image_list_url : tinymce_path +"lists/image_list.js", media_external_list_url : tinymce_path +"lists/media_list.js", // Replace values for the template plugin template_replace_values : { username : "Some User", staffid : "991234" } }; $('textarea.texteditor').tinymce(tinymce_options); var minimal_tinymce_options = $.extend({}, tinymce_options); minimal_tinymce_options.theme = "simple"; $('textarea.mini-texteditor').tinymce(minimal_tinymce_options); });
JavaScript
$(function(){ $(".multiselect").multiselect(); });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object for the * Persian language. */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['fa'] = { /** * The language reading direction. Possible values are "rtl" for * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right * languages (like English). * @default 'ltr' */ dir : 'rtl', /* * Screenreader titles. Please note that screenreaders are not always capable * of reading non-English words. So be careful while translating it. */ editorTitle : 'ویرایشگر متن غنی, %1', editorHelp : 'کلید Alt+0 را برای راهنمایی بفشارید', // ARIA descriptions. toolbars : 'نوار ابزار', editor : 'ویرایشگر متن غنی', // Toolbar buttons without dialogs. source : 'منبع', newPage : 'برگهٴ تازه', save : 'ذخیره', preview : 'پیشنمایش', cut : 'برش', copy : 'کپی', paste : 'چسباندن', print : 'چاپ', underline : 'زیرخطدار', bold : 'درشت', italic : 'خمیده', selectAll : 'گزینش همه', removeFormat : 'برداشتن فرمت', strike : 'میانخط', subscript : 'زیرنویس', superscript : 'بالانویس', horizontalrule : 'گنجاندن خط افقی', pagebreak : 'گنجاندن شکستگی پایان برگه', pagebreakAlt : 'شکستن صفحه', unlink : 'برداشتن پیوند', undo : 'واچیدن', redo : 'بازچیدن', // Common messages and labels. common : { browseServer : 'فهرستنمایی سرور', url : 'URL', protocol : 'پروتکل', upload : 'انتقال به سرور', uploadSubmit : 'به سرور بفرست', image : 'تصویر', flash : 'فلش', form : 'فرم', checkbox : 'خانهٴ گزینهای', radio : 'دکمهٴ رادیویی', textField : 'فیلد متنی', textarea : 'ناحیهٴ متنی', hiddenField : 'فیلد پنهان', button : 'دکمه', select : 'فیلد چندگزینهای', imageButton : 'دکمهٴ تصویری', notSet : '<تعین نشده>', id : 'شناسه', name : 'نام', langDir : 'جهتنمای زبان', langDirLtr : 'چپ به راست (LTR)', langDirRtl : 'راست به چپ (RTL)', langCode : 'کد زبان', longDescr : 'URL توصیف طولانی', cssClass : 'کلاسهای شیوهنامه(Stylesheet)', advisoryTitle : 'عنوان کمکی', cssStyle : 'شیوه(style)', ok : 'پذیرش', cancel : 'انصراف', close : 'بستن', preview : 'پیشنمایش', generalTab : 'عمومی', advancedTab : 'پیشرفته', validateNumberFailed : 'این مقدار یک عدد نیست.', confirmNewPage : 'هر تغییر ایجاد شدهی ذخیره نشده از بین خواهد رفت. آیا اطمینان دارید که قصد بارگیری صفحه جدیدی را دارید؟', confirmCancel : 'برخی از گزینهها تغییر کردهاند. آیا واقعا قصد بستن این پنجره را دارید؟', options : 'گزینهها', target : 'مسیر', targetNew : 'پنجره جدید (_blank)', targetTop : 'بالاترین پنجره (_top)', targetSelf : 'همان پنجره (_self)', targetParent : 'پنجره والد (_parent)', langDirLTR : 'چپ به راست (LTR)', langDirRTL : 'راست به چپ (RTL)', styles : 'سبک', cssClasses : 'کلاسهای شیوهنامه', width : 'پهنا', height : 'درازا', align : 'چینش', alignLeft : 'چپ', alignRight : 'راست', alignCenter : 'وسط', alignTop : 'بالا', alignMiddle : 'وسط', alignBottom : 'پائین', invalidValue : 'Invalid value.', // MISSING invalidHeight : 'ارتفاع باید یک عدد باشد.', invalidWidth : 'پهنا باید یک عدد باشد.', invalidCssLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری CSS معتبر باشد (px, %, in, cm, mm, em, ex, pt, or pc).', invalidHtmlLength : 'عدد تعیین شده برای فیلد "%1" باید یک عدد مثبت با یا بدون یک واحد اندازه گیری HTML معتبر باشد (px or %).', invalidInlineStyle : 'عدد تعیین شده برای سبک درونخطی(Inline Style) باید دارای یک یا چند چندتایی با شکلی شبیه "name : value" که باید با یک ","(semi-colons) از هم جدا شوند.', cssLengthTooltip : 'یک عدد برای یک مقدار بر حسب پیکسل و یا یک عدد با یک واحد CSS معتبر وارد کنید (px, %, in, cm, mm, em, ex, pt, or pc).', // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">، غیر قابل دسترس</span>' }, contextmenu : { options : 'گزینههای منوی زمینه' }, // Special char dialog. specialChar : { toolbar : 'گنجاندن نویسهٴ ویژه', title : 'گزینش نویسهٴ ویژه', options : 'گزینههای نویسههای ویژه' }, // Link dialog. link : { toolbar : 'گنجاندن/ویرایش پیوند', other : '<سایر>', menu : 'ویرایش پیوند', title : 'پیوند', info : 'اطلاعات پیوند', target : 'مقصد', upload : 'انتقال به سرور', advanced : 'پیشرفته', type : 'نوع پیوند', toUrl : 'URL', toAnchor : 'لنگر در همین صفحه', toEmail : 'پست الکترونیکی', targetFrame : '<فریم>', targetPopup : '<پنجرهٴ پاپاپ>', targetFrameName : 'نام فریم مقصد', targetPopupName : 'نام پنجرهٴ پاپاپ', popupFeatures : 'ویژگیهای پنجرهٴ پاپاپ', popupResizable : 'قابل تغییر اندازه', popupStatusBar : 'نوار وضعیت', popupLocationBar: 'نوار موقعیت', popupToolbar : 'نوارابزار', popupMenuBar : 'نوار منو', popupFullScreen : 'تمامصفحه (IE)', popupScrollBars : 'میلههای پیمایش', popupDependent : 'وابسته (Netscape)', popupLeft : 'موقعیت چپ', popupTop : 'موقعیت بالا', id : 'شناسه', langDir : 'جهتنمای زبان', langDirLTR : 'چپ به راست (LTR)', langDirRTL : 'راست به چپ (RTL)', acccessKey : 'کلید دستیابی', name : 'نام', langCode : 'جهتنمای زبان', tabIndex : 'نمایهٴ دسترسی با برگه', advisoryTitle : 'عنوان کمکی', advisoryContentType : 'نوع محتوای کمکی', cssClasses : 'کلاسهای شیوهنامه(Stylesheet)', charset : 'نویسهگان منبع پیوند شده', styles : 'شیوه(style)', rel : 'وابستگی', selectAnchor : 'یک لنگر برگزینید', anchorName : 'با نام لنگر', anchorId : 'با شناسهٴ المان', emailAddress : 'نشانی پست الکترونیکی', emailSubject : 'موضوع پیام', emailBody : 'متن پیام', noAnchors : '(در این سند لنگری دردسترس نیست)', noUrl : 'لطفا URL پیوند را بنویسید', noEmail : 'لطفا نشانی پست الکترونیکی را بنویسید' }, // Anchor dialog anchor : { toolbar : 'گنجاندن/ویرایش لنگر', menu : 'ویژگیهای لنگر', title : 'ویژگیهای لنگر', name : 'نام لنگر', errorName : 'لطفا نام لنگر را بنویسید', remove : 'حذف لنگر' }, // List style dialog list: { numberedTitle : 'ویژگیهای فهرست شمارهدار', bulletedTitle : 'ویژگیهای فهرست گلولهدار', type : 'نوع', start : 'شروع', validateStartNumber :'فهرست شماره شروع باید یک عدد صحیح باشد.', circle : 'دایره', disc : 'صفحه گرد', square : 'چهارگوش', none : 'هیچ', notset : '<تنظیم نشده>', armenian : 'شمارهگذاری ارمنی', georgian : 'شمارهگذاری گریگورین (an, ban, gan, etc.)', lowerRoman : 'پانویس رومی (i, ii, iii, iv, v, etc.)', upperRoman : 'بالانویس رومی (I, II, III, IV, V, etc.)', lowerAlpha : 'پانویس الفبایی (a, b, c, d, e, etc.)', upperAlpha : 'بالانویس الفبایی (A, B, C, D, E, etc.)', lowerGreek : 'پانویس یونانی (alpha, beta, gamma, etc.)', decimal : 'دهدهی (1, 2, 3, etc.)', decimalLeadingZero : 'دهدهی همراه با صفر (01, 02, 03, etc.)' }, // Find And Replace Dialog findAndReplace : { title : 'جستجو و جایگزینی', find : 'جستجو', replace : 'جایگزینی', findWhat : 'چه چیز را مییابید:', replaceWith : 'جایگزینی با:', notFoundMsg : 'متن موردنظر یافت نشد.', findOptions : 'گزینههای جستجو', matchCase : 'همسانی در بزرگی و کوچکی نویسهها', matchWord : 'همسانی با واژهٴ کامل', matchCyclic : 'همسانی با چرخه', replaceAll : 'جایگزینی همهٴ یافتهها', replaceSuccessMsg : '%1 رخداد جایگزین شد.' }, // Table Dialog table : { toolbar : 'جدول', title : 'ویژگیهای جدول', menu : 'ویژگیهای جدول', deleteTable : 'پاک کردن جدول', rows : 'سطرها', columns : 'ستونها', border : 'اندازهٴ لبه', widthPx : 'پیکسل', widthPc : 'درصد', widthUnit : 'واحد پهنا', cellSpace : 'فاصلهٴ میان سلولها', cellPad : 'فاصلهٴ پرشده در سلول', caption : 'عنوان', summary : 'خلاصه', headers : 'سرنویسها', headersNone : 'هیچ', headersColumn : 'اولین ستون', headersRow : 'اولین ردیف', headersBoth : 'هردو', invalidRows : 'تعداد ردیفها باید یک عدد بزرگتر از 0 باشد.', invalidCols : 'تعداد ستونها باید یک عدد بزرگتر از 0 باشد.', invalidBorder : 'مقدار اندازه خطوط باید یک عدد باشد.', invalidWidth : 'مقدار پهنای جدول باید یک عدد باشد.', invalidHeight : 'مقدار ارتفاع جدول باید یک عدد باشد.', invalidCellSpacing : 'مقدار فاصلهگذاری سلول باید یک عدد باشد.', invalidCellPadding : 'بالشتک سلول باید یک عدد باشد.', cell : { menu : 'سلول', insertBefore : 'افزودن سلول قبل از', insertAfter : 'افزودن سلول بعد از', deleteCell : 'حذف سلولها', merge : 'ادغام سلولها', mergeRight : 'ادغام به راست', mergeDown : 'ادغام به پایین', splitHorizontal : 'جدا کردن افقی سلول', splitVertical : 'جدا کردن عمودی سلول', title : 'ویژگیهای سلول', cellType : 'نوع سلول', rowSpan : 'محدوده ردیفها', colSpan : 'محدوده ستونها', wordWrap : 'شکستن کلمه', hAlign : 'چینش افقی', vAlign : 'چینش عمودی', alignBaseline : 'خط مبنا', bgColor : 'رنگ زمینه', borderColor : 'رنگ خطوط', data : 'اطلاعات', header : 'سرنویس', yes : 'بله', no : 'خیر', invalidWidth : 'عرض سلول باید یک عدد باشد.', invalidHeight : 'ارتفاع سلول باید عدد باشد.', invalidRowSpan : 'مقدار محدوده ردیفها باید یک عدد باشد.', invalidColSpan : 'مقدار محدوده ستونها باید یک عدد باشد.', chooseColor : 'انتخاب' }, row : { menu : 'سطر', insertBefore : 'افزودن سطر قبل از', insertAfter : 'افزودن سطر بعد از', deleteRow : 'حذف سطرها' }, column : { menu : 'ستون', insertBefore : 'افزودن ستون قبل از', insertAfter : 'افزودن ستون بعد از', deleteColumn : 'حذف ستونها' } }, // Button Dialog. button : { title : 'ویژگیهای دکمه', text : 'متن (مقدار)', type : 'نوع', typeBtn : 'دکمه', typeSbm : 'ثبت', typeRst : 'بازنشانی (Reset)' }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'ویژگیهای خانهٴ گزینهای', radioTitle : 'ویژگیهای دکمهٴ رادیویی', value : 'مقدار', selected : 'برگزیده' }, // Form Dialog. form : { title : 'ویژگیهای فرم', menu : 'ویژگیهای فرم', action : 'رویداد', method : 'متد', encoding : 'رمزنگاری' }, // Select Field Dialog. select : { title : 'ویژگیهای فیلد چندگزینهای', selectInfo : 'اطلاعات', opAvail : 'گزینههای دردسترس', value : 'مقدار', size : 'اندازه', lines : 'خطوط', chkMulti : 'گزینش چندگانه فراهم باشد', opText : 'متن', opValue : 'مقدار', btnAdd : 'افزودن', btnModify : 'ویرایش', btnUp : 'بالا', btnDown : 'پائین', btnSetValue : 'تنظیم به عنوان مقدار برگزیده', btnDelete : 'پاککردن' }, // Textarea Dialog. textarea : { title : 'ویژگیهای ناحیهٴ متنی', cols : 'ستونها', rows : 'سطرها' }, // Text Field Dialog. textfield : { title : 'ویژگیهای فیلد متنی', name : 'نام', value : 'مقدار', charWidth : 'پهنای نویسه', maxChars : 'بیشینهٴ نویسهها', type : 'نوع', typeText : 'متن', typePass : 'گذرواژه' }, // Hidden Field Dialog. hidden : { title : 'ویژگیهای فیلد پنهان', name : 'نام', value : 'مقدار' }, // Image Dialog. image : { title : 'ویژگیهای تصویر', titleButton : 'ویژگیهای دکمهٴ تصویری', menu : 'ویژگیهای تصویر', infoTab : 'اطلاعات تصویر', btnUpload : 'به سرور بفرست', upload : 'انتقال به سرور', alt : 'متن جایگزین', lockRatio : 'قفل کردن نسبت', resetSize : 'بازنشانی اندازه', border : 'لبه', hSpace : 'فاصلهٴ افقی', vSpace : 'فاصلهٴ عمودی', alertUrl : 'لطفا URL تصویر را بنویسید', linkTab : 'پیوند', button2Img : 'آیا مایلید از یک تصویر ساده روی دکمه تصویری انتخاب شده استفاده کنید؟', img2Button : 'آیا مایلید از یک دکمه تصویری روی تصویر انتخاب شده استفاده کنید؟', urlMissing : 'آدرس URL اصلی تصویر یافت نشد.', validateBorder : 'مقدار خطوط باید یک عدد باشد.', validateHSpace : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.', validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.' }, // Flash Dialog flash : { properties : 'ویژگیهای فلش', propertiesTab : 'ویژگیها', title : 'ویژگیهای فلش', chkPlay : 'آغاز خودکار', chkLoop : 'اجرای پیاپی', chkMenu : 'در دسترس بودن منوی فلش', chkFull : 'اجازه تمام صفحه', scale : 'مقیاس', scaleAll : 'نمایش همه', scaleNoBorder : 'بدون کران', scaleFit : 'جایگیری کامل', access : 'دسترسی به اسکریپت', accessAlways : 'همیشه', accessSameDomain: 'همان دامنه', accessNever : 'هرگز', alignAbsBottom : 'پائین مطلق', alignAbsMiddle : 'وسط مطلق', alignBaseline : 'خط پایه', alignTextTop : 'متن بالا', quality : 'کیفیت', qualityBest : 'بهترین', qualityHigh : 'بالا', qualityAutoHigh : 'بالا - خودکار', qualityMedium : 'متوسط', qualityAutoLow : 'پایین - خودکار', qualityLow : 'پایین', windowModeWindow: 'پنجره', windowModeOpaque: 'مات', windowModeTransparent : 'شفاف', windowMode : 'حالت پنجره', flashvars : 'مقادیر برای فلش', bgcolor : 'رنگ پسزمینه', hSpace : 'فاصلهٴ افقی', vSpace : 'فاصلهٴ عمودی', validateSrc : 'لطفا URL پیوند را بنویسید', validateHSpace : 'مقدار فاصلهگذاری افقی باید یک عدد باشد.', validateVSpace : 'مقدار فاصلهگذاری عمودی باید یک عدد باشد.' }, // Speller Pages Dialog spellCheck : { toolbar : 'بررسی املا', title : 'بررسی املا', notAvailable : 'با عرض پوزش خدمات الان در دسترس نیستند.', errorLoading : 'خطا در بارگیری برنامه خدمات میزبان: %s.', notInDic : 'در واژه~نامه یافت نشد', changeTo : 'تغییر به', btnIgnore : 'چشمپوشی', btnIgnoreAll : 'چشمپوشی همه', btnReplace : 'جایگزینی', btnReplaceAll : 'جایگزینی همه', btnUndo : 'واچینش', noSuggestions : '- پیشنهادی نیست -', progress : 'بررسی املا در حال انجام...', noMispell : 'بررسی املا انجام شد. هیچ غلط املائی یافت نشد', noChanges : 'بررسی املا انجام شد. هیچ واژهای تغییر نیافت', oneChange : 'بررسی املا انجام شد. یک واژه تغییر یافت', manyChanges : 'بررسی املا انجام شد. %1 واژه تغییر یافت', ieSpellDownload : 'بررسی کنندهٴ املا نصب نشده است. آیا میخواهید آن را هماکنون دریافت کنید؟' }, smiley : { toolbar : 'خندانک', title : 'گنجاندن خندانک', options : 'گزینههای خندانک' }, elementsPath : { eleLabel : 'مسیر عناصر', eleTitle : '%1 عنصر' }, numberedlist : 'فهرست شمارهدار', bulletedlist : 'فهرست نقطهای', indent : 'افزایش تورفتگی', outdent : 'کاهش تورفتگی', justify : { left : 'چپچین', center : 'میانچین', right : 'راستچین', block : 'بلوکچین' }, blockquote : 'بلوک نقل قول', clipboard : { title : 'چسباندن', cutError : 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+X).', copyError : 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپی کردن را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+C).', pasteMsg : 'لطفا متن را با کلیدهای (<STRONG>Ctrl/Cmd+V</STRONG>) در این جعبهٴ متنی بچسبانید و <STRONG>پذیرش</STRONG> را بزنید.', securityMsg : 'به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.', pasteArea : 'محل چسباندن' }, pastefromword : { confirmCleanup : 'متنی که میخواهید بچسبانید به نظر میرسد که از Word کپی شده است. آیا میخواهید قبل از چسباندن آن را پاکسازی کنید؟', toolbar : 'چسباندن از Word', title : 'چسباندن از Word', error : 'به دلیل بروز خطای داخلی امکان پاکسازی اطلاعات بازنشانی شده وجود ندارد.' }, pasteText : { button : 'چسباندن به عنوان متن ِساده', title : 'چسباندن به عنوان متن ِساده' }, templates : { button : 'الگوها', title : 'الگوهای محتویات', options : 'گزینههای الگو', insertOption : 'محتویات کنونی جایگزین شوند', selectPromptMsg : 'لطفا الگوی موردنظر را برای بازکردن در ویرایشگر برگزینید<br>(محتویات کنونی از دست خواهند رفت):', emptyListMsg : '(الگوئی تعریف نشده است)' }, showBlocks : 'نمایش بلوکها', stylesCombo : { label : 'سبک', panelTitle : 'سبکهای قالببندی', panelTitle1 : 'سبکهای بلوک', panelTitle2 : 'سبکهای درونخطی', panelTitle3 : 'سبکهای شیء' }, format : { label : 'فرمت', panelTitle : 'فرمت', tag_p : 'نرمال', tag_pre : 'فرمت شده', tag_address : 'آدرس', tag_h1 : 'سرنویس 1', tag_h2 : 'سرنویس 2', tag_h3 : 'سرنویس 3', tag_h4 : 'سرنویس 4', tag_h5 : 'سرنویس 5', tag_h6 : 'سرنویس 6', tag_div : 'بند' }, div : { title : 'ایجاد یک محل DIV', toolbar : 'ایجاد یک محل DIV', cssClassInputLabel : 'کلاسهای شیوهنامه', styleSelectLabel : 'سبک', IdInputLabel : 'شناسه', languageCodeInputLabel : ' کد زبان', inlineStyleInputLabel : 'سبک درونخطی(Inline Style)', advisoryTitleInputLabel : 'عنوان مشاوره', langDirLabel : 'جهت نوشتاری زبان', langDirLTRLabel : 'چپ به راست (LTR)', langDirRTLLabel : 'راست به چپ (RTL)', edit : 'ویرایش Div', remove : 'حذف Div' }, iframe : { title : 'ویژگیهای IFrame', toolbar : 'IFrame', noUrl : 'لطفا مسیر URL iframe را درج کنید', scrolling : 'نمایش خطکشها', border : 'نمایش خطوط frame' }, font : { label : 'قلم', voiceLabel : 'قلم', panelTitle : 'قلم' }, fontSize : { label : 'اندازه', voiceLabel : 'اندازه قلم', panelTitle : 'اندازه' }, colorButton : { textColorTitle : 'رنگ متن', bgColorTitle : 'رنگ پسزمینه', panelTitle : 'رنگها', auto : 'خودکار', more : 'رنگهای بیشتر...' }, colors : { '000' : 'سیاه', '800000' : 'خرمایی', '8B4513' : 'قهوهای شکلاتی', '2F4F4F' : 'ارغوانی مایل به خاکستری', '008080' : 'آبی مایل به خاکستری', '000080' : 'آبی سیر', '4B0082' : 'نیلی', '696969' : 'خاکستری تیره', 'B22222' : 'آتش آجری', 'A52A2A' : 'قهوهای', 'DAA520' : 'میلهی طلایی', '006400' : 'سبز تیره', '40E0D0' : 'فیروزهای', '0000CD' : 'آبی روشن', '800080' : 'ارغوانی', '808080' : 'خاکستری', 'F00' : 'قرمز', 'FF8C00' : 'نارنجی پررنگ', 'FFD700' : 'طلایی', '008000' : 'سبز', '0FF' : 'آبی مایل به سبز', '00F' : 'آبی', 'EE82EE' : 'بنفش', 'A9A9A9' : 'خاکستری مات', 'FFA07A' : 'صورتی کدر روشن', 'FFA500' : 'نارنجی', 'FFFF00' : 'زرد', '00FF00' : 'فسفری', 'AFEEEE' : 'فیروزهای رنگ پریده', 'ADD8E6' : 'آبی کمرنگ', 'DDA0DD' : 'آلویی', 'D3D3D3' : 'خاکستری روشن', 'FFF0F5' : 'بنفش کمرنگ', 'FAEBD7' : 'عتیقه سفید', 'FFFFE0' : 'زرد روشن', 'F0FFF0' : 'عسلی', 'F0FFFF' : 'لاجوردی', 'F0F8FF' : 'آبی براق', 'E6E6FA' : 'بنفش کمرنگ', 'FFF' : 'سفید' }, scayt : { title : 'بررسی املای تایپ شما', opera_title : 'توسط اپرا پشتیبانی نمیشود', enable : 'فعالسازی SCAYT', disable : 'غیرفعالسازی SCAYT', about : 'درباره SCAYT', toggle : 'ضامن SCAYT', options : 'گزینهها', langs : 'زبانها', moreSuggestions : 'پیشنهادهای بیشتر', ignore : 'عبور کردن', ignoreAll : 'عبور کردن از همه', addWord : 'افزودن Word', emptyDic : 'نام دیکشنری نباید خالی باشد.', optionsTab : 'گزینهها', allCaps : 'نادیده گرفتن همه کلاه-واژهها', ignoreDomainNames : 'عبور از نامهای دامنه', mixedCase : 'عبور از کلماتی مرکب از حروف بزرگ و کوچک', mixedWithDigits : 'عبور از کلمات به همراه عدد', languagesTab : 'زبانها', dictionariesTab : 'دیکشنریها', dic_field_name : 'نام دیکشنری', dic_create : 'ایجاد', dic_restore : 'بازیافت', dic_delete : 'حذف', dic_rename : 'تغییر نام', dic_info : 'در ابتدا دیکشنری کاربر در کوکی ذخیره میشود. با این حال، کوکیها در اندازه محدود شدهاند. وقتی که دیکشنری کاربری بزرگ میشود و به نقطهای که نمیتواند در کوکی ذخیره شود، پس از آن دیکشنری ممکن است بر روی سرور ما ذخیره شود. برای ذخیره دیکشنری شخصی شما بر روی سرور ما، باید یک نام برای دیکشنری خود مشخص نمایید. اگر شما قبلا یک دیکشنری روی سرور ما ذخیره کردهاید، لطفا نام آنرا درج و روی دکمه بازیافت کلیک نمایید.', aboutTab : 'درباره' }, about : { title : 'درباره CKEditor', dlgTitle : 'درباره CKEditor', help : 'بررسی $1 برای راهنمایی.', userGuide : 'راهنمای کاربران CKEditor', moreInfo : 'برای کسب اطلاعات مجوز لطفا به وب سایت ما مراجعه کنید:', copy : 'حق نشر &copy; $1. کلیه حقوق محفوظ است.' }, maximize : 'حداکثر کردن', minimize : 'حداقل کردن', fakeobjects : { anchor : 'لنگر', flash : 'انیمشن فلش', iframe : 'IFrame', hiddenfield : 'فیلد پنهان', unknown : 'شیء ناشناخته' }, resize : 'کشیدن برای تغییر اندازه', colordialog : { title : 'انتخاب رنگ', options : 'گزینههای رنگ', highlight : 'متمایز', selected : 'رنگ انتخاب شده', clear : 'پاک کردن' }, toolbarCollapse : 'بستن نوار ابزار', toolbarExpand : 'بازکردن نوار ابزار', toolbarGroups : { document : 'سند', clipboard : 'حافظه موقت/برگشت', editing : 'در حال ویرایش', forms : 'فرمها', basicstyles : 'شیوههای پایه', paragraph : 'بند', links : 'پیوندها', insert : 'ورود', styles : 'شیوهها', colors : 'رنگها', tools : 'ابزارها' }, bidi : { ltr : 'نوشتار متن از چپ به راست', rtl : 'نوشتار متن از راست به چپ' }, docprops : { label : 'ویژگیهای سند', title : 'ویژگیهای سند', design : 'طراحی', meta : 'فراداده', chooseColor : 'انتخاب', other : '<سایر>', docTitle : 'عنوان صفحه', charset : 'رمزگذاری نویسهگان', charsetOther : 'رمزگذاری نویسهگان دیگر', charsetASCII : 'ASCII', charsetCE : 'اروپای مرکزی', charsetCT : 'چینی رسمی (Big5)', charsetCR : 'سیریلیک', charsetGR : 'یونانی', charsetJP : 'ژاپنی', charsetKR : 'کرهای', charsetTR : 'ترکی', charsetUN : 'یونیکُد (UTF-8)', charsetWE : 'اروپای غربی', docType : 'عنوان نوع سند', docTypeOther : 'عنوان نوع سند دیگر', xhtmlDec : 'شامل تعاریف XHTML', bgColor : 'رنگ پسزمینه', bgImage : 'URL تصویر پسزمینه', bgFixed : 'پسزمینهٴ پیمایش ناپذیر', txtColor : 'رنگ متن', margin : 'حاشیههای صفحه', marginTop : 'بالا', marginLeft : 'چپ', marginRight : 'راست', marginBottom : 'پایین', metaKeywords : 'کلیدواژگان نمایهگذاری سند (با کاما جدا شوند)', metaDescription : 'توصیف سند', metaAuthor : 'نویسنده', metaCopyright : 'حق انتشار', previewHtml : '<p>این یک <strong>متن نمونه</strong> است. شما در حال استفاده از <a href="javascript:void(0)">CKEditor</a> هستید.</p>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview */ /**#@+ @type String @example */ /** * Contains the dictionary of language entries. * @namespace */ CKEDITOR.lang['ku'] = { /** * The language reading direction. Possible values are "rtl" for * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right * languages (like English). * @default 'ltr' */ dir : 'rtl', /* * Screenreader titles. Please note that screenreaders are not always capable * of reading non-English words. So be careful while translating it. */ editorTitle : 'ده‌سکاریکه‌ری ناونیشان', editorHelp : 'کلیکی ALT له‌گه‌ڵ 0 بکه‌ بۆ یارمه‌تی', // ARIA descriptions. toolbars : 'تووڵاەرازی دەسکاریکەر', editor : 'سەرنووسەی دەقی بەپیت', // Toolbar buttons without dialogs. source : 'سەرچاوە', newPage : 'پەڕەیەکی نوێ', save : 'پاشکەوتکردن', preview : 'پێشبینین', cut : 'بڕین', copy : 'لەبەرگرنتەوه', paste : 'لکاندن', print : 'چاپکردن', underline : 'ژێرهێڵ', bold : 'قەڵەو', italic : 'لار', selectAll : 'نیشانکردنی هەمووی', removeFormat : 'لابردنی داڕشتەکە', strike : 'لێدان', subscript : 'ژێرنووس', superscript : 'سەرنووس', horizontalrule : 'دانانی هێلی ئاسۆیی', pagebreak : 'دانانی پشووی پەڕە بۆ چاپکردن', pagebreakAlt : 'پشووی پەڕە', unlink : 'لابردنی بەستەر', undo : 'پووچکردنەوه', redo : 'هەڵگەڕاندنەوه', // Common messages and labels. common : { browseServer : 'هێنانی ڕاژە', url : 'ناونیشانی بەستەر', protocol : 'پڕۆتۆکۆڵ', upload : 'بارکردن', uploadSubmit : 'ناردنی بۆ ڕاژە', image : 'وێنە', flash : 'فلاش', form : 'داڕشتە', checkbox : 'خانەی نیشانکردن', radio : 'جێگرەوەی دوگمە', textField : 'خانەی دەق', textarea : 'ڕووبەری دەق', hiddenField : 'شاردنەوی خانە', button : 'دوگمە', select : 'هەڵبژاردەی خانە', imageButton : 'دوگمەی وێنە', notSet : '<هیچ دانەدراوە>', id : 'ناسنامە', name : 'ناو', langDir : 'ئاراستەی زمان', langDirLtr : 'چەپ بۆ ڕاست (LTR)', langDirRtl : 'ڕاست بۆ چەپ (RTL)', langCode : 'هێمای زمان', longDescr : 'پێناسەی درێژی بەستەر', cssClass : 'شێوازی چینی په‌ڕە', advisoryTitle : 'ڕاوێژکاری سەردێڕ', cssStyle : 'شێواز', ok : 'باشە', cancel : 'هەڵوەشاندن', close : 'داخستن', preview : 'پێشبینین', generalTab : 'گشتی', advancedTab : 'په‌ره‌سه‌ندوو', validateNumberFailed : 'ئەم نرخە ژمارە نیه، تکایە نرخێکی ژمارە بنووسە.', confirmNewPage : 'سەرجەم گۆڕانکاریەکان و پێکهاتەکانی ناوەووە لەدەست دەدەی گەر بێتوو پاشکەوتی نەکەی یەکەم جار، تۆ هەر دڵنیایی لەکردنەوەی پەنجەرەکی نوێ؟', confirmCancel : 'هەندێك هەڵبژاردە گۆڕدراوە. تۆ دڵنیایی له‌داخستنی ئەم دیالۆگە؟', options : 'هەڵبژاردە', target : 'ئامانج', targetNew : 'پەنجەرەیه‌کی نوێ (_blank)', targetTop : 'لووتکەی پەنجەرە (_top)', targetSelf : 'لەهەمان پەنجەرە (_self)', targetParent : 'پەنجەرەی باوان (_parent)', langDirLTR : 'چەپ بۆ ڕاست (LTR)', langDirRTL : 'ڕاست بۆ چەپ (RTL)', styles : 'شێواز', cssClasses : 'شێوازی چینی پەڕە', width : 'پانی', height : 'درێژی', align : 'ڕێککەرەوە', alignLeft : 'چەپ', alignRight : 'ڕاست', alignCenter : 'ناوەڕاست', alignTop : 'سەرەوە', alignMiddle : 'ناوەند', alignBottom : 'ژێرەوە', invalidValue : 'نرخێکی نادرووست.', invalidHeight : 'درێژی دەبێت ژمارە بێت.', invalidWidth : 'پانی دەبێت ژمارە بێت.', invalidCssLength : 'ئەم نرخەی دراوە بۆ خانەی "%1" دەبێت ژمارەکی درووست بێت یان بێ ناونیشانی ئامرازی (px, %, in, cm, mm, em, ex, pt, یان pc).', invalidHtmlLength : 'ئەم نرخەی دراوە بۆ خانەی "%1" دەبێت ژمارەکی درووست بێت یان بێ ناونیشانی ئامرازی HTML (px یان %).', invalidInlineStyle : 'دانه‌ی نرخی شێوازی ناوهێڵ ده‌بێت پێکهاتبێت له‌یه‌ك یان زیاتری داڕشته‌ "ناو : نرخ", جیاکردنه‌وه‌ی به‌فاریزه‌وخاڵ', cssLengthTooltip : 'ژماره‌یه‌ك بنووسه‌ بۆ نرخی piksel یان ئامرازێکی درووستی CSS (px, %, in, cm, mm, em, ex, pt, یان pc).', // Put the voice-only part of the label in the span. unavailable : '%1<span class="cke_accessibility">, ئامادە نیە</span>' }, contextmenu : { options : 'هەڵبژاردەی لیستەی کلیکی دەستی ڕاست' }, // Special char dialog. specialChar : { toolbar : 'دانانەی نووسەی تایبەتی', title : 'هەڵبژاردنی نووسەی تایبەتی', options : 'هەڵبژاردەی نووسەی تایبەتی' }, // Link dialog. link : { toolbar : 'دانان/ڕێکخستنی بەستەر', other : '<هیتر>', menu : 'چاکسازی بەستەر', title : 'بەستەر', info : 'زانیاری بەستەر', target : 'ئامانج', upload : 'بارکردن', advanced : 'پێشکه‌وتوو', type : 'جۆری به‌سته‌ر', toUrl : 'ناونیشانی به‌سته‌ر', toAnchor : 'به‌سته‌ر بۆ له‌نگه‌ر له‌ ده‌ق', toEmail : 'ئیمه‌یل', targetFrame : '<چووارچێوه>', targetPopup : '<په‌نجه‌ره‌ی سه‌رهه‌ڵده‌ر>', targetFrameName : 'ناوی ئامانجی چووارچێوه', targetPopupName : 'ناوی په‌نجه‌ره‌ی سه‌رهه‌ڵده‌ر', popupFeatures : 'خاسیه‌تی په‌نجه‌ره‌ی سه‌رهه‌ڵده‌ر', popupResizable : 'توانای گۆڕینی قه‌باره‌', popupStatusBar : 'هێڵی دۆخ', popupLocationBar: 'هێڵی ناونیشانی به‌سته‌ر', popupToolbar : 'هێڵی تووڵامراز', popupMenuBar : 'هێڵی لیسته', popupFullScreen : 'پڕ به‌پڕی شاشه‌ (IE)', popupScrollBars : 'هێڵی هاتووچۆپێکردن', popupDependent : 'پێوه‌به‌ستراو (Netscape)', popupLeft : 'جێگای چه‌پ', popupTop : 'جێگای سه‌ره‌وه‌', id : 'ناسنامه', langDir : 'ئاراسته‌ی زمان', langDirLTR : 'چه‌پ بۆ ڕاست (LTR)', langDirRTL : 'ڕاست بۆ چه‌پ (RTL)', acccessKey : 'کلیلی ده‌ستپێگه‌یشتن', name : 'ناو', langCode : 'هێمای زمان', tabIndex : 'بازده‌ری تابی ئیندێکس', advisoryTitle : 'ڕاوێژکاری سه‌ردێڕ', advisoryContentType : 'جۆری ناوه‌ڕۆکی ڕاویژکار', cssClasses : 'شێوازی چینی په‌ڕه‌', charset : 'بەستەری سەرچاوەی نووسه', styles : 'شێواز', rel : 'په‌یوه‌ندی (rel)', selectAnchor : 'هه‌ڵبژاردنی له‌نگه‌رێك', anchorName : 'به‌پێی ناوی له‌نگه‌ر', anchorId : 'به‌پێی ناسنامه‌ی توخم', emailAddress : 'ناونیشانی ئیمه‌یل', emailSubject : 'بابه‌تی نامه', emailBody : 'ناوه‌ڕۆکی نامه', noAnchors : '(هیچ جۆرێکی له‌نگه‌ر ئاماده‌ نیه له‌م په‌ڕه‌یه)', noUrl : 'تکایه‌ ناونیشانی به‌سته‌ر بنووسه', noEmail : 'تکایه‌ ناونیشانی ئیمه‌یل بنووسه' }, // Anchor dialog anchor : { toolbar : 'دانان/چاکسازی له‌نگه‌ر', menu : 'چاکسازی له‌نگه‌ر', title : 'خاسیه‌تی له‌نگه‌ر', name : 'ناوی له‌نگه‌ر', errorName : 'تکایه‌ ناوی له‌نگه‌ر بنووسه', remove : 'لابردنی له‌نگه‌ر' }, // List style dialog list: { numberedTitle : 'خاسیه‌تی لیستی ژماره‌یی', bulletedTitle : 'خاسیه‌تی لیستی خاڵی', type : 'جۆر', start : 'ده‌ستپێکردن', validateStartNumber :'ده‌ستپێکه‌ری لیستی ژماره‌یی ده‌بێت ته‌نها ژماره‌ بێت.', circle : 'بازنه', disc : 'په‌پکه', square : 'چووراگۆشه', none : 'هیچ', notset : '<دانه‌ندراوه>', armenian : 'ئاراسته‌ی ژماره‌ی ئه‌رمه‌نی', georgian : 'ئاراسته‌ی ژماره‌ی جۆڕجی (an, ban, gan, وه‌هیتر.)', lowerRoman : 'ژماره‌ی ڕۆمی بچووك (i, ii, iii, iv, v, وه‌هیتر.)', upperRoman : 'ژماره‌ی ڕۆمی گه‌وره (I, II, III, IV, V, وه‌هیتر.)', lowerAlpha : 'ئه‌لفابێی بچووك (a, b, c, d, e, وه‌هیتر.)', upperAlpha : 'ئه‌لفابێی گه‌وره‌ (A, B, C, D, E, وه‌هیتر.)', lowerGreek : 'یۆنانی بچووك (alpha, beta, gamma, وه‌هیتر.)', decimal : 'ژماره (1, 2, 3, وه‌هیتر.)', decimalLeadingZero : 'ژماره‌ سفڕی له‌پێشه‌وه (01, 02, 03, وه‌هیتر.)' }, // Find And Replace Dialog findAndReplace : { title : 'گه‌ڕان وه‌ له‌بریدانان', find : 'گه‌ڕان', replace : 'له‌بریدانان', findWhat : 'گه‌ڕان به‌دووای:', replaceWith : 'له‌بریدانان به‌:', notFoundMsg : 'هیچ ده‌قه‌ گه‌ڕانێك نه‌دۆزراوه.', findOptions : 'هه‌ڵبژارده‌کانی گه‌ڕان', matchCase : 'جیاکردنه‌وه‌ له‌نێوان پیتی گه‌وره‌و بچووك', matchWord : 'ته‌نها هه‌موو وشه‌که‌', matchCyclic : 'گه‌ڕان له‌هه‌موو په‌ڕه‌که', replaceAll : 'له‌بریدانانی هه‌مووی', replaceSuccessMsg : ' پێشهاته(ی) له‌بری دانرا. %1' }, // Table Dialog table : { toolbar : 'خشته', title : 'خاسیه‌تی خشته', menu : 'خاسیه‌تی خشته', deleteTable : 'سڕینه‌وه‌ی خشته', rows : 'ڕیز', columns : 'ستوونه‌کان', border : 'گه‌وره‌یی په‌راوێز', widthPx : 'وێنه‌خاڵ - پیکسل', widthPc : 'له‌سه‌دا', widthUnit : 'پانی یه‌که‌', cellSpace : 'بۆشایی خانه', cellPad : 'بۆشایی ناوپۆش', caption : 'سه‌ردێڕ', summary : 'کورته', headers : 'سه‌رپه‌ڕه‌', headersNone : 'هیچ', headersColumn : 'یه‌که‌م ئه‌ستوون', headersRow : 'یه‌که‌م ڕیز', headersBoth : 'هه‌ردووك', invalidRows : 'ژماره‌ی ڕیز ده‌بێت گه‌وره‌تر بێت له‌ژماره‌ی 0.', invalidCols : 'ژماره‌ی ئه‌ستوونی ده‌بێت گه‌وره‌تر بێت له‌ژماره‌ی 0.', invalidBorder : 'ژماره‌ی په‌راوێز ده‌بێت ته‌نها ژماره‌ بێت.', invalidWidth : 'پانی خشته‌ ده‌بێت ته‌نها ژماره‌ بێت.', invalidHeight : 'درێژی خشته ده‌بێت ته‌نها ژماره‌ بێت.', invalidCellSpacing : 'بۆشایی خانه‌ ده‌بێت ژماره‌کی درووست بێت.', invalidCellPadding : 'ناوپۆشی خانه‌ ده‌بێت ژماره‌کی درووست بێت.', cell : { menu : 'خانه', insertBefore : 'دانانی خانه‌ له‌پێش', insertAfter : 'دانانی خانه له‌پاش', deleteCell : 'سڕینه‌وه‌ی خانه', merge : 'تێکه‌ڵکردنی خانه', mergeRight : 'تێکه‌ڵکردنی له‌گه‌ڵ ڕاست', mergeDown : 'تێکه‌ڵکردنی له‌گه‌ڵ خواره‌وه', splitHorizontal : 'دابه‌شکردنی خانه‌ی ئاسۆیی', splitVertical : 'دابه‌شکردنی خانه‌ی ئه‌ستونی', title : 'خاسیه‌تی خانه', cellType : 'جۆری خانه', rowSpan : 'ماوه‌ی نێوان ڕیز', colSpan : 'بستی ئه‌ستونی', wordWrap : 'پێچانه‌وه‌ی وشه', hAlign : 'ڕیزکردنی ئاسۆیی', vAlign : 'ڕیزکردنی ئه‌ستونی', alignBaseline : 'هێڵه‌بنه‌ڕه‌ت', bgColor : 'ڕه‌نگی پاشبنه‌ما', borderColor : 'ڕه‌نگی په‌راوێز', data : 'داتا', header : 'سه‌رپه‌ڕه‌', yes : 'به‌ڵێ', no : 'نه‌خێر', invalidWidth : 'پانی خانه‌ ده‌بێت به‌ته‌واوی ژماره‌ بێت.', invalidHeight : 'درێژی خانه‌ به‌ته‌واوی ده‌بێت ژماره‌ بێت.', invalidRowSpan : 'ماوه‌ی نێوان ڕیز به‌ته‌واوی ده‌بێت ژماره‌ بێت.', invalidColSpan : 'ماوه‌ی نێوان ئه‌ستونی به‌ته‌واوی ده‌بێت ژماره‌ بێت.', chooseColor : 'هه‌ڵبژاردن' }, row : { menu : 'ڕیز', insertBefore : 'دانانی ڕیز له‌پێش', insertAfter : 'دانانی ڕیز له‌پاش', deleteRow : 'سڕینه‌وه‌ی ڕیز' }, column : { menu : 'ئه‌ستون', insertBefore : 'دانانی ئه‌ستون له‌پێش', insertAfter : 'دانانی ئه‌ستوون له‌پاش', deleteColumn : 'سڕینه‌وه‌ی ئه‌ستوون' } }, // Button Dialog. button : { title : 'خاسیه‌تی دوگمه', text : '(نرخی) ده‌ق', type : 'جۆر', typeBtn : 'دوگمه‌', typeSbm : 'ناردن', typeRst : 'ڕێکخستنه‌وه' }, // Checkbox and Radio Button Dialogs. checkboxAndRadio : { checkboxTitle : 'خاسیه‌تی چووارگۆشی پشکنین', radioTitle : 'خاسیه‌تی جێگره‌وه‌ی دوگمه', value : 'نرخ', selected : 'هه‌ڵبژاردرا' }, // Form Dialog. form : { title : 'خاسیه‌تی داڕشته', menu : 'خاسیه‌تی داڕشته', action : 'کردار', method : 'ڕێگه', encoding : 'به‌کۆدکه‌ر' }, // Select Field Dialog. select : { title : 'هه‌ڵبژارده‌ی خاسیه‌تی خانه', selectInfo : 'زانیاری', opAvail : 'هه‌ڵبژارده‌ی هه‌بوو', value : 'نرخ', size : 'گه‌وره‌یی', lines : 'هێڵه‌کان', chkMulti : 'ڕێدان به‌فره‌ هه‌ڵبژارده', opText : 'ده‌ق', opValue : 'نرخ', btnAdd : 'زیادکردن', btnModify : 'گۆڕانکاری', btnUp : 'سه‌ره‌وه', btnDown : 'خواره‌وه', btnSetValue : 'دابنێ وه‌ك نرخێکی هه‌ڵبژێردراو', btnDelete : 'سڕینه‌وه' }, // Textarea Dialog. textarea : { title : 'خاسیه‌تی ڕووبه‌ری ده‌ق', cols : 'ئه‌ستونیه‌کان', rows : 'ڕیزه‌کان' }, // Text Field Dialog. textfield : { title : 'خاسیه‌تی خانه‌ی ده‌ق', name : 'ناو', value : 'نرخ', charWidth : 'پانی نووسه', maxChars : 'ئه‌وپه‌ڕی نووسه', type : 'جۆر', typeText : 'ده‌ق', typePass : 'پێپه‌ڕه‌وشه' }, // Hidden Field Dialog. hidden : { title : 'خاسیه‌تی خانه‌ی شاردراوه', name : 'ناو', value : 'نرخ' }, // Image Dialog. image : { title : 'خاسیه‌تی وێنه', titleButton : 'خاسیه‌تی دوگمه‌ی وێنه', menu : 'خاسیه‌تی وێنه', infoTab : 'زانیاری وێنه', btnUpload : 'ناردنی بۆ ڕاژه', upload : 'بارکردن', alt : 'جێگره‌وه‌ی ده‌ق', lockRatio : 'داخستنی ڕێژه', resetSize : 'ڕێکخستنه‌وه‌ی قه‌باره', border : 'په‌راوێز', hSpace : 'بۆشایی ئاسۆیی', vSpace : 'بۆشایی ئه‌ستونی', alertUrl : 'تکایه‌ ناونیشانی به‌سته‌ری وێنه‌ بنووسه', linkTab : 'به‌سته‌ر', button2Img : 'تۆ ده‌ته‌وێت دوگمه‌ی وێنه‌ی دیاریکراو بگۆڕیت بۆ وێنه‌کی ئاسایی؟', img2Button : 'تۆ ده‌ته‌وێت وێنه‌ی دیاریکراو بگۆڕیت بۆ دوگمه‌ی وێنه؟', urlMissing : 'سه‌رچاوه‌ی به‌سته‌ری وێنه‌ بزره', validateBorder : 'په‌راوێز ده‌بێت به‌ته‌واوی ته‌نها ژماره‌ بێت.', validateHSpace : 'بۆشایی ئاسۆیی ده‌بێت به‌ته‌واوی ته‌نها ژماره‌ بێت.', validateVSpace : 'بۆشایی ئه‌ستونی ده‌بێت به‌ته‌واوی ته‌نها ژماره‌ بێت.' }, // Flash Dialog flash : { properties : 'خاسیه‌تی فلاش', propertiesTab : 'خاسیه‌ت', title : 'خاسیه‌تی فلاش', chkPlay : 'پێکردنی یان لێدانی خۆکار', chkLoop : 'گرێ', chkMenu : 'چالاککردنی لیسته‌ی فلاش', chkFull : 'ڕێپێدان به‌ پڕ به‌پڕی شاشه', scale : 'پێوانه', scaleAll : 'نیشاندانی هه‌موو', scaleNoBorder : 'بێ په‌راوێز', scaleFit : 'به‌وردی بگونجێت', access : 'ده‌ستپێگه‌یشتنی نووسراو', accessAlways : 'هه‌میشه', accessSameDomain: 'هه‌مان دۆمه‌ین', accessNever : 'هه‌رگیز', alignAbsBottom : 'له‌ ژێره‌وه', alignAbsMiddle : 'له‌ناوه‌ند', alignBaseline : 'هێڵەبنەڕەت', alignTextTop : 'ده‌ق له‌سه‌ره‌وه', quality : 'جۆرایه‌تی', qualityBest : 'باشترین', qualityHigh : 'به‌رزی', qualityAutoHigh : 'به‌رزی خۆکار', qualityMedium : 'مامناوه‌ند', qualityAutoLow : 'نزمی خۆکار', qualityLow : 'نزم', windowModeWindow: 'په‌نجه‌ره', windowModeOpaque: 'ناڕوون', windowModeTransparent : 'ڕۆشن', windowMode : 'شێوازی په‌نجه‌ره', flashvars : 'گۆڕاوه‌کان بۆ فلاش', bgcolor : 'ڕه‌نگی پاشبنه‌ما', hSpace : 'بۆشایی ئاسۆیی', vSpace : 'بۆشایی ئه‌ستونی', validateSrc : 'ناونیشانی به‌سته‌ر نابێت خاڵی بێت', validateHSpace : 'بۆشایی ئاسۆیی ده‌بێت ژماره‌ بێت.', validateVSpace : 'بۆشایی ئه‌ستونی ده‌بێت ژماره‌ بێت.' }, // Speller Pages Dialog spellCheck : { toolbar : 'پشکنینی ڕێنووس', title : 'پشکنینی ڕێنووس', notAvailable : 'ببووره‌، له‌مکاته‌دا ڕاژه‌که له‌به‌رده‌ستا نیه.', errorLoading : 'هه‌ڵه‌ له‌هێنانی داخوازینامه‌ی خانه‌خۆێی ڕاژه: %s.', notInDic : 'له‌فه‌رهه‌نگ دانیه', changeTo : 'گۆڕینی بۆ', btnIgnore : 'پشتگوێ کردن', btnIgnoreAll : 'پشتگوێکردنی هه‌مووی', btnReplace : 'له‌بریدانن', btnReplaceAll : 'له‌بریدانانی هه‌مووی', btnUndo : 'پووچکردنه‌وه', noSuggestions : '- هیچ پێشنیارێك -', progress : 'پشکنینی ڕێنووس له‌به‌رده‌وامبوون دایه...', noMispell : 'پشکنینی ڕێنووس کۆتای هات: هیچ هه‌ڵه‌یه‌کی ڕێنووس نه‌دۆزراوه', noChanges : 'پشکنینی ڕێنووس کۆتای هات: هیچ وشه‌یه‌ك نۆگۆڕدرا', oneChange : 'پشکنینی ڕێنووس کۆتای هات: یه‌ك وشه گۆڕدرا', manyChanges : 'پشکنینی ڕێنووس کۆتای هات: له‌سه‌دا %1 ی وشه‌کان گۆڕدرا', ieSpellDownload : 'پشکنینی ڕێنووس دانه‌مزراوه. ده‌ته‌وێت ئێستا دایبگریت?' }, smiley : { toolbar : 'زه‌رده‌خه‌نه', title : 'دانانی زه‌رده‌خه‌نه‌یه‌ك', options : 'هه‌ڵبژارده‌ی زه‌رده‌خه‌نه' }, elementsPath : { eleLabel : 'ڕێڕه‌وی توخمه‌کان', eleTitle : '%1 توخم' }, numberedlist : 'دانان/لابردنی ژمارەی لیست', bulletedlist : 'دانان/لابردنی خاڵی لیست', indent : 'زیادکردنی بۆشایی', outdent : 'کەمکردنەوەی بۆشایی', justify : { left : 'به‌هێڵ کردنی چه‌پ', center : 'ناوه‌ڕاست', right : 'به‌هێڵ کردنی ڕاست', block : 'هاوستوونی' }, blockquote : 'بەربەستکردنی وتەی وەرگیراو', clipboard : { title : 'لکاندن', cutError : 'پارێزی وێبگەڕەکەت ڕێگه‌نادات بە سەرنووسەکە له‌بڕینی خۆکار. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+X).', copyError : 'پارێزی وێبگەڕەکەت ڕێگه‌نادات بەسەرنووسەکە لە لکاندنی دەقی خۆکار. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+C).', pasteMsg : 'تکایه‌ بیلکێنه‌ له‌ناوه‌وه‌ی ئه‌م سنوقه له‌ڕێی ته‌خته‌کلیله‌که‌ت به‌باکارهێنانی کلیلی (<STRONG>Ctrl/Cmd+V</STRONG>) دووای کلیکی باشه‌ بکه.', securityMsg : 'به‌هۆی شێوه‌پێدانی پارێزی وێبگه‌ڕه‌که‌ت، سه‌رنووسه‌که‌ ناتوانێت ده‌ستبگه‌یه‌نێت به‌هه‌ڵگیراوه‌که ڕاسته‌وخۆ. بۆیه‌ پێویسته دووباره‌ بیلکێنیت له‌م په‌نجه‌ره‌یه‌.', pasteArea : 'ناوچه‌ی لکاندن' }, pastefromword : { confirmCleanup : 'ئه‌م ده‌قه‌ی به‌ته‌مای بیلکێنی پێده‌چێت له‌ word هێنرابێت. ده‌ته‌وێت پاکی بکه‌یوه‌ پێش ئه‌وه‌ی بیلکێنی؟', toolbar : 'لکاندنی له‌ڕێی Word', title : 'لکاندنی له‌لایه‌ن Word', error : 'هیچ ڕێگه‌یه‌ك نه‌بوو له‌لکاندنی ده‌قه‌که‌ به‌هۆی هه‌ڵه‌کی ناوه‌خۆیی' }, pasteText : { button : 'لکاندنی وه‌ك ده‌قی ڕوون', title : 'لکاندنی وه‌ك ده‌قی ڕوون' }, templates : { button : 'ڕووکار', title : 'پێکهاته‌ی ڕووکار', options : 'هه‌ڵبژارده‌کانی ڕووکار', insertOption : 'له‌شوێن دانانی ئه‌م پێکهاتانه‌ی ئێستا', selectPromptMsg : 'ڕووکارێك هه‌ڵبژێره‌ بۆ کردنه‌وه‌ی له‌ سه‌رنووسه‌ر:', emptyListMsg : '(هیچ ڕووکارێك دیارینه‌کراوه)' }, showBlocks : 'نیشاندانی بەربەستەکان', stylesCombo : { label : 'شێواز', panelTitle : 'شێوازی ڕازاندنه‌وه', panelTitle1 : 'شێوازی خشت', panelTitle2 : 'شێوازی ناوهێڵ', panelTitle3 : 'شێوازی به‌رکار' }, format : { label : 'ڕازاندنه‌وه', panelTitle : 'به‌شی ڕازاندنه‌وه‌', tag_p : 'ئاسایی', tag_pre : 'شێوازکراو', tag_address : 'ناونیشان', tag_h1 : 'سه‌رنووسه‌ی ١', tag_h2 : 'سه‌رنووسه‌ی ٢', tag_h3 : 'سه‌رنووسه‌ی ٣', tag_h4 : 'سه‌رنووسه‌ی ٤', tag_h5 : 'سه‌رنووسه‌ی ٥', tag_h6 : 'سه‌رنووسه‌ی ٦', tag_div : '(DIV)-ی ئاسایی' }, div : { title : 'دانانی له‌خۆگری Div', toolbar : 'دانانی له‌خۆگری Div', cssClassInputLabel : 'شێوازی چینی په‌ڕه', styleSelectLabel : 'شێواز', IdInputLabel : 'ناسنامه', languageCodeInputLabel : 'هێمای زمان', inlineStyleInputLabel : 'شێوازی ناوهێڵ', advisoryTitleInputLabel : 'سه‌ردێڕ', langDirLabel : 'ئاراسته‌ی زمان', langDirLTRLabel : 'چه‌پ بۆ ڕاست (LTR)', langDirRTLLabel : 'ڕاست بۆ چه‌پ (RTL)', edit : 'چاکسازی Div', remove : 'لابردنی Div' }, iframe : { title : 'دیالۆگی چووارچێوه', toolbar : 'چووارچێوه', noUrl : 'تکایه‌ ناونیشانی به‌سته‌ر بنووسه‌ بۆ چووارچێوه‌', scrolling : 'چالاککردنی هاتووچۆپێکردن', border : 'نیشاندانی لاکێشه‌ به‌چووارده‌وری چووارچێوه' }, font : { label : 'فۆنت', voiceLabel : 'فۆنت', panelTitle : 'ناوی فۆنت' }, fontSize : { label : 'گه‌وره‌یی', voiceLabel : 'گه‌وره‌یی فۆنت', panelTitle : 'گه‌وره‌یی فۆنت' }, colorButton : { textColorTitle : 'ڕه‌نگی ده‌ق', bgColorTitle : 'ڕه‌نگی پاشبنه‌ما', panelTitle : 'ڕه‌نگه‌کان', auto : 'خۆکار', more : 'ڕه‌نگی زیاتر...' }, colors : { '000' : 'ڕه‌ش', '800000' : 'سۆرو ماڕوونی', '8B4513' : 'ماڕوونی', '2F4F4F' : 'سه‌وزی تاریك', '008080' : 'سه‌وزو شین', '000080' : 'شینی تۆخ', '4B0082' : 'مۆری تۆخ', '696969' : 'ڕه‌ساسی تۆخ', 'B22222' : 'سۆری تۆخ', 'A52A2A' : 'قاوه‌یی', 'DAA520' : 'قاوه‌یی بریسکه‌دار', '006400' : 'سه‌وزی تۆخ', '40E0D0' : 'شینی ناتۆخی بریسکه‌دار', '0000CD' : 'شینی مامناوه‌ند', '800080' : 'په‌مبه‌یی', '808080' : 'ڕه‌ساسی', 'F00' : 'سۆر', 'FF8C00' : 'ناره‌نجی تۆخ', 'FFD700' : 'زه‌رد', '008000' : 'سه‌وز', '0FF' : 'شینی ئاسمانی', '00F' : 'شین', 'EE82EE' : 'په‌مه‌یی', 'A9A9A9' : 'ڕه‌ساسی ناتۆخ', 'FFA07A' : 'ناره‌نجی ناتۆخ', 'FFA500' : 'ناره‌نجی', 'FFFF00' : 'زه‌رد', '00FF00' : 'سه‌وز', 'AFEEEE' : 'شینی ناتۆخ', 'ADD8E6' : 'شینی زۆر ناتۆخ', 'DDA0DD' : 'په‌مه‌یی ناتۆخ', 'D3D3D3' : 'ڕه‌ساسی بریسکه‌دار', 'FFF0F5' : 'جه‌رگی زۆر ناتۆخ', 'FAEBD7' : 'جه‌رگی ناتۆخ', 'FFFFE0' : 'سپی ناتۆخ', 'F0FFF0' : 'هه‌نگوینی ناتۆخ', 'F0FFFF' : 'شینێکی زۆر ناتۆخ', 'F0F8FF' : 'شینێکی ئاسمانی زۆر ناتۆخ', 'E6E6FA' : 'شیری', 'FFF' : 'سپی' }, scayt : { title : 'پشکنینی نووسه‌ له‌کاتی نووسین', opera_title : 'پشتیوانی نه‌کراوه له‌لایه‌ن Opera', enable : 'چالاککردنی SCAYT', disable : 'ناچالاککردنی SCAYT', about : 'ده‌رباره‌ی SCAYT', toggle : 'گۆڕینی SCAYT', options : 'هه‌ڵبژارده', langs : 'زمانه‌کان', moreSuggestions : 'پێشنیاری زیاتر', ignore : 'پشتگوێخستن', ignoreAll : 'پشتگوێخستنی هه‌مووی', addWord : 'زیادکردنی ووشه', emptyDic : 'ناوی فه‌رهه‌نگ نابێت خاڵی بێت.', optionsTab : 'هه‌ڵبژارده', allCaps : 'پشتگوێخستنی وشانه‌ی پێکهاتووه له‌پیتی گه‌وره‌', ignoreDomainNames : 'پشتگوێخستنی دۆمه‌ین', mixedCase : 'پشتگوێخستنی وشانه‌ی پێکهاتووه له‌پیتی گه‌وره‌و بچووك', mixedWithDigits : 'پشتگوێخستنی وشانه‌ی پێکهاتووه له‌ژماره', languagesTab : 'زمانه‌کان', dictionariesTab : 'فه‌رهه‌نگه‌کان', dic_field_name : 'ناوی فه‌رهه‌نگ', dic_create : 'درووستکردن', dic_restore : 'گه‌ڕاندنه‌وه', dic_delete : 'سڕینه‌وه', dic_rename : 'گۆڕینی ناو', dic_info : 'له‌بنچینه‌دا فه‌رهه‌نگی به‌کارهێنه‌ر کۆگاکردن کراوه‌ له‌ شه‌کرۆکه Cookie, هه‌رچۆنێك بێت شه‌کۆرکه سنووردار کراوه له‌ قه‌باره کۆگاکردن.کاتێك فه‌رهه‌نگی به‌کارهێنه‌ر گه‌یشته‌ ئه‌م خاڵه‌ی که‌ناتوانرێت زیاتر کۆگاکردن بکرێت له‌ شه‌کرۆکه‌، ئه‌وسا فه‌رهه‌نگه‌که‌ پێویسته‌ کۆگابکرێت له‌ ڕاژه‌که‌ی ئێمه‌.‌ بۆ کۆگاکردنی زانیاری تایبه‌تی فه‌رهه‌نگه‌که‌ له‌ ڕاژه‌که‌ی ئێمه, پێویسته‌ ناوێك هه‌ڵبژێریت بۆ فه‌رهه‌نگه‌که‌. گه‌ر تۆ فه‌رهه‌نگێکی کۆگاکراوت هه‌یه‌, تکایه‌ ناوی فه‌رهه‌نگه‌که‌ بنووسه‌ وه‌ کلیکی دوگمه‌ی گه‌ڕاندنه‌وه‌ بکه.', aboutTab : 'ده‌رباره‌ی' }, about : { title : 'ده‌رباره‌ی CKEditor', dlgTitle : 'ده‌رباره‌ی CKEditor', help : 'سه‌یری $1 بکه‌ بۆ یارمه‌تی.', userGuide : 'ڕێپیشانده‌ری CKEditors', moreInfo : 'بۆ زانیاری زیاتری مۆڵه‌ت, تکایه‌ سه‌ردانی ماڵپه‌ڕه‌که‌مان بکه:', copy : 'مافی له‌به‌رگرتنه‌وه‌ی &copy; $1. گشتی پارێزراوه.' }, maximize : 'ئەوپه‌ڕی گەورەیی', minimize : 'ئەوپەڕی بچووکی', fakeobjects : { anchor : 'له‌نگه‌ر', flash : 'فلاش', iframe : 'له‌چوارچێوه', hiddenfield : 'شاردنه‌وه‌ی خانه', unknown : 'به‌رکارێکی نه‌ناسراو' }, resize : 'ڕابکێشە بۆ گۆڕینی قەبارەکەی', colordialog : { title : 'هه‌ڵبژاردنی ڕه‌نگ', options : 'هه‌ڵبژارده‌ی ڕه‌نگه‌کان', highlight : 'نیشانکردن', selected : 'هه‌ڵبژاردرا', clear : 'پاککردنه‌وه' }, toolbarCollapse : 'شاردنەوی هێڵی تووڵامراز', toolbarExpand : 'نیشاندانی هێڵی تووڵامراز', toolbarGroups : { document : 'په‌ڕه', clipboard : 'بڕین/پووچکردنه‌وه', editing : 'چاکسازی', forms : 'داڕشته', basicstyles : 'شێوازی بنچینه‌یی', paragraph : 'بڕگه', links : 'به‌سته‌ر', insert : 'خستنه‌ ناو', styles : 'شێواز', colors : 'ڕه‌نگه‌کان', tools : 'ئامرازه‌کان' }, bidi : { ltr : 'ئاراسته‌ی نووسه‌ له‌چه‌پ بۆ ڕاست', rtl : 'ئاراسته‌ی نووسه‌ له‌ڕاست بۆ چه‌پ' }, docprops : { label : 'خاسییه‌تی په‌ڕه', title : 'خاسییه‌تی په‌ڕه', design : 'شێوه‌کار', meta : 'زانیاری مێتا', chooseColor : '‌هه‌ڵبژێره', other : 'هیتر...', docTitle : 'سه‌ردێڕی په‌ڕه', charset : 'ده‌سته‌ی نووسه‌ی به‌کۆده‌که‌ر', charsetOther : 'ده‌سته‌ی نووسه‌ی به‌کۆده‌که‌ری تر', charsetASCII : 'ASCII', charsetCE : 'ناوه‌ڕاست ئه‌وروپا', charsetCT : 'چینی(Big5)', charsetCR : 'سیریلیك', charsetGR : 'یۆنانی', charsetJP : 'ژاپۆن', charsetKR : 'کۆریا', charsetTR : 'تورکیا', charsetUN : 'Unicode (UTF-8)', charsetWE : 'ڕۆژئاوای ئه‌وروپا', docType : 'سه‌رپه‌ڕه‌ی جۆری په‌ڕه', docTypeOther : 'سه‌رپه‌ڕه‌ی جۆری په‌ڕه‌ی تر', xhtmlDec : 'به‌یاننامه‌کانی XHTML له‌گه‌ڵدابێت', bgColor : 'ڕه‌نگی پاشبنه‌ما', bgImage : 'ناونیشانی به‌سته‌ری وێنه‌ی پاشبنه‌ما', bgFixed : 'بێ هاتووچوپێکردنی (چه‌سپاو) پاشبنه‌مای وێنه', txtColor : 'ڕه‌نگی ده‌ق', margin : 'ته‌نیشت په‌ڕه‌', marginTop : 'سه‌ره‌وه', marginLeft : 'چه‌پ', marginRight : 'ڕاست', marginBottom : 'ژێره‌وه', metaKeywords : 'به‌ڵگه‌نامه‌ی وشه‌ی کاریگه‌ر(به‌ کۆما لێکیان جیابکه‌وه)', metaDescription : 'پێناسه‌ی لاپه‌ڕه', metaAuthor : 'نووسه‌ر', metaCopyright : 'مافی بڵاوکردنه‌وه‌ی', previewHtml : '<p>ئه‌مه‌ وه‌ك نموونه‌ی <strong>ده‌قه</strong>. تۆ به‌کارده‌هێنیت <a href="javascript:void(0)">CKEditor</a>.</p>' } };
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','cs',{devTools:{title:'Informace o prvku',dialogName:'Název dialogového okna',tabName:'Název karty',elementId:'ID prvku',elementType:'Typ prvku'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','eo',{devTools:{title:'Informo pri la elemento',dialogName:'Nomo de la dialogfenestro',tabName:'Langetnomo',elementId:'ID de la elemento',elementType:'Tipo de la elemento'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','bg',{devTools:{title:'Информация за елемента',dialogName:'Име на диалоговия прозорец',tabName:'Име на таб',elementId:'ID на елемента',elementType:'Тип на елемента'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','sk',{devTools:{title:'Informácie o prvku',dialogName:'Názov okna dialógu',tabName:'Názov záložky',elementId:'ID prvku',elementType:'Typ prvku'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','pl',{devTools:{title:'Informacja o elemencie',dialogName:'Nazwa okna dialogowego',tabName:'Nazwa zakładki',elementId:'ID elementu',elementType:'Typ elementu'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','nl',{devTools:{title:'Elementinformatie',dialogName:'Naam dialoogvenster',tabName:'Tabnaam',elementId:'Element ID',elementType:'Elementtype'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','da',{devTools:{title:'Information på elementet',dialogName:'Dialogboks',tabName:'Tab beskrivelse',elementId:'ID på element',elementType:'Type af element'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','tr',{devTools:{title:'Eleman Bilgisi',dialogName:'İletişim pencere ismi',tabName:'Sekme adı',elementId:'Eleman ID',elementType:'Eleman türü'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','de',{devTools:{title:'Elementinformation',dialogName:'Dialogfenstername',tabName:'Reitername',elementId:'Element ID',elementType:'Elementtyp'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','fi',{devTools:{title:'Elementin tiedot',dialogName:'Dialogi-ikkunan nimi',tabName:'Välilehden nimi',elementId:'Elementin ID',elementType:'Elementin tyyppi'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','vi',{devTools:{title:'Thông tin thành ph',dialogName:'Tên hộp tho',tabName:'Tên th',elementId:'Mã thành ph',elementType:'Loại thành ph'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','cy',{devTools:{title:'Gwybodaeth am yr Elfen',dialogName:'Enw ffenestr y deialog',tabName:"Enw'r tab",elementId:'ID yr Elfen',elementType:'Math yr elfen'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','nb',{devTools:{title:'Elementinformasjon',dialogName:'Navn på dialogvindu',tabName:'Navn på fane',elementId:'Element-ID',elementType:'Elementtype'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','ug',{devTools:{title:'ئېلېمېنت ئۇچۇرى',dialogName:'سۆزلەشكۈ كۆزنەك ئاتى',tabName:'Tab ئاتى',elementId:'ئېلېمېنت كىملىكى',elementType:'ئېلېمېنت تىپى'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','el',{devTools:{title:'Πληροφορίες Στοιχείου',dialogName:'Όνομα παραθύρου διαλόγου',tabName:'Όνομα καρτέλας',elementId:'ID Στοιχείου',elementType:'Τύπος στοιχείου'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'fa', { devTools : { title : 'اطلاعات عنصر', dialogName : 'نام پنجره محاوره‌ای', tabName : 'نام برگه', elementId : 'ID عنصر', elementType : 'نوع عنصر' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','no',{devTools:{title:'Elementinformasjon',dialogName:'Navn på dialogvindu',tabName:'Navn på fane',elementId:'Element-ID',elementType:'Elementtype'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'ku', { devTools : { title : 'زانیاری توخم', dialogName : 'ناوی په‌نجه‌ره‌ی دیالۆگ', tabName : 'ناوی بازده‌ر تاب', elementId : 'ناسنامه‌ی توخم', elementType : 'جۆری توخم' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','en',{devTools:{title:'Element Information',dialogName:'Dialog window name',tabName:'Tab name',elementId:'Element ID',elementType:'Element type'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','hr',{devTools:{title:'Informacije elementa',dialogName:'Naziv prozora za dijalog',tabName:'Naziva jahača',elementId:'ID elementa',elementType:'Vrsta elementa'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','uk',{devTools:{title:'Відомості про Елемент',dialogName:'Заголовок діалогового вікна',tabName:'Назва вкладки',elementId:'Ідентифікатор Елемента',elementType:'Тип Елемента'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','it',{devTools:{title:'Informazioni elemento',dialogName:'Nome finestra di dialogo',tabName:'Nome Tab',elementId:'ID Elemento',elementType:'Tipo elemento'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','gu',{devTools:{title:'પ્રાથમિક માહિતી',dialogName:'વિન્ડોનું નામ',tabName:'ટેબનું નામ',elementId:'પ્રાથમિક આઈડી',elementType:'પ્રાથમિક પ્રકાર'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','he',{devTools:{title:'מידע על האלמנט',dialogName:'שם הדיאלוג',tabName:'שם הטאב',elementId:'ID של האלמנט',elementType:'סוג האלמנט'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','et',{devTools:{title:'Elemendi andmed',dialogName:'Dialoogiakna nimi',tabName:'Saki nimi',elementId:'Elemendi ID',elementType:'Elemendi liik'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','pt-br',{devTools:{title:'Informação do Elemento',dialogName:'Nome da janela de diálogo',tabName:'Nome da aba',elementId:'ID do elemento',elementType:'Tipo do elemento'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','fr',{devTools:{title:"Information sur l'élément",dialogName:'Nom de la fenêtre de dialogue',tabName:"Nom de l'onglet",elementId:"ID de l'élément",elementType:"Type de l'élément"}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','zh-cn',{devTools:{title:'元素信息',dialogName:'对话框窗口名称',tabName:'Tab 名称',elementId:'元素 ID',elementType:'元素类型'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','cs',{placeholder:{title:'Vlastnosti vyhrazeného prostoru',toolbar:'Vytvořit vyhrazený prostor',text:'Vyhrazený text',edit:'Upravit vyhrazený prostor',textMissing:'Vyhrazený prostor musí obsahovat text.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','eo',{placeholder:{title:'Atributoj de la rezervita spaco',toolbar:'Krei la rezervitan spacon',text:'Texto de la rezervita spaco',edit:'Modifi la rezervitan spacon',textMissing:'La rezervita spaco devas enteni tekston.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','bg',{placeholder:{title:'Настройки на контейнера',toolbar:'Нов контейнер',text:'Текст за контейнера',edit:'Промяна на контейнер',textMissing:'Контейнера трябва да съдържа текст.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','sk',{placeholder:{title:'Vlastnosti placeholdera',toolbar:'Vytvoriť placeholder',text:'Text placeholdera',edit:'Upraviť placeholder',textMissing:'Placeholder musí obsahovať text.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','pl',{placeholder:{title:'Właściwości wypełniacza',toolbar:'Utwórz wypełniacz',text:'Tekst wypełnienia',edit:'Edytuj wypełnienie',textMissing:'Wypełnienie musi posiadać jakiś tekst.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','nl',{placeholder:{title:'Eigenschappen placeholder',toolbar:'Placeholder aanmaken',text:'Placeholder tekst',edit:'Placeholder wijzigen',textMissing:'De placeholder moet tekst bevatten.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','da',{placeholder:{title:'Egenskaber for pladsholder',toolbar:'Opret pladsholder',text:'Tekst til pladsholder',edit:'Redigér pladsholder',textMissing:'Pladsholder skal indeholde tekst'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','tr',{placeholder:{title:'Yer tutucu özellikleri',toolbar:'Yer tutucu oluşturun',text:'Yer tutucu metini',edit:'Yer tutucuyu düzenle',textMissing:'Yer tutucu metin içermelidir.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','de',{placeholder:{title:'Platzhalter Einstellungen',toolbar:'Platzhalter erstellen',text:'Platzhalter Text',edit:'Platzhalter bearbeiten',textMissing:'Der Platzhalter muss einen Text beinhalten.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','fi',{placeholder:{title:'Paikkamerkin ominaisuudet',toolbar:'Luo paikkamerkki',text:'Paikkamerkin teksti',edit:'Muokkaa paikkamerkkiä',textMissing:'Paikkamerkin täytyy sisältää tekstiä'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','vi',{placeholder:{title:'Thuộc tính đặt chỗ',toolbar:'Tạo đặt chỗ',text:'Văn bản đặt chỗ',edit:'Chỉnh sửa ',textMissing:'The placeholder must contain text.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','cy',{placeholder:{title:"Priodweddau'r Daliwr Geiriau",toolbar:'Creu Daliwr Geiriau',text:'Testun y Daliwr Geiriau',edit:"Golygu'r Dailwr Geiriau",textMissing:"Mae'n rhaid i'r daliwr geiriau gynnwys testun."}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','nb',{placeholder:{title:'Egenskaper for plassholder',toolbar:'Opprett plassholder',text:'Tekst for plassholder',edit:'Rediger plassholder',textMissing:'Plassholderen må inneholde tekst.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','ug',{placeholder:{title:'ئورۇن بەلگە خاسلىقى',toolbar:'ئورۇن بەلگە قۇر',text:'ئورۇن بەلگە تېكىستى',edit:'ئورۇن بەلگە تەھرىر',textMissing:'ئورۇن بەلگىسىدە چوقۇم تېكىست بولۇشى لازىم'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','el',{placeholder:{title:'Ιδιότητες Υποκατάστατου Κειμένου',toolbar:'Δημιουργία Υποκατάσταστου Κειμένου',text:'Υποκαθιστόμενο Κείμενο',edit:'Επεξεργασία Υποκατάσταστου Κειμένου',textMissing:'Πρέπει να υπάρχει υποκαθιστόμενο κείμενο.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'placeholder', 'fa', { placeholder : { title : 'ویژگی‌های محل نگهداری', toolbar : 'ایجاد یک محل نگهداری', text : 'متن محل نگهداری', edit : 'ویرایش محل نگهداری', textMissing : 'محل نگهداری باید محتوی متن باشد.' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','no',{placeholder:{title:'Egenskaper for plassholder',toolbar:'Opprett plassholder',text:'Tekst for plassholder',edit:'Rediger plassholder',textMissing:'Plassholderen må inneholde tekst.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'placeholder', 'ku', { placeholder : { title : 'خاسیه‌تی شوێن هه‌ڵگر', toolbar : 'درووستکردنی شوێن هه‌ڵگر', text : 'ده‌ق بۆ شوێن هه‌ڵگڕ', edit : 'چاکسازی شوێن هه‌ڵگڕ', textMissing : 'شوێن هه‌ڵگڕ ده‌بێت له‌ده‌ق پێکهاتبێت.' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',textMissing:'The placeholder must contain text.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','hr',{placeholder:{title:'Svojstva rezerviranog mjesta',toolbar:'Napravi rezervirano mjesto',text:'Tekst rezerviranog mjesta',edit:'Uredi rezervirano mjesto',textMissing:'Rezervirano mjesto mora sadržavati tekst.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','uk',{placeholder:{title:'Налаштування Заповнювача',toolbar:'Створити Заповнювач',text:'Текст Заповнювача',edit:'Редагувати Заповнювач',textMissing:'Заповнювач повинен містити текст.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','it',{placeholder:{title:'Proprietà segnaposto',toolbar:'Crea segnaposto',text:'Testo segnaposto',edit:'Modifica segnaposto',textMissing:'Il segnaposto deve contenere del testo.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','he',{placeholder:{title:'מאפייני שומר מקום',toolbar:'צור שומר מקום',text:'תוכן שומר המקום',edit:'ערוך שומר מקום',textMissing:'שומר המקום חייב להכיל טקסט.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','et',{placeholder:{title:'Kohahoidja omadused',toolbar:'Kohahoidja loomine',text:'Kohahoidja tekst',edit:'Kohahoidja muutmine',textMissing:'Kohahoidja peab sisaldama teksti.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','pt-br',{placeholder:{title:'Propriedades do Espaço Reservado',toolbar:'Criar Espaço Reservado',text:'Texto do Espaço Reservado',edit:'Editar Espaço Reservado',textMissing:'O espaço reservado deve conter texto.'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','fr',{placeholder:{title:"Propriétés de l'Espace réservé",toolbar:"Créer l'Espace réservé",text:"Texte de l'Espace réservé",edit:"Modifier l'Espace réservé",textMissing:"L'Espace réservé doit contenir du texte."}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','zh-cn',{placeholder:{title:'占位符属性',toolbar:'创建占位符',text:'占位符文字',edit:'编辑占位符',textMissing:'占位符必须包含文字。'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','cs',{uicolor:{title:'Výběr barvy rozhraní',preview:'Živý náhled',config:'Vložte tento řetězec do Vašeho souboru config.js',predefined:'Přednastavené sady barev'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','eo',{uicolor:{title:'UI Kolorselektilo',preview:'Vidigi la aspekton',config:'Gluu tiun signoĉenon en vian dosieron config.js',predefined:'Antaŭdifinita koloraro'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','bg',{uicolor:{title:'ПИ избор на цвят',preview:'Преглед',config:'Вмъкнете този низ във Вашия config.js fajl',predefined:'Предефинирани цветови палитри'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','sk',{uicolor:{title:'UI výber farby',preview:'Živý náhľad',config:'Vložte tento reťazec do vášho config.js súboru',predefined:'Preddefinované sady farieb'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','pl',{uicolor:{title:'Wybór koloru interfejsu',preview:'Podgląd na żywo',config:'Wklej poniższy łańcuch znaków do pliku config.js:',predefined:'Predefiniowane zestawy kolorów'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','nl',{uicolor:{title:'UI Kleurenkiezer',preview:'Live voorbeeld',config:'Plak deze tekst in jouw config.js bestand',predefined:'Voorgedefinieerde kleurensets'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','da',{uicolor:{title:'Brugerflade på farvevælger',preview:'Vis liveeksempel',config:'Indsæt denne streng i din config.js fil',predefined:'Prædefinerede farveskemaer'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','tr',{uicolor:{title:'UI Renk Seçicisi',preview:'Canlı önizleme',config:'Bu dizeyi config.js dosyasının içine yapıştırın',predefined:'Önceden tanımlanmış renk kümeleri'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','de',{uicolor:{title:'UI Pipette',preview:'Live-Vorschau',config:"Fügen Sie diese Zeichenfolge in die 'config.js' Datei.",predefined:'Vordefinierte Farbsätze'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','fi',{uicolor:{title:'Käyttöliittymän värivalitsin',preview:'Esikatsele',config:'Liitä tämä merkkijono config.js tiedostoosi',predefined:'Esimääritellyt värijoukot'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','vi',{uicolor:{title:'Giao diện người dùng Color Picker',preview:'Xem trước trực tiếp',config:'Dán chuỗi này vào tập tin config.js của bạn',predefined:'Tập màu định nghĩa sẵn'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','cy',{uicolor:{title:"Dewisydd Lliwiau'r UI",preview:'Rhagolwg Byw',config:"Gludwch y llinyn hwn i'ch ffeil config.js",predefined:"Setiau lliw wedi'u cyn-ddiffinio"}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','nb',{uicolor:{title:'Fargevelger for brukergrensesnitt',preview:'Forhåndsvisning i sanntid',config:'Lim inn følgende tekst i din config.js-fil',predefined:'Forhåndsdefinerte fargesett'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','ug',{uicolor:{title:'ئىشلەتكۈچى ئارايۈزى رەڭ تاللىغۇچ',preview:'شۇئان ئالدىن كۆزىتىش',config:'بۇ ھەرپ تىزىقىنى config.js ھۆججەتكە چاپلايدۇ',predefined:'ئالدىن بەلگىلەنگەن رەڭلەر'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','el',{uicolor:{title:'Διεπαφή Επιλογέα Χρωμάτων',preview:'Ζωντανή Προεπισκόπηση',config:'Επικολλήστε αυτό το κείμενο στο αρχείο config.js',predefined:'Προκαθορισμένα σύνολα χρωμάτων'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'fa', { uicolor : { title : 'انتخاب رنگ UI', preview : 'پیش‌نمایش زنده', config : 'این رشته را در فایل config.js خود بچسبانید.', predefined : 'مجموعه رنگ از پیش تعریف شده' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','no',{uicolor:{title:'Fargevelger for brukergrensesnitt',preview:'Forhåndsvisning i sanntid',config:'Lim inn følgende tekst i din config.js-fil',predefined:'Forhåndsdefinerte fargesett'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'ku', { uicolor : { title : 'هه‌ڵگری ڕه‌نگ بۆ ڕووکاری به‌کارهێنه‌ر', preview : 'پێشبینین به‌ زیندوویی', config : 'ئه‌م ده‌قانه‌ بلکێنه‌ به‌ په‌ڕگه‌ی config.js-fil', predefined : 'کۆمه‌ڵه‌ ڕه‌نگه‌ دیاریکراوه‌کانی پێشوو' } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefined color sets'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','hr',{uicolor:{title:'UI odabir boja',preview:'Pregled uživo',config:'Zalijepite ovaj tekst u Vašu config.js datoteku.',predefined:'Već postavljeni setovi boja'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','uk',{uicolor:{title:'Color Picker Інтерфейс',preview:'Перегляд наживо',config:'Вставте цей рядок у файл config.js',predefined:'Стандартний набір кольорів'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','it',{uicolor:{title:'Selettore Colore UI',preview:'Anteprima Live',config:'Incolla questa stringa nel tuo file config.js',predefined:'Set di colori predefiniti'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות צבעים מוגדרות מראש'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','et',{uicolor:{title:'Värvivalija kasutajaliides',preview:'Automaatne eelvaade',config:'Aseta see sõne oma config.js faili.',predefined:'Eelmääratud värvikomplektid'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','pt-br',{uicolor:{title:'Paleta de Cores',preview:'Visualização ao vivo',config:'Cole o texto no seu arquivo config.js',predefined:'Conjuntos de cores predefinidos'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','fr',{uicolor:{title:'UI Sélecteur de couleur',preview:'Aperçu',config:'Collez cette chaîne de caractères dans votre fichier config.js',predefined:'Palettes de couleurs prédéfinies'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','mk',{uicolor:{title:'Палета со бои',preview:'Преглед',config:'Залепи го овој текст во config.js датотеката',predefined:'Предефинирани множества на бои'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','zh-cn',{uicolor:{title:'用户界面颜色选择器',preview:'即时预览',config:'粘贴此字符串到您的 config.js 文件',predefined:'预定义颜色集'}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'fa', { euro: 'نشان یورو', lsquo: 'علامت نقل قول تکی چپ', rsquo: 'علامت نقل قول تکی راست', ldquo: 'علامت دوتایی نقل قول چپ', rdquo: 'علامت دوتایی نقل قول راست', ndash: 'En dash', // MISSING mdash: 'Em dash', // MISSING iexcl: 'علامت گذاری به عنوان علامت تعجب وارونه', cent: 'نشان سنت', pound: 'نشان پوند', curren: 'نشان ارز', yen: 'نشان ین', brvbar: 'نوار شکسته', sect: 'نشان بخش', uml: 'Diaeresis', // MISSING copy: 'نشان کپی رایت', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'علامت ثبت نشده', reg: 'علامت ثبت شده', macr: 'Macron', // MISSING deg: 'نشان درجه', sup2: 'بالانویس دو', sup3: 'بالانویس سه', acute: 'لهجه غلیظ', micro: 'نشان مایکرو', para: 'Pilcrow sign', // MISSING middot: 'نقطه میانی', cedil: 'Cedilla', // MISSING sup1: 'Superscript one', // MISSING ordm: 'Masculine ordinal indicator', // MISSING raquo: 'نشان زاویه‌دار دوتایی نقل قول راست چین', frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'جهت‌نمای دوتایی چپ به راست', diams: 'Black diamond suit', // MISSING asymp: 'تقریبا برابر با' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'ku', { euro: 'نیشانه‌ی یۆرۆ', lsquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری تاکی چه‌پ', rsquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری تاکی ڕاست', ldquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری دووهێنده‌ی چه‌پ', rdquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری دووهێنده‌ی ڕاست', ndash: 'ته‌قه‌ڵی کورت', mdash: 'ته‌قه‌ڵی درێژ', iexcl: 'نیشانه‌ی هه‌ڵه‌وگێڕی سه‌رسوڕمێنه‌ر', cent: 'نیشانه‌ی سه‌نت', pound: 'نیشانه‌ی پاوه‌ند', curren: 'نیشانه‌ی دراو', yen: 'نیشانه‌ی یه‌نی ژاپۆنی', brvbar: 'شریتی ئه‌ستوونی پچڕاو', sect: 'نیشانه‌ی دوو s له‌سه‌ریه‌ك', uml: 'خاڵ', copy: 'نیشانه‌ی مافی چاپ', ordf: 'هێڵ له‌سه‌ر پیتی a', laquo: 'دوو تیری به‌دووایه‌کی چه‌پ', not: 'نیشانه‌ی نه‌خێر', reg: 'نیشانه‌ی R له‌ناو بازنه‌دا', macr: 'ماکڕوون', deg: 'نیشانه‌ی پله', sup2: 'سه‌رنووسی دوو', sup3: 'سه‌رنووسی سێ', acute: 'لاری تیژ', micro: 'نیشانه‌ی u لق درێژی چه‌پی خواروو', para: 'نیشانه‌یپه‌ڕه‌گراف', middot: 'ناوه‌ڕاستی خاڵ', cedil: 'نیشانه‌ی c ژێر چووکره‌', sup1: 'سه‌رنووسی یه‌ك', ordm: 'هێڵ له‌ژێر پیتی o', raquo: 'دوو تیری به‌دووایه‌کی ڕاست', frac14: 'یه‌ك له‌سه‌ر چووار', frac12: 'یه‌ك له‌سه‌ر دوو', frac34: 'سێ له‌سه‌ر چووار', iquest: 'هێمای هه‌ڵه‌وگێری پرسیار', Agrave: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Aacute: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Acirc: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Atilde: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Auml: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Aring: 'پیتی لاتینی گه‌وره‌ی Å', AElig: 'پیتی لاتینی گه‌وره‌ی Æ', Ccedil: 'پیتی لاتینی C-ی گه‌وره‌ له‌گه‌ڵ ژێر چووکره‌', Egrave: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Eacute: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ecirc: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Euml: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Igrave: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Iacute: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Icirc: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Iuml: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', ETH: 'پیتی لاتینی E-ی گه‌وره‌ی', Ntilde: 'پیتی لاتینی N-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Ograve: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Oacute: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ocirc: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Otilde: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Ouml: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', times: 'نیشانه‌ی لێکدان', Oslash: 'پیتی لاتینی گه‌وره‌ی Ø له‌گه‌ڵ هێمای دڵ وه‌ستان', Ugrave: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Uacute: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ucirc: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Uuml: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Yacute: 'پیتی لاتینی Y-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', THORN: 'پیتی لاتینی دڕکی گه‌وره', szlig: 'پیتی لاتنی نووك تیژی s', agrave: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', aacute: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', acirc: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', atilde: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ زه‌ڕه‌', auml: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', aring: 'پیتی لاتینی å-ی بچووك', aelig: 'پیتی لاتینی æ-ی بچووك', ccedil: 'پیتی لاتینی c-ی بچووك له‌گه‌ڵ ژێر چووکره‌', egrave: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', eacute: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ecirc: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', euml: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', igrave: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', iacute: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', icirc: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', iuml: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', eth: 'پیتی لاتینی e-ی بچووك', ntilde: 'پیتی لاتینی n-ی بچووك له‌گه‌ڵ زه‌ڕه‌', ograve: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', oacute: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ocirc: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', otilde: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ زه‌ڕه‌', ouml: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', divide: 'نیشانه‌ی دابه‌ش', oslash: 'پیتی لاتینی گه‌وره‌ی ø له‌گه‌ڵ هێمای دڵ وه‌ستان', ugrave: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', uacute: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ucirc: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', uuml: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', yacute: 'پیتی لاتینی y-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', thorn: 'پیتی لاتینی دڕکی بچووك', yuml: 'پیتی لاتینی y-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', OElig: 'پیتی لاتینی گه‌وره‌ی پێکه‌وه‌نووسراوی OE', oelig: 'پیتی لاتینی بچووکی پێکه‌وه‌نووسراوی oe', '372': 'پیتی لاتینی W-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '374': 'پیتی لاتینی Y-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '373': 'پیتی لاتینی w-ی بچووکی له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '375': 'پیتی لاتینی y-ی بچووکی له‌گه‌ڵ نیشانه‌ له‌سه‌ری', sbquo: 'نیشانه‌ی فاریزه‌ی نزم', '8219': 'نیشانه‌ی فاریزه‌ی به‌رزی پێچه‌وانه', bdquo: 'دوو فاریزه‌ی ته‌نیش یه‌ك', hellip: 'ئاسۆیی بازنه', trade: 'نیشانه‌ی بازرگانی', '9658': 'ئاراسته‌ی ڕه‌شی ده‌ستی ڕاست', bull: 'فیشه‌ك', rarr: 'تیری ده‌ستی ڕاست', rArr: 'دووتیری ده‌ستی ڕاست', hArr: 'دوو تیری ڕاست و چه‌پ', diams: 'ڕه‌شی پاقڵاوه‌یی', asymp: 'نیشانه‌ی یه‌کسانه' });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('docprops',{init:function(a){var b=new CKEDITOR.dialogCommand('docProps');b.modes={wysiwyg:a.config.fullPage};a.addCommand('docProps',b);CKEDITOR.dialog.add('docProps',this.path+'dialogs/docprops.js');a.ui.addButton('DocProps',{label:a.lang.docprops.label,command:'docProps'});}});
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'fa', { accessibilityHelp : { title : 'دستورالعمل‌های دسترسی', contents : 'راهنمای فهرست مطالب. برای بستن این کادر محاوره‌ای ESC را فشار دهید.', legend : [ { name : 'عمومی', items : [ { name : 'نوار ابزار ویرایشگر', legend: '${toolbarFocus} را برای باز کردن نوار ابزار بفشارید. با کلید Tab و Shif-Tab در مجموعه نوار ابزار بعدی و قبلی حرکت کنید. برای حرکت در کلید نوار ابزار قبلی و بعدی با کلید جهت‌نمای راست و چپ جابجا شوید. کلید Space یا Enter را برای فعال کردن کلید نوار ابزار بفشارید.' }, { name : 'پنجره محاوره‌ای ویرایشگر', legend : 'در داخل یک پنجره محاوره‌ای، کلید Tab را بفشارید تا به پنجره‌ی بعدی بروید، Shift+Tab برای حرکت به فیلد قبلی، فشردن Enter برای ثبت اطلاعات پنجره‌، فشردن Esc برای لغو پنجره محاوره‌ای و برای پنجره‌هایی که چندین برگه دارند، فشردن Alt+F10 جهت رفتن به Tab-List. در نهایت حرکت به برگه بعدی با Tab یا کلید جهت‌نمای راست. حرکت به برگه قبلی با Shift+Tab یا کلید جهت‌نمای چپ. فشردن Space یا Enter برای انتخاب یک برگه.' }, { name : 'منوی متنی ویرایشگر', legend : '${contextMenu} یا کلید برنامه‌های کاربردی را برای باز کردن منوی متن را بفشارید. سپس می‌توانید برای حرکت به گزینه بعدی منو با کلید Tab و یا کلید جهت‌نمای پایین جابجا شوید. حرکت به گزینه قبلی با Shift+Tab یا کلید جهت‌نمای بالا. فشردن Space یا Enter برای انتخاب یک گزینه از منو. باز کردن زیر شاخه گزینه منو جاری با کلید Space یا Enter و یا کلید جهت‌نمای راست و چپ. بازگشت به منوی والد با کلید Esc یا کلید جهت‌نمای چپ. بستن منوی متن با Esc.' }, { name : 'جعبه فهرست ویرایشگر', legend : 'در داخل جعبه لیست، قلم دوم از اقلام لیست بعدی را با TAB و یا Arrow Down حرکت دهید. انتقال به قلم دوم از اقلام لیست قبلی را با SHIFT + TAB یا UP ARROW. کلید Space یا ENTER را برای انتخاب گزینه لیست بفشارید. کلید ESC را برای بستن جعبه لیست بفشارید.' }, { name : 'ویرایشگر عنصر نوار راه', legend : 'برای رفتن به مسیر عناصر ${elementsPathFocus} را بفشارید. حرکت به کلید عنصر بعدی با کلید Tab یا کلید جهت‌نمای راست. برگشت به کلید قبلی با Shift+Tab یا کلید جهت‌نمای چپ. فشردن Space یا Enter برای انتخاب یک عنصر در ویرایشگر.' } ] }, { name : 'فرمان‌ها', items : [ { name : 'بازگشت فرمان', legend : 'فشردن ${undo}' }, { name : 'انجام مجدد فرمان', legend : 'فشردن ${redo}' }, { name : 'فرمان متن درشت', legend : 'فشردن ${bold}' }, { name : 'فرمان متن کج', legend : 'فشردن ${italic}' }, { name : 'فرمان متن زیرخط‌دار', legend : 'فشردن ${underline}' }, { name : 'فرمان پیوند', legend : 'فشردن ${link}' }, { name : 'بستن نوار ابزار فرمان', legend : 'فشردن ${toolbarCollapse}' }, { name : 'راهنمای دسترسی', legend : 'فشردن ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'ku', { accessibilityHelp : { title : 'ڕێنمای لەبەردەستدابوون', contents : 'پێکهاتەی یارمەتی. کلیك ESC بۆ داخستنی ئەم دیالۆگه.', legend : [ { name : 'گشتی', items : [ { name : 'تووڵامرازی ده‌ستكاریكه‌ر', legend: 'کلیك ${toolbarFocus} بۆ ڕابەری تووڵامراز. بۆ گواستنەوەی پێشوو داهاتووی گرووپی تووڵامرازی داگرتنی کلیلی TAB له‌گه‌ڵ‌ SHIFT-TAB. بۆ گواستنەوەی پێشوو داهاتووی دووگمەی تووڵامرازی لەڕێی کلیلی تیری دەستی ڕاست یان کلیلی تیری دەستی چەپ. کلیکی کلیلی SPACE یان ENTER بۆ چالاککردنی دووگمەی تووڵامراز.' }, { name : 'دیالۆگی ده‌ستكاریكه‌ر', legend : 'لەهەمانکاتدا کەتۆ لەدیالۆگی, کلیکی کلیلی TAB بۆ ڕابەری خانەی دیالۆگێکی تر, داگرتنی کلیلی SHIFT + TAB بۆ گواستنەوەی بۆ خانەی پێشووتر, کلیكی کلیلی ENTER بۆ ڕازیکردنی دیالۆگەکە, کلیكی کلیلی ESC بۆ هەڵوەشاندنەوەی دیالۆگەکە. بۆ دیالۆگی لەبازدەری (تابی) زیاتر, کلیكی کلیلی ALT + F10 بۆ ڕابه‌ری لیستی بازده‌ره‌کان. بۆ چوونه‌ بازده‌ری تابی داهاتوو کلیكی کلیلی TAB یان کلیلی تیری ده‌ستی ڕاست. بۆچوونه‌ بازده‌ری تابی پێشوو داگرتنی کلیلی SHIFT + TAB یان کلیلی تیری ده‌ستی چه‌پ. کلیی کلیلی SPACE یان ENTER بۆ هه‌ڵبژاردنی بازده‌ر (تاب).' }, { name : 'پێڕستی سه‌رنووسه‌ر', legend : 'کلیك ${contextMenu} یان دوگمه‌ی لیسته‌(Menu) بۆ کردنه‌وه‌ی لیسته‌ی ده‌ق. بۆ چوونه‌ هه‌ڵبژارده‌یه‌کی تر له‌ لیسته‌ کلیکی کلیلی TAB یان کلیلی تیری ڕوو له‌خواره‌وه‌ بۆ چوون بۆ هه‌ڵبژارده‌ی پێشوو کلیکی کلیلی SHIFT+TAB یان کلیلی تیری ڕوو له‌ سه‌ره‌وه. داگرتنی کلیلی SPACE یان ENTER بۆ هه‌ڵبژاردنی هه‌ڵبژارده‌ی لیسته‌. بۆ کردنه‌وه‌ی لقی ژێر لیسته‌ له‌هه‌ڵبژارده‌ی لیسته‌ کلیکی کلیلی SPACE یان ENTER یان کلیلی تیری ده‌ستی ڕاست. بۆ گه‌ڕانه‌وه بۆ سه‌ره‌وه‌ی لیسته‌ کلیکی کلیلی ESC یان کلیلی تیری ده‌ستی چه‌پ. بۆ داخستنی لیسته‌ کلیكی کلیلی ESC بکه.' }, { name : 'لیستی سنووقی سه‌رنووسه‌ر', legend : 'له‌ناو سنوقی لیست, چۆن بۆ هه‌ڵنبژارده‌ی لیستێکی تر کلیکی کلیلی TAB یان کلیلی تیری ڕوو له‌خوار. چوون بۆ هه‌ڵبژارده‌ی لیستی پێشوو کلیکی کلیلی SHIFT + TAB یان کلیلی تیری ڕوو له‌سه‌ره‌وه‌. کلیکی کلیلی SPACE یان ENTER بۆ دیاریکردنی ‌هه‌ڵبژارده‌ی لیست. کلیکی کلیلی ESC بۆ داخستنی سنوقی لیست.' }, { name : 'تووڵامرازی توخم', legend : 'کلیك ${elementsPathFocus} بۆ ڕابه‌ری تووڵامرازی توخمه‌کان. چوون بۆ دوگمه‌ی توخمێکی تر کلیکی کلیلی TAB یان کلیلی تیری ده‌ستی ڕاست. چوون بۆ دوگمه‌ی توخمی پێشوو کلیلی SHIFT+TAB یان کلیکی کلیلی تیری ده‌ستی چه‌پ. داگرتنی کلیلی SPACE یان ENTER بۆ دیاریکردنی توخمه‌که‌ له‌سه‌رنووسه.' } ] }, { name : 'فه‌رمانه‌کان', items : [ { name : 'فه‌رمانی پووچکردنه‌وه', legend : 'کلیك ${undo}' }, { name : 'فه‌رمانی هه‌ڵگه‌ڕانه‌وه', legend : 'کلیك ${redo}' }, { name : 'فه‌رمانی ده‌قی قه‌ڵه‌و', legend : 'کلیك ${bold}' }, { name : 'فه‌رمانی ده‌قی لار', legend : 'کلیك ${italic}' }, { name : 'فه‌رمانی ژێرهێڵ', legend : 'کلیك ${underline}' }, { name : 'فه‌رمانی به‌سته‌ر', legend : 'کلیك ${link}' }, { name : 'شارده‌نه‌وه‌ی تووڵامراز', legend : 'کلیك ${toolbarCollapse}' }, { name : 'ده‌ستپێگه‌یشتنی یارمه‌تی', legend : 'کلیك ${a11yHelp}' } ] } ] } });
JavaScript
// ---------------------------------------------------------------------------- // markItUp! Universal MarkUp Engine, JQuery plugin // v 1.1.x // Dual licensed under the MIT and GPL licenses. // ---------------------------------------------------------------------------- // Copyright (C) 2007-2011 Jay Salvat // http://markitup.jaysalvat.com/ // ---------------------------------------------------------------------------- // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // ---------------------------------------------------------------------------- (function($) { $.fn.markItUp = function(settings, extraSettings) { var options, ctrlKey, shiftKey, altKey; ctrlKey = shiftKey = altKey = false; options = { id: '', nameSpace: '', root: '', previewInWindow: '', // 'width=800, height=600, resizable=yes, scrollbars=yes' previewAutoRefresh: true, previewPosition: 'after', previewTemplatePath: '~/templates/preview.html', previewParser: false, previewParserPath: '', previewParserVar: 'data', resizeHandle: true, beforeInsert: '', afterInsert: '', onEnter: {}, onShiftEnter: {}, onCtrlEnter: {}, onTab: {}, markupSet: [ { /* set */ } ] }; $.extend(options, settings, extraSettings); // compute markItUp! path if (!options.root) { $('script').each(function(a, tag) { miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/); if (miuScript !== null) { options.root = miuScript[1]; } }); } return this.each(function() { var $$, textarea, levels, scrollPosition, caretPosition, caretOffset, clicked, hash, header, footer, previewWindow, template, iFrame, abort; $$ = $(this); textarea = this; levels = []; abort = false; scrollPosition = caretPosition = 0; caretOffset = -1; options.previewParserPath = localize(options.previewParserPath); options.previewTemplatePath = localize(options.previewTemplatePath); // apply the computed path to ~/ function localize(data, inText) { if (inText) { return data.replace(/("|')~\//g, "$1"+options.root); } return data.replace(/^~\//, options.root); } // init and build editor function init() { id = ''; nameSpace = ''; if (options.id) { id = 'id="'+options.id+'"'; } else if ($$.attr("id")) { id = 'id="markItUp'+($$.attr("id").substr(0, 1).toUpperCase())+($$.attr("id").substr(1))+'"'; } if (options.nameSpace) { nameSpace = 'class="'+options.nameSpace+'"'; } $$.wrap('<div '+nameSpace+'></div>'); $$.wrap('<div '+id+' class="markItUp"></div>'); $$.wrap('<div class="markItUpContainer"></div>'); $$.addClass("markItUpEditor"); // add the header before the textarea header = $('<div class="markItUpHeader"></div>').insertBefore($$); $(dropMenus(options.markupSet)).appendTo(header); // add the footer after the textarea footer = $('<div class="markItUpFooter"></div>').insertAfter($$); // add the resize handle after textarea if (options.resizeHandle === true && $.browser.safari !== true) { resizeHandle = $('<div class="markItUpResizeHandle"></div>') .insertAfter($$) .bind("mousedown", function(e) { var h = $$.height(), y = e.clientY, mouseMove, mouseUp; mouseMove = function(e) { $$.css("height", Math.max(20, e.clientY+h-y)+"px"); return false; }; mouseUp = function(e) { $("html").unbind("mousemove", mouseMove).unbind("mouseup", mouseUp); return false; }; $("html").bind("mousemove", mouseMove).bind("mouseup", mouseUp); }); footer.append(resizeHandle); } // listen key events $$.keydown(keyPressed).keyup(keyPressed); // bind an event to catch external calls $$.bind("insertion", function(e, settings) { if (settings.target !== false) { get(); } if (textarea === $.markItUp.focused) { markup(settings); } }); // remember the last focus $$.focus(function() { $.markItUp.focused = this; }); } // recursively build header with dropMenus from markupset function dropMenus(markupSet) { var ul = $('<ul></ul>'), i = 0; $('li:hover > ul', ul).css('display', 'block'); $.each(markupSet, function() { var button = this, t = '', title, li, j; title = (button.key) ? (button.name||'')+' [Ctrl+'+button.key+']' : (button.name||''); key = (button.key) ? 'accesskey="'+button.key+'"' : ''; if (button.separator) { li = $('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul); } else { i++; for (j = levels.length -1; j >= 0; j--) { t += levels[j]+"-"; } li = $('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="" '+key+' title="'+title+'">'+(button.name||'')+'</a></li>') .bind("contextmenu", function() { // prevent contextmenu on mac and allow ctrl+click return false; }).click(function() { return false; }).bind("focusin", function(){ $$.focus(); }).mouseup(function() { if (button.call) { eval(button.call)(); } setTimeout(function() { markup(button) },1); return false; }).hover(function() { $('> ul', this).show(); $(document).one('click', function() { // close dropmenu if click outside $('ul ul', header).hide(); } ); }, function() { $('> ul', this).hide(); } ).appendTo(ul); if (button.dropMenu) { levels.push(i); $(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu)); } } }); levels.pop(); return ul; } // markItUp! markups function magicMarkups(string) { if (string) { string = string.toString(); string = string.replace(/\(\!\(([\s\S]*?)\)\!\)/g, function(x, a) { var b = a.split('|!|'); if (altKey === true) { return (b[1] !== undefined) ? b[1] : b[0]; } else { return (b[1] === undefined) ? "" : b[0]; } } ); // [![prompt]!], [![prompt:!:value]!] string = string.replace(/\[\!\[([\s\S]*?)\]\!\]/g, function(x, a) { var b = a.split(':!:'); if (abort === true) { return false; } value = prompt(b[0], (b[1]) ? b[1] : ''); if (value === null) { abort = true; } return value; } ); return string; } return ""; } // prepare action function prepare(action) { if ($.isFunction(action)) { action = action(hash); } return magicMarkups(action); } // build block to insert function build(string) { var openWith = prepare(clicked.openWith); var placeHolder = prepare(clicked.placeHolder); var replaceWith = prepare(clicked.replaceWith); var closeWith = prepare(clicked.closeWith); var openBlockWith = prepare(clicked.openBlockWith); var closeBlockWith = prepare(clicked.closeBlockWith); var multiline = clicked.multiline; if (replaceWith !== "") { block = openWith + replaceWith + closeWith; } else if (selection === '' && placeHolder !== '') { block = openWith + placeHolder + closeWith; } else { string = string || selection; var lines = selection.split(/\r?\n/), blocks = []; for (var l=0; l < lines.length; l++) { line = lines[l]; var trailingSpaces; if (trailingSpaces = line.match(/ *$/)) { blocks.push(openWith + line.replace(/ *$/g, '') + closeWith + trailingSpaces); } else { blocks.push(openWith + line + closeWith); } } block = blocks.join("\n"); } block = openBlockWith + block + closeBlockWith; return { block:block, openWith:openWith, replaceWith:replaceWith, placeHolder:placeHolder, closeWith:closeWith }; } // define markup to insert function markup(button) { var len, j, n, i; hash = clicked = button; get(); $.extend(hash, { line:"", root:options.root, textarea:textarea, selection:(selection||''), caretPosition:caretPosition, ctrlKey:ctrlKey, shiftKey:shiftKey, altKey:altKey } ); // callbacks before insertion prepare(options.beforeInsert); prepare(clicked.beforeInsert); if ((ctrlKey === true && shiftKey === true) || button.multiline === true) { prepare(clicked.beforeMultiInsert); } $.extend(hash, { line:1 }); if ((ctrlKey === true && shiftKey === true)) { lines = selection.split(/\r?\n/); for (j = 0, n = lines.length, i = 0; i < n; i++) { if ($.trim(lines[i]) !== '') { $.extend(hash, { line:++j, selection:lines[i] } ); lines[i] = build(lines[i]).block; } else { lines[i] = ""; } } string = { block:lines.join('\n')}; start = caretPosition; len = string.block.length + (($.browser.opera) ? n-1 : 0); } else if (ctrlKey === true) { string = build(selection); start = caretPosition + string.openWith.length; len = string.block.length - string.openWith.length - string.closeWith.length; len = len - (string.block.match(/ $/) ? 1 : 0); len -= fixIeBug(string.block); } else if (shiftKey === true) { string = build(selection); start = caretPosition; len = string.block.length; len -= fixIeBug(string.block); } else { string = build(selection); start = caretPosition + string.block.length ; len = 0; start -= fixIeBug(string.block); } if ((selection === '' && string.replaceWith === '')) { caretOffset += fixOperaBug(string.block); start = caretPosition + string.openWith.length; len = string.block.length - string.openWith.length - string.closeWith.length; caretOffset = $$.val().substring(caretPosition, $$.val().length).length; caretOffset -= fixOperaBug($$.val().substring(0, caretPosition)); } $.extend(hash, { caretPosition:caretPosition, scrollPosition:scrollPosition } ); if (string.block !== selection && abort === false) { insert(string.block); set(start, len); } else { caretOffset = -1; } get(); $.extend(hash, { line:'', selection:selection }); // callbacks after insertion if ((ctrlKey === true && shiftKey === true) || button.multiline === true) { prepare(clicked.afterMultiInsert); } prepare(clicked.afterInsert); prepare(options.afterInsert); // refresh preview if opened if (previewWindow && options.previewAutoRefresh) { refreshPreview(); } // reinit keyevent shiftKey = altKey = ctrlKey = abort = false; } // Substract linefeed in Opera function fixOperaBug(string) { if ($.browser.opera) { return string.length - string.replace(/\n*/g, '').length; } return 0; } // Substract linefeed in IE function fixIeBug(string) { if ($.browser.msie) { return string.length - string.replace(/\r*/g, '').length; } return 0; } // add markup function insert(block) { if (document.selection) { var newSelection = document.selection.createRange(); newSelection.text = block; } else { textarea.value = textarea.value.substring(0, caretPosition) + block + textarea.value.substring(caretPosition + selection.length, textarea.value.length); } } // set a selection function set(start, len) { if (textarea.createTextRange){ // quick fix to make it work on Opera 9.5 if ($.browser.opera && $.browser.version >= 9.5 && len == 0) { return false; } range = textarea.createTextRange(); range.collapse(true); range.moveStart('character', start); range.moveEnd('character', len); range.select(); } else if (textarea.setSelectionRange ){ textarea.setSelectionRange(start, start + len); } textarea.scrollTop = scrollPosition; textarea.focus(); } // get the selection function get() { textarea.focus(); scrollPosition = textarea.scrollTop; if (document.selection) { selection = document.selection.createRange().text; if ($.browser.msie) { // ie var range = document.selection.createRange(), rangeCopy = range.duplicate(); rangeCopy.moveToElementText(textarea); caretPosition = -1; while(rangeCopy.inRange(range)) { rangeCopy.moveStart('character'); caretPosition ++; } } else { // opera caretPosition = textarea.selectionStart; } } else { // gecko & webkit caretPosition = textarea.selectionStart; selection = textarea.value.substring(caretPosition, textarea.selectionEnd); } return selection; } // open preview window function preview() { if (!previewWindow || previewWindow.closed) { if (options.previewInWindow) { previewWindow = window.open('', 'preview', options.previewInWindow); $(window).unload(function() { previewWindow.close(); }); } else { iFrame = $('<iframe class="markItUpPreviewFrame"></iframe>'); if (options.previewPosition == 'after') { iFrame.insertAfter(footer); } else { iFrame.insertBefore(header); } previewWindow = iFrame[iFrame.length - 1].contentWindow || frame[iFrame.length - 1]; } } else if (altKey === true) { if (iFrame) { iFrame.remove(); } else { previewWindow.close(); } previewWindow = iFrame = false; } if (!options.previewAutoRefresh) { refreshPreview(); } if (options.previewInWindow) { previewWindow.focus(); } } // refresh Preview window function refreshPreview() { renderPreview(); } function renderPreview() { var phtml; if (options.previewParser && typeof options.previewParser === 'function') { var data = options.previewParser( $$.val() ); writeInPreview( localize(data, 1) ); } else if (options.previewParserPath !== '') { $.ajax({ type: 'POST', dataType: 'text', global: false, url: options.previewParserPath, data: options.previewParserVar+'='+encodeURIComponent($$.val()), success: function(data) { writeInPreview( localize(data, 1) ); } }); } else { if (!template) { $.ajax({ url: options.previewTemplatePath, dataType: 'text', global: false, success: function(data) { writeInPreview( localize(data, 1).replace(/<!-- content -->/g, $$.val()) ); } }); } } return false; } function writeInPreview(data) { if (previewWindow.document) { try { sp = previewWindow.document.documentElement.scrollTop } catch(e) { sp = 0; } previewWindow.document.open(); previewWindow.document.write(data); previewWindow.document.close(); previewWindow.document.documentElement.scrollTop = sp; } } // set keys pressed function keyPressed(e) { shiftKey = e.shiftKey; altKey = e.altKey; ctrlKey = (!(e.altKey && e.ctrlKey)) ? (e.ctrlKey || e.metaKey) : false; if (e.type === 'keydown') { if (ctrlKey === true) { li = $('a[accesskey="'+String.fromCharCode(e.keyCode)+'"]', header).parent('li'); if (li.length !== 0) { ctrlKey = false; setTimeout(function() { li.triggerHandler('mouseup'); },1); return false; } } if (e.keyCode === 13 || e.keyCode === 10) { // Enter key if (ctrlKey === true) { // Enter + Ctrl ctrlKey = false; markup(options.onCtrlEnter); return options.onCtrlEnter.keepDefault; } else if (shiftKey === true) { // Enter + Shift shiftKey = false; markup(options.onShiftEnter); return options.onShiftEnter.keepDefault; } else { // only Enter markup(options.onEnter); return options.onEnter.keepDefault; } } if (e.keyCode === 9) { // Tab key if (shiftKey == true || ctrlKey == true || altKey == true) { return false; } if (caretOffset !== -1) { get(); caretOffset = $$.val().length - caretOffset; set(caretOffset, 0); caretOffset = -1; return false; } else { markup(options.onTab); return options.onTab.keepDefault; } } } } init(); }); }; $.fn.markItUpRemove = function() { return this.each(function() { var $$ = $(this).unbind().removeClass('markItUpEditor'); $$.parent('div').parent('div.markItUp').parent('div').replaceWith($$); } ); }; $.markItUp = function(settings) { var options = { target:false }; $.extend(options, settings); if (options.target) { return $(options.target).each(function() { $(this).focus(); $(this).trigger('insertion', [options]); }); } else { $('textarea').trigger('insertion', [options]); } }; })(jQuery);
JavaScript
//! moment.js //! version : 2.8.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function (undefined) { /************************************ Constants ************************************/ var moment, VERSION = '2.8.1', // the global-scope this is NOT the global object in Node.js globalScope = typeof global !== 'undefined' ? global : this, oldGlobalMoment, round = Math.round, i, YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, // internal storage for locale config files locales = {}, // extra moment internal properties (plugins register props here) momentProperties = [], // check for nodeJS hasModule = (typeof module !== 'undefined' && module.exports), // ASP.NET json date format regex aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/, // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, // format tokens formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, // parsing token regexes parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99 parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999 parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999 parseTokenDigits = /\d+/, // nonzero number of digits parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic. parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z parseTokenT = /T/i, // T (ISO separator) parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 parseTokenOrdinal = /\d{1,2}/, //strict parsing regexes parseTokenOneDigit = /\d/, // 0 - 9 parseTokenTwoDigits = /\d\d/, // 00 - 99 parseTokenThreeDigits = /\d{3}/, // 000 - 999 parseTokenFourDigits = /\d{4}/, // 0000 - 9999 parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999 parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf // iso 8601 regex // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, isoFormat = 'YYYY-MM-DDTHH:mm:ssZ', isoDates = [ ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/], ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/], ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/], ['GGGG-[W]WW', /\d{4}-W\d{2}/], ['YYYY-DDD', /\d{4}-\d{3}/] ], // iso time formats and regexes isoTimes = [ ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/], ['HH:mm', /(T| )\d\d:\d\d/], ['HH', /(T| )\d\d/] ], // timezone chunker "+10:00" > ["10", "00"] or "-1530" > ["-15", "30"] parseTimezoneChunker = /([\+\-]|\d\d)/gi, // getter and setter names proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'), unitMillisecondFactors = { 'Milliseconds' : 1, 'Seconds' : 1e3, 'Minutes' : 6e4, 'Hours' : 36e5, 'Days' : 864e5, 'Months' : 2592e6, 'Years' : 31536e6 }, unitAliases = { ms : 'millisecond', s : 'second', m : 'minute', h : 'hour', d : 'day', D : 'date', w : 'week', W : 'isoWeek', M : 'month', Q : 'quarter', y : 'year', DDD : 'dayOfYear', e : 'weekday', E : 'isoWeekday', gg: 'weekYear', GG: 'isoWeekYear' }, camelFunctions = { dayofyear : 'dayOfYear', isoweekday : 'isoWeekday', isoweek : 'isoWeek', weekyear : 'weekYear', isoweekyear : 'isoWeekYear' }, // format function strings formatFunctions = {}, // default relative time thresholds relativeTimeThresholds = { s: 45, // seconds to minute m: 45, // minutes to hour h: 22, // hours to day d: 26, // days to month M: 11 // months to year }, // tokens to ordinalize and pad ordinalizeTokens = 'DDD w W M D d'.split(' '), paddedTokens = 'M D H h m s w W'.split(' '), formatTokenFunctions = { M : function () { return this.month() + 1; }, MMM : function (format) { return this.localeData().monthsShort(this, format); }, MMMM : function (format) { return this.localeData().months(this, format); }, D : function () { return this.date(); }, DDD : function () { return this.dayOfYear(); }, d : function () { return this.day(); }, dd : function (format) { return this.localeData().weekdaysMin(this, format); }, ddd : function (format) { return this.localeData().weekdaysShort(this, format); }, dddd : function (format) { return this.localeData().weekdays(this, format); }, w : function () { return this.week(); }, W : function () { return this.isoWeek(); }, YY : function () { return leftZeroFill(this.year() % 100, 2); }, YYYY : function () { return leftZeroFill(this.year(), 4); }, YYYYY : function () { return leftZeroFill(this.year(), 5); }, YYYYYY : function () { var y = this.year(), sign = y >= 0 ? '+' : '-'; return sign + leftZeroFill(Math.abs(y), 6); }, gg : function () { return leftZeroFill(this.weekYear() % 100, 2); }, gggg : function () { return leftZeroFill(this.weekYear(), 4); }, ggggg : function () { return leftZeroFill(this.weekYear(), 5); }, GG : function () { return leftZeroFill(this.isoWeekYear() % 100, 2); }, GGGG : function () { return leftZeroFill(this.isoWeekYear(), 4); }, GGGGG : function () { return leftZeroFill(this.isoWeekYear(), 5); }, e : function () { return this.weekday(); }, E : function () { return this.isoWeekday(); }, a : function () { return this.localeData().meridiem(this.hours(), this.minutes(), true); }, A : function () { return this.localeData().meridiem(this.hours(), this.minutes(), false); }, H : function () { return this.hours(); }, h : function () { return this.hours() % 12 || 12; }, m : function () { return this.minutes(); }, s : function () { return this.seconds(); }, S : function () { return toInt(this.milliseconds() / 100); }, SS : function () { return leftZeroFill(toInt(this.milliseconds() / 10), 2); }, SSS : function () { return leftZeroFill(this.milliseconds(), 3); }, SSSS : function () { return leftZeroFill(this.milliseconds(), 3); }, Z : function () { var a = -this.zone(), b = '+'; if (a < 0) { a = -a; b = '-'; } return b + leftZeroFill(toInt(a / 60), 2) + ':' + leftZeroFill(toInt(a) % 60, 2); }, ZZ : function () { var a = -this.zone(), b = '+'; if (a < 0) { a = -a; b = '-'; } return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2); }, z : function () { return this.zoneAbbr(); }, zz : function () { return this.zoneName(); }, X : function () { return this.unix(); }, Q : function () { return this.quarter(); } }, deprecations = {}, lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin']; // Pick the first defined of two or three arguments. dfl comes from // default. function dfl(a, b, c) { switch (arguments.length) { case 2: return a != null ? a : b; case 3: return a != null ? a : b != null ? b : c; default: throw new Error('Implement me'); } } function defaultParsingFlags() { // We need to deep clone this object, and es5 standard is not very // helpful. return { empty : false, unusedTokens : [], unusedInput : [], overflow : -2, charsLeftOver : 0, nullInput : false, invalidMonth : null, invalidFormat : false, userInvalidated : false, iso: false }; } function printMsg(msg) { if (moment.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) { console.warn("Deprecation warning: " + msg); } } function deprecate(msg, fn) { var firstTime = true; return extend(function () { if (firstTime) { printMsg(msg); firstTime = false; } return fn.apply(this, arguments); }, fn); } function deprecateSimple(name, msg) { if (!deprecations[name]) { printMsg(msg); deprecations[name] = true; } } function padToken(func, count) { return function (a) { return leftZeroFill(func.call(this, a), count); }; } function ordinalizeToken(func, period) { return function (a) { return this.localeData().ordinal(func.call(this, a), period); }; } while (ordinalizeTokens.length) { i = ordinalizeTokens.pop(); formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i); } while (paddedTokens.length) { i = paddedTokens.pop(); formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2); } formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); /************************************ Constructors ************************************/ function Locale() { } // Moment prototype object function Moment(config, skipOverflow) { if (skipOverflow !== false) { checkOverflow(config); } copyConfig(this, config); this._d = new Date(+config._d); } // Duration Constructor function Duration(duration) { var normalizedInput = normalizeObjectUnits(duration), years = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months = normalizedInput.month || 0, weeks = normalizedInput.week || 0, days = normalizedInput.day || 0, hours = normalizedInput.hour || 0, minutes = normalizedInput.minute || 0, seconds = normalizedInput.second || 0, milliseconds = normalizedInput.millisecond || 0; // representation for dateAddRemove this._milliseconds = +milliseconds + seconds * 1e3 + // 1000 minutes * 6e4 + // 1000 * 60 hours * 36e5; // 1000 * 60 * 60 // Because of dateAddRemove treats 24 hours as different from a // day when working around DST, we need to store them separately this._days = +days + weeks * 7; // It is impossible translate months into days without knowing // which months you are are talking about, so we have to store // it separately. this._months = +months + quarters * 3 + years * 12; this._data = {}; this._locale = moment.localeData(); this._bubble(); } /************************************ Helpers ************************************/ function extend(a, b) { for (var i in b) { if (b.hasOwnProperty(i)) { a[i] = b[i]; } } if (b.hasOwnProperty('toString')) { a.toString = b.toString; } if (b.hasOwnProperty('valueOf')) { a.valueOf = b.valueOf; } return a; } function copyConfig(to, from) { var i, prop, val; if (typeof from._isAMomentObject !== 'undefined') { to._isAMomentObject = from._isAMomentObject; } if (typeof from._i !== 'undefined') { to._i = from._i; } if (typeof from._f !== 'undefined') { to._f = from._f; } if (typeof from._l !== 'undefined') { to._l = from._l; } if (typeof from._strict !== 'undefined') { to._strict = from._strict; } if (typeof from._tzm !== 'undefined') { to._tzm = from._tzm; } if (typeof from._isUTC !== 'undefined') { to._isUTC = from._isUTC; } if (typeof from._offset !== 'undefined') { to._offset = from._offset; } if (typeof from._pf !== 'undefined') { to._pf = from._pf; } if (typeof from._locale !== 'undefined') { to._locale = from._locale; } if (momentProperties.length > 0) { for (i in momentProperties) { prop = momentProperties[i]; val = from[prop]; if (typeof val !== 'undefined') { to[prop] = val; } } } return to; } function absRound(number) { if (number < 0) { return Math.ceil(number); } else { return Math.floor(number); } } // left zero fill a number // see http://jsperf.com/left-zero-filling for performance comparison function leftZeroFill(number, targetLength, forceSign) { var output = '' + Math.abs(number), sign = number >= 0; while (output.length < targetLength) { output = '0' + output; } return (sign ? (forceSign ? '+' : '') : '-') + output; } function positiveMomentsDifference(base, other) { var res = {milliseconds: 0, months: 0}; res.months = other.month() - base.month() + (other.year() - base.year()) * 12; if (base.clone().add(res.months, 'M').isAfter(other)) { --res.months; } res.milliseconds = +other - +(base.clone().add(res.months, 'M')); return res; } function momentsDifference(base, other) { var res; other = makeAs(other, base); if (base.isBefore(other)) { res = positiveMomentsDifference(base, other); } else { res = positiveMomentsDifference(other, base); res.milliseconds = -res.milliseconds; res.months = -res.months; } return res; } // TODO: remove 'name' arg after deprecation is removed function createAdder(direction, name) { return function (val, period) { var dur, tmp; //invert the arguments, but complain about it if (period !== null && !isNaN(+period)) { deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period)."); tmp = val; val = period; period = tmp; } val = typeof val === 'string' ? +val : val; dur = moment.duration(val, period); addOrSubtractDurationFromMoment(this, dur, direction); return this; }; } function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) { var milliseconds = duration._milliseconds, days = duration._days, months = duration._months; updateOffset = updateOffset == null ? true : updateOffset; if (milliseconds) { mom._d.setTime(+mom._d + milliseconds * isAdding); } if (days) { rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding); } if (months) { rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding); } if (updateOffset) { moment.updateOffset(mom, days || months); } } // check if is an array function isArray(input) { return Object.prototype.toString.call(input) === '[object Array]'; } function isDate(input) { return Object.prototype.toString.call(input) === '[object Date]' || input instanceof Date; } // compare two arrays, return the number of differences function compareArrays(array1, array2, dontConvert) { var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i; for (i = 0; i < len; i++) { if ((dontConvert && array1[i] !== array2[i]) || (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { diffs++; } } return diffs + lengthDiff; } function normalizeUnits(units) { if (units) { var lowered = units.toLowerCase().replace(/(.)s$/, '$1'); units = unitAliases[units] || camelFunctions[lowered] || lowered; } return units; } function normalizeObjectUnits(inputObject) { var normalizedInput = {}, normalizedProp, prop; for (prop in inputObject) { if (inputObject.hasOwnProperty(prop)) { normalizedProp = normalizeUnits(prop); if (normalizedProp) { normalizedInput[normalizedProp] = inputObject[prop]; } } } return normalizedInput; } function makeList(field) { var count, setter; if (field.indexOf('week') === 0) { count = 7; setter = 'day'; } else if (field.indexOf('month') === 0) { count = 12; setter = 'month'; } else { return; } moment[field] = function (format, index) { var i, getter, method = moment._locale[field], results = []; if (typeof format === 'number') { index = format; format = undefined; } getter = function (i) { var m = moment().utc().set(setter, i); return method.call(moment._locale, m, format || ''); }; if (index != null) { return getter(index); } else { for (i = 0; i < count; i++) { results.push(getter(i)); } return results; } }; } function toInt(argumentForCoercion) { var coercedNumber = +argumentForCoercion, value = 0; if (coercedNumber !== 0 && isFinite(coercedNumber)) { if (coercedNumber >= 0) { value = Math.floor(coercedNumber); } else { value = Math.ceil(coercedNumber); } } return value; } function daysInMonth(year, month) { return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); } function weeksInYear(year, dow, doy) { return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week; } function daysInYear(year) { return isLeapYear(year) ? 366 : 365; } function isLeapYear(year) { return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; } function checkOverflow(m) { var overflow; if (m._a && m._pf.overflow === -2) { overflow = m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH : m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE : m._a[HOUR] < 0 || m._a[HOUR] > 23 ? HOUR : m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE : m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND : m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND : -1; if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { overflow = DATE; } m._pf.overflow = overflow; } } function isValid(m) { if (m._isValid == null) { m._isValid = !isNaN(m._d.getTime()) && m._pf.overflow < 0 && !m._pf.empty && !m._pf.invalidMonth && !m._pf.nullInput && !m._pf.invalidFormat && !m._pf.userInvalidated; if (m._strict) { m._isValid = m._isValid && m._pf.charsLeftOver === 0 && m._pf.unusedTokens.length === 0; } } return m._isValid; } function normalizeLocale(key) { return key ? key.toLowerCase().replace('_', '-') : key; } // pick the locale from the array // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root function chooseLocale(names) { var i = 0, j, next, locale, split; while (i < names.length) { split = normalizeLocale(names[i]).split('-'); j = split.length; next = normalizeLocale(names[i + 1]); next = next ? next.split('-') : null; while (j > 0) { locale = loadLocale(split.slice(0, j).join('-')); if (locale) { return locale; } if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { //the next array item is better than a shallower substring of this one break; } j--; } i++; } return null; } function loadLocale(name) { var oldLocale = null; if (!locales[name] && hasModule) { try { oldLocale = moment.locale(); require('./locale/' + name); // because defineLocale currently also sets the global locale, we want to undo that for lazy loaded locales moment.locale(oldLocale); } catch (e) { } } return locales[name]; } // Return a moment from input, that is local/utc/zone equivalent to model. function makeAs(input, model) { return model._isUTC ? moment(input).zone(model._offset || 0) : moment(input).local(); } /************************************ Locale ************************************/ extend(Locale.prototype, { set : function (config) { var prop, i; for (i in config) { prop = config[i]; if (typeof prop === 'function') { this[i] = prop; } else { this['_' + i] = prop; } } }, _months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), months : function (m) { return this._months[m.month()]; }, _monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), monthsShort : function (m) { return this._monthsShort[m.month()]; }, monthsParse : function (monthName) { var i, mom, regex; if (!this._monthsParse) { this._monthsParse = []; } for (i = 0; i < 12; i++) { // make the regex if we don't have it already if (!this._monthsParse[i]) { mom = moment.utc([2000, i]); regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); } // test the regex if (this._monthsParse[i].test(monthName)) { return i; } } }, _weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), weekdays : function (m) { return this._weekdays[m.day()]; }, _weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), weekdaysShort : function (m) { return this._weekdaysShort[m.day()]; }, _weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), weekdaysMin : function (m) { return this._weekdaysMin[m.day()]; }, weekdaysParse : function (weekdayName) { var i, mom, regex; if (!this._weekdaysParse) { this._weekdaysParse = []; } for (i = 0; i < 7; i++) { // make the regex if we don't have it already if (!this._weekdaysParse[i]) { mom = moment([2000, 1]).day(i); regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); } // test the regex if (this._weekdaysParse[i].test(weekdayName)) { return i; } } }, _longDateFormat : { LT : 'h:mm A', L : 'MM/DD/YYYY', LL : 'MMMM D, YYYY', LLL : 'MMMM D, YYYY LT', LLLL : 'dddd, MMMM D, YYYY LT' }, longDateFormat : function (key) { var output = this._longDateFormat[key]; if (!output && this._longDateFormat[key.toUpperCase()]) { output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) { return val.slice(1); }); this._longDateFormat[key] = output; } return output; }, isPM : function (input) { // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays // Using charAt should be more compatible. return ((input + '').toLowerCase().charAt(0) === 'p'); }, _meridiemParse : /[ap]\.?m?\.?/i, meridiem : function (hours, minutes, isLower) { if (hours > 11) { return isLower ? 'pm' : 'PM'; } else { return isLower ? 'am' : 'AM'; } }, _calendar : { sameDay : '[Today at] LT', nextDay : '[Tomorrow at] LT', nextWeek : 'dddd [at] LT', lastDay : '[Yesterday at] LT', lastWeek : '[Last] dddd [at] LT', sameElse : 'L' }, calendar : function (key, mom) { var output = this._calendar[key]; return typeof output === 'function' ? output.apply(mom) : output; }, _relativeTime : { future : 'in %s', past : '%s ago', s : 'a few seconds', m : 'a minute', mm : '%d minutes', h : 'an hour', hh : '%d hours', d : 'a day', dd : '%d days', M : 'a month', MM : '%d months', y : 'a year', yy : '%d years' }, relativeTime : function (number, withoutSuffix, string, isFuture) { var output = this._relativeTime[string]; return (typeof output === 'function') ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number); }, pastFuture : function (diff, output) { var format = this._relativeTime[diff > 0 ? 'future' : 'past']; return typeof format === 'function' ? format(output) : format.replace(/%s/i, output); }, ordinal : function (number) { return this._ordinal.replace('%d', number); }, _ordinal : '%d', preparse : function (string) { return string; }, postformat : function (string) { return string; }, week : function (mom) { return weekOfYear(mom, this._week.dow, this._week.doy).week; }, _week : { dow : 0, // Sunday is the first day of the week. doy : 6 // The week that contains Jan 1st is the first week of the year. }, _invalidDate: 'Invalid date', invalidDate: function () { return this._invalidDate; } }); /************************************ Formatting ************************************/ function removeFormattingTokens(input) { if (input.match(/\[[\s\S]/)) { return input.replace(/^\[|\]$/g, ''); } return input.replace(/\\/g, ''); } function makeFormatFunction(format) { var array = format.match(formattingTokens), i, length; for (i = 0, length = array.length; i < length; i++) { if (formatTokenFunctions[array[i]]) { array[i] = formatTokenFunctions[array[i]]; } else { array[i] = removeFormattingTokens(array[i]); } } return function (mom) { var output = ''; for (i = 0; i < length; i++) { output += array[i] instanceof Function ? array[i].call(mom, format) : array[i]; } return output; }; } // format date using native date object function formatMoment(m, format) { if (!m.isValid()) { return m.localeData().invalidDate(); } format = expandFormat(format, m.localeData()); if (!formatFunctions[format]) { formatFunctions[format] = makeFormatFunction(format); } return formatFunctions[format](m); } function expandFormat(format, locale) { var i = 5; function replaceLongDateFormatTokens(input) { return locale.longDateFormat(input) || input; } localFormattingTokens.lastIndex = 0; while (i >= 0 && localFormattingTokens.test(format)) { format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); localFormattingTokens.lastIndex = 0; i -= 1; } return format; } /************************************ Parsing ************************************/ // get the regex to find the next token function getParseRegexForToken(token, config) { var a, strict = config._strict; switch (token) { case 'Q': return parseTokenOneDigit; case 'DDDD': return parseTokenThreeDigits; case 'YYYY': case 'GGGG': case 'gggg': return strict ? parseTokenFourDigits : parseTokenOneToFourDigits; case 'Y': case 'G': case 'g': return parseTokenSignedNumber; case 'YYYYYY': case 'YYYYY': case 'GGGGG': case 'ggggg': return strict ? parseTokenSixDigits : parseTokenOneToSixDigits; case 'S': if (strict) { return parseTokenOneDigit; } /* falls through */ case 'SS': if (strict) { return parseTokenTwoDigits; } /* falls through */ case 'SSS': if (strict) { return parseTokenThreeDigits; } /* falls through */ case 'DDD': return parseTokenOneToThreeDigits; case 'MMM': case 'MMMM': case 'dd': case 'ddd': case 'dddd': return parseTokenWord; case 'a': case 'A': return config._locale._meridiemParse; case 'X': return parseTokenTimestampMs; case 'Z': case 'ZZ': return parseTokenTimezone; case 'T': return parseTokenT; case 'SSSS': return parseTokenDigits; case 'MM': case 'DD': case 'YY': case 'GG': case 'gg': case 'HH': case 'hh': case 'mm': case 'ss': case 'ww': case 'WW': return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits; case 'M': case 'D': case 'd': case 'H': case 'h': case 'm': case 's': case 'w': case 'W': case 'e': case 'E': return parseTokenOneOrTwoDigits; case 'Do': return parseTokenOrdinal; default : a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), 'i')); return a; } } function timezoneMinutesFromString(string) { string = string || ''; var possibleTzMatches = (string.match(parseTokenTimezone) || []), tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [], parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0], minutes = +(parts[1] * 60) + toInt(parts[2]); return parts[0] === '+' ? -minutes : minutes; } // function to convert string input to date function addTimeToArrayFromToken(token, input, config) { var a, datePartArray = config._a; switch (token) { // QUARTER case 'Q': if (input != null) { datePartArray[MONTH] = (toInt(input) - 1) * 3; } break; // MONTH case 'M' : // fall through to MM case 'MM' : if (input != null) { datePartArray[MONTH] = toInt(input) - 1; } break; case 'MMM' : // fall through to MMMM case 'MMMM' : a = config._locale.monthsParse(input); // if we didn't find a month name, mark the date as invalid. if (a != null) { datePartArray[MONTH] = a; } else { config._pf.invalidMonth = input; } break; // DAY OF MONTH case 'D' : // fall through to DD case 'DD' : if (input != null) { datePartArray[DATE] = toInt(input); } break; case 'Do' : if (input != null) { datePartArray[DATE] = toInt(parseInt(input, 10)); } break; // DAY OF YEAR case 'DDD' : // fall through to DDDD case 'DDDD' : if (input != null) { config._dayOfYear = toInt(input); } break; // YEAR case 'YY' : datePartArray[YEAR] = moment.parseTwoDigitYear(input); break; case 'YYYY' : case 'YYYYY' : case 'YYYYYY' : datePartArray[YEAR] = toInt(input); break; // AM / PM case 'a' : // fall through to A case 'A' : config._isPm = config._locale.isPM(input); break; // 24 HOUR case 'H' : // fall through to hh case 'HH' : // fall through to hh case 'h' : // fall through to hh case 'hh' : datePartArray[HOUR] = toInt(input); break; // MINUTE case 'm' : // fall through to mm case 'mm' : datePartArray[MINUTE] = toInt(input); break; // SECOND case 's' : // fall through to ss case 'ss' : datePartArray[SECOND] = toInt(input); break; // MILLISECOND case 'S' : case 'SS' : case 'SSS' : case 'SSSS' : datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000); break; // UNIX TIMESTAMP WITH MS case 'X': config._d = new Date(parseFloat(input) * 1000); break; // TIMEZONE case 'Z' : // fall through to ZZ case 'ZZ' : config._useUTC = true; config._tzm = timezoneMinutesFromString(input); break; // WEEKDAY - human case 'dd': case 'ddd': case 'dddd': a = config._locale.weekdaysParse(input); // if we didn't get a weekday name, mark the date as invalid if (a != null) { config._w = config._w || {}; config._w['d'] = a; } else { config._pf.invalidWeekday = input; } break; // WEEK, WEEK DAY - numeric case 'w': case 'ww': case 'W': case 'WW': case 'd': case 'e': case 'E': token = token.substr(0, 1); /* falls through */ case 'gggg': case 'GGGG': case 'GGGGG': token = token.substr(0, 2); if (input) { config._w = config._w || {}; config._w[token] = toInt(input); } break; case 'gg': case 'GG': config._w = config._w || {}; config._w[token] = moment.parseTwoDigitYear(input); } } function dayOfYearFromWeekInfo(config) { var w, weekYear, week, weekday, dow, doy, temp; w = config._w; if (w.GG != null || w.W != null || w.E != null) { dow = 1; doy = 4; // TODO: We need to take the current isoWeekYear, but that depends on // how we interpret now (local, utc, fixed offset). So create // a now version of current config (take local/utc/offset flags, and // create now). weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year); week = dfl(w.W, 1); weekday = dfl(w.E, 1); } else { dow = config._locale._week.dow; doy = config._locale._week.doy; weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year); week = dfl(w.w, 1); if (w.d != null) { // weekday -- low day numbers are considered next week weekday = w.d; if (weekday < dow) { ++week; } } else if (w.e != null) { // local weekday -- counting starts from begining of week weekday = w.e + dow; } else { // default to begining of week weekday = dow; } } temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow); config._a[YEAR] = temp.year; config._dayOfYear = temp.dayOfYear; } // convert an array to a date. // the array should mirror the parameters below // note: all values past the year are optional and will default to the lowest possible value. // [year, month, day , hour, minute, second, millisecond] function dateFromConfig(config) { var i, date, input = [], currentDate, yearToUse; if (config._d) { return; } currentDate = currentDateArray(config); //compute day of the year from weeks and weekdays if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { dayOfYearFromWeekInfo(config); } //if the day of the year is set, figure out what it is if (config._dayOfYear) { yearToUse = dfl(config._a[YEAR], currentDate[YEAR]); if (config._dayOfYear > daysInYear(yearToUse)) { config._pf._overflowDayOfYear = true; } date = makeUTCDate(yearToUse, 0, config._dayOfYear); config._a[MONTH] = date.getUTCMonth(); config._a[DATE] = date.getUTCDate(); } // Default to current date. // * if no year, month, day of month are given, default to today // * if day of month is given, default month and year // * if month is given, default only year // * if year is given, don't default anything for (i = 0; i < 3 && config._a[i] == null; ++i) { config._a[i] = input[i] = currentDate[i]; } // Zero out whatever was not defaulted, including time for (; i < 7; i++) { config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; } config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input); // Apply timezone offset from input. The actual zone can be changed // with parseZone. if (config._tzm != null) { config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm); } } function dateFromObject(config) { var normalizedInput; if (config._d) { return; } normalizedInput = normalizeObjectUnits(config._i); config._a = [ normalizedInput.year, normalizedInput.month, normalizedInput.day, normalizedInput.hour, normalizedInput.minute, normalizedInput.second, normalizedInput.millisecond ]; dateFromConfig(config); } function currentDateArray(config) { var now = new Date(); if (config._useUTC) { return [ now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() ]; } else { return [now.getFullYear(), now.getMonth(), now.getDate()]; } } // date from string and format string function makeDateFromStringAndFormat(config) { if (config._f === moment.ISO_8601) { parseISO(config); return; } config._a = []; config._pf.empty = true; // This array is used to make a Date, either with `new Date` or `Date.UTC` var string = '' + config._i, i, parsedInput, tokens, token, skipped, stringLength = string.length, totalParsedInputLength = 0; tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; for (i = 0; i < tokens.length; i++) { token = tokens[i]; parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; if (parsedInput) { skipped = string.substr(0, string.indexOf(parsedInput)); if (skipped.length > 0) { config._pf.unusedInput.push(skipped); } string = string.slice(string.indexOf(parsedInput) + parsedInput.length); totalParsedInputLength += parsedInput.length; } // don't parse if it's not a known token if (formatTokenFunctions[token]) { if (parsedInput) { config._pf.empty = false; } else { config._pf.unusedTokens.push(token); } addTimeToArrayFromToken(token, parsedInput, config); } else if (config._strict && !parsedInput) { config._pf.unusedTokens.push(token); } } // add remaining unparsed input length to the string config._pf.charsLeftOver = stringLength - totalParsedInputLength; if (string.length > 0) { config._pf.unusedInput.push(string); } // handle am pm if (config._isPm && config._a[HOUR] < 12) { config._a[HOUR] += 12; } // if is 12 am, change hours to 0 if (config._isPm === false && config._a[HOUR] === 12) { config._a[HOUR] = 0; } dateFromConfig(config); checkOverflow(config); } function unescapeFormat(s) { return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { return p1 || p2 || p3 || p4; }); } // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript function regexpEscape(s) { return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); } // date from string and array of format strings function makeDateFromStringAndArray(config) { var tempConfig, bestMoment, scoreToBeat, i, currentScore; if (config._f.length === 0) { config._pf.invalidFormat = true; config._d = new Date(NaN); return; } for (i = 0; i < config._f.length; i++) { currentScore = 0; tempConfig = copyConfig({}, config); tempConfig._pf = defaultParsingFlags(); tempConfig._f = config._f[i]; makeDateFromStringAndFormat(tempConfig); if (!isValid(tempConfig)) { continue; } // if there is any input that was not parsed add a penalty for that format currentScore += tempConfig._pf.charsLeftOver; //or tokens currentScore += tempConfig._pf.unusedTokens.length * 10; tempConfig._pf.score = currentScore; if (scoreToBeat == null || currentScore < scoreToBeat) { scoreToBeat = currentScore; bestMoment = tempConfig; } } extend(config, bestMoment || tempConfig); } // date from iso format function parseISO(config) { var i, l, string = config._i, match = isoRegex.exec(string); if (match) { config._pf.iso = true; for (i = 0, l = isoDates.length; i < l; i++) { if (isoDates[i][1].exec(string)) { // match[5] should be "T" or undefined config._f = isoDates[i][0] + (match[6] || ' '); break; } } for (i = 0, l = isoTimes.length; i < l; i++) { if (isoTimes[i][1].exec(string)) { config._f += isoTimes[i][0]; break; } } if (string.match(parseTokenTimezone)) { config._f += 'Z'; } makeDateFromStringAndFormat(config); } else { config._isValid = false; } } // date from iso format or fallback function makeDateFromString(config) { parseISO(config); if (config._isValid === false) { delete config._isValid; moment.createFromInputFallback(config); } } function makeDateFromInput(config) { var input = config._i, matched; if (input === undefined) { config._d = new Date(); } else if (isDate(input)) { config._d = new Date(+input); } else if ((matched = aspNetJsonRegex.exec(input)) !== null) { config._d = new Date(+matched[1]); } else if (typeof input === 'string') { makeDateFromString(config); } else if (isArray(input)) { config._a = input.slice(0); dateFromConfig(config); } else if (typeof(input) === 'object') { dateFromObject(config); } else if (typeof(input) === 'number') { // from milliseconds config._d = new Date(input); } else { moment.createFromInputFallback(config); } } function makeDate(y, m, d, h, M, s, ms) { //can't just apply() to create a date: //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply var date = new Date(y, m, d, h, M, s, ms); //the date constructor doesn't accept years < 1970 if (y < 1970) { date.setFullYear(y); } return date; } function makeUTCDate(y) { var date = new Date(Date.UTC.apply(null, arguments)); if (y < 1970) { date.setUTCFullYear(y); } return date; } function parseWeekday(input, locale) { if (typeof input === 'string') { if (!isNaN(input)) { input = parseInt(input, 10); } else { input = locale.weekdaysParse(input); if (typeof input !== 'number') { return null; } } } return input; } /************************************ Relative Time ************************************/ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); } function relativeTime(posNegDuration, withoutSuffix, locale) { var duration = moment.duration(posNegDuration).abs(), seconds = round(duration.as('s')), minutes = round(duration.as('m')), hours = round(duration.as('h')), days = round(duration.as('d')), months = round(duration.as('M')), years = round(duration.as('y')), args = seconds < relativeTimeThresholds.s && ['s', seconds] || minutes === 1 && ['m'] || minutes < relativeTimeThresholds.m && ['mm', minutes] || hours === 1 && ['h'] || hours < relativeTimeThresholds.h && ['hh', hours] || days === 1 && ['d'] || days < relativeTimeThresholds.d && ['dd', days] || months === 1 && ['M'] || months < relativeTimeThresholds.M && ['MM', months] || years === 1 && ['y'] || ['yy', years]; args[2] = withoutSuffix; args[3] = +posNegDuration > 0; args[4] = locale; return substituteTimeAgo.apply({}, args); } /************************************ Week of Year ************************************/ // firstDayOfWeek 0 = sun, 6 = sat // the day of the week that starts the week // (usually sunday or monday) // firstDayOfWeekOfYear 0 = sun, 6 = sat // the first week is the week that contains the first // of this day of the week // (eg. ISO weeks use thursday (4)) function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) { var end = firstDayOfWeekOfYear - firstDayOfWeek, daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(), adjustedMoment; if (daysToDayOfWeek > end) { daysToDayOfWeek -= 7; } if (daysToDayOfWeek < end - 7) { daysToDayOfWeek += 7; } adjustedMoment = moment(mom).add(daysToDayOfWeek, 'd'); return { week: Math.ceil(adjustedMoment.dayOfYear() / 7), year: adjustedMoment.year() }; } //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) { var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear; d = d === 0 ? 7 : d; weekday = weekday != null ? weekday : firstDayOfWeek; daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0); dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1; return { year: dayOfYear > 0 ? year : year - 1, dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear }; } /************************************ Top Level Functions ************************************/ function makeMoment(config) { var input = config._i, format = config._f; config._locale = config._locale || moment.localeData(config._l); if (input === null || (format === undefined && input === '')) { return moment.invalid({nullInput: true}); } if (typeof input === 'string') { config._i = input = config._locale.preparse(input); } if (moment.isMoment(input)) { return new Moment(input, true); } else if (format) { if (isArray(format)) { makeDateFromStringAndArray(config); } else { makeDateFromStringAndFormat(config); } } else { makeDateFromInput(config); } return new Moment(config); } moment = function (input, format, locale, strict) { var c; if (typeof(locale) === "boolean") { strict = locale; locale = undefined; } // object construction must be done this way. // https://github.com/moment/moment/issues/1423 c = {}; c._isAMomentObject = true; c._i = input; c._f = format; c._l = locale; c._strict = strict; c._isUTC = false; c._pf = defaultParsingFlags(); return makeMoment(c); }; moment.suppressDeprecationWarnings = false; moment.createFromInputFallback = deprecate( 'moment construction falls back to js Date. This is ' + 'discouraged and will be removed in upcoming major ' + 'release. Please refer to ' + 'https://github.com/moment/moment/issues/1407 for more info.', function (config) { config._d = new Date(config._i); } ); // Pick a moment m from moments so that m[fn](other) is true for all // other. This relies on the function fn to be transitive. // // moments should either be an array of moment objects or an array, whose // first element is an array of moment objects. function pickBy(fn, moments) { var res, i; if (moments.length === 1 && isArray(moments[0])) { moments = moments[0]; } if (!moments.length) { return moment(); } res = moments[0]; for (i = 1; i < moments.length; ++i) { if (moments[i][fn](res)) { res = moments[i]; } } return res; } moment.min = function () { var args = [].slice.call(arguments, 0); return pickBy('isBefore', args); }; moment.max = function () { var args = [].slice.call(arguments, 0); return pickBy('isAfter', args); }; // creating with utc moment.utc = function (input, format, locale, strict) { var c; if (typeof(locale) === "boolean") { strict = locale; locale = undefined; } // object construction must be done this way. // https://github.com/moment/moment/issues/1423 c = {}; c._isAMomentObject = true; c._useUTC = true; c._isUTC = true; c._l = locale; c._i = input; c._f = format; c._strict = strict; c._pf = defaultParsingFlags(); return makeMoment(c).utc(); }; // creating with unix timestamp (in seconds) moment.unix = function (input) { return moment(input * 1000); }; // duration moment.duration = function (input, key) { var duration = input, // matching against regexp is expensive, do it on demand match = null, sign, ret, parseIso, diffRes; if (moment.isDuration(input)) { duration = { ms: input._milliseconds, d: input._days, M: input._months }; } else if (typeof input === 'number') { duration = {}; if (key) { duration[key] = input; } else { duration.milliseconds = input; } } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) { sign = (match[1] === '-') ? -1 : 1; duration = { y: 0, d: toInt(match[DATE]) * sign, h: toInt(match[HOUR]) * sign, m: toInt(match[MINUTE]) * sign, s: toInt(match[SECOND]) * sign, ms: toInt(match[MILLISECOND]) * sign }; } else if (!!(match = isoDurationRegex.exec(input))) { sign = (match[1] === '-') ? -1 : 1; parseIso = function (inp) { // We'd normally use ~~inp for this, but unfortunately it also // converts floats to ints. // inp may be undefined, so careful calling replace on it. var res = inp && parseFloat(inp.replace(',', '.')); // apply sign while we're at it return (isNaN(res) ? 0 : res) * sign; }; duration = { y: parseIso(match[2]), M: parseIso(match[3]), d: parseIso(match[4]), h: parseIso(match[5]), m: parseIso(match[6]), s: parseIso(match[7]), w: parseIso(match[8]) }; } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) { diffRes = momentsDifference(moment(duration.from), moment(duration.to)); duration = {}; duration.ms = diffRes.milliseconds; duration.M = diffRes.months; } ret = new Duration(duration); if (moment.isDuration(input) && input.hasOwnProperty('_locale')) { ret._locale = input._locale; } return ret; }; // version number moment.version = VERSION; // default format moment.defaultFormat = isoFormat; // constant that refers to the ISO standard moment.ISO_8601 = function () {}; // Plugins that add properties should also add the key here (null value), // so we can properly clone ourselves. moment.momentProperties = momentProperties; // This function will be called whenever a moment is mutated. // It is intended to keep the offset in sync with the timezone. moment.updateOffset = function () {}; // This function allows you to set a threshold for relative time strings moment.relativeTimeThreshold = function (threshold, limit) { if (relativeTimeThresholds[threshold] === undefined) { return false; } if (limit === undefined) { return relativeTimeThresholds[threshold]; } relativeTimeThresholds[threshold] = limit; return true; }; moment.lang = deprecate( "moment.lang is deprecated. Use moment.locale instead.", function (key, value) { return moment.locale(key, value); } ); // This function will load locale and then set the global locale. If // no arguments are passed in, it will simply return the current global // locale key. moment.locale = function (key, values) { var data; if (key) { if (typeof(values) !== "undefined") { data = moment.defineLocale(key, values); } else { data = moment.localeData(key); } if (data) { moment.duration._locale = moment._locale = data; } } return moment._locale._abbr; }; moment.defineLocale = function (name, values) { if (values !== null) { values.abbr = name; if (!locales[name]) { locales[name] = new Locale(); } locales[name].set(values); // backwards compat for now: also set the locale moment.locale(name); return locales[name]; } else { // useful for testing delete locales[name]; return null; } }; moment.langData = deprecate( "moment.langData is deprecated. Use moment.localeData instead.", function (key) { return moment.localeData(key); } ); // returns locale data moment.localeData = function (key) { var locale; if (key && key._locale && key._locale._abbr) { key = key._locale._abbr; } if (!key) { return moment._locale; } if (!isArray(key)) { //short-circuit everything else locale = loadLocale(key); if (locale) { return locale; } key = [key]; } return chooseLocale(key); }; // compare moment object moment.isMoment = function (obj) { return obj instanceof Moment || (obj != null && obj.hasOwnProperty('_isAMomentObject')); }; // for typechecking Duration objects moment.isDuration = function (obj) { return obj instanceof Duration; }; for (i = lists.length - 1; i >= 0; --i) { makeList(lists[i]); } moment.normalizeUnits = function (units) { return normalizeUnits(units); }; moment.invalid = function (flags) { var m = moment.utc(NaN); if (flags != null) { extend(m._pf, flags); } else { m._pf.userInvalidated = true; } return m; }; moment.parseZone = function () { return moment.apply(null, arguments).parseZone(); }; moment.parseTwoDigitYear = function (input) { return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); }; /************************************ Moment Prototype ************************************/ extend(moment.fn = Moment.prototype, { clone : function () { return moment(this); }, valueOf : function () { return +this._d + ((this._offset || 0) * 60000); }, unix : function () { return Math.floor(+this / 1000); }, toString : function () { return this.clone().locale('en').format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); }, toDate : function () { return this._offset ? new Date(+this) : this._d; }, toISOString : function () { var m = moment(this).utc(); if (0 < m.year() && m.year() <= 9999) { return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); } else { return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); } }, toArray : function () { var m = this; return [ m.year(), m.month(), m.date(), m.hours(), m.minutes(), m.seconds(), m.milliseconds() ]; }, isValid : function () { return isValid(this); }, isDSTShifted : function () { if (this._a) { return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0; } return false; }, parsingFlags : function () { return extend({}, this._pf); }, invalidAt: function () { return this._pf.overflow; }, utc : function (keepLocalTime) { return this.zone(0, keepLocalTime); }, local : function (keepLocalTime) { if (this._isUTC) { this.zone(0, keepLocalTime); this._isUTC = false; if (keepLocalTime) { this.add(this._d.getTimezoneOffset(), 'm'); } } return this; }, format : function (inputString) { var output = formatMoment(this, inputString || moment.defaultFormat); return this.localeData().postformat(output); }, add : createAdder(1, 'add'), subtract : createAdder(-1, 'subtract'), diff : function (input, units, asFloat) { var that = makeAs(input, this), zoneDiff = (this.zone() - that.zone()) * 6e4, diff, output; units = normalizeUnits(units); if (units === 'year' || units === 'month') { // average number of days in the months in the given dates diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2 // difference in months output = ((this.year() - that.year()) * 12) + (this.month() - that.month()); // adjust by taking difference in days, average number of days // and dst in the given months. output += ((this - moment(this).startOf('month')) - (that - moment(that).startOf('month'))) / diff; // same as above but with zones, to negate all dst output -= ((this.zone() - moment(this).startOf('month').zone()) - (that.zone() - moment(that).startOf('month').zone())) * 6e4 / diff; if (units === 'year') { output = output / 12; } } else { diff = (this - that); output = units === 'second' ? diff / 1e3 : // 1000 units === 'minute' ? diff / 6e4 : // 1000 * 60 units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60 units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst diff; } return asFloat ? output : absRound(output); }, from : function (time, withoutSuffix) { return moment.duration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); }, fromNow : function (withoutSuffix) { return this.from(moment(), withoutSuffix); }, calendar : function (time) { // We want to compare the start of today, vs this. // Getting start-of-today depends on whether we're zone'd or not. var now = time || moment(), sod = makeAs(now, this).startOf('day'), diff = this.diff(sod, 'days', true), format = diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse'; return this.format(this.localeData().calendar(format, this)); }, isLeapYear : function () { return isLeapYear(this.year()); }, isDST : function () { return (this.zone() < this.clone().month(0).zone() || this.zone() < this.clone().month(5).zone()); }, day : function (input) { var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); if (input != null) { input = parseWeekday(input, this.localeData()); return this.add(input - day, 'd'); } else { return day; } }, month : makeAccessor('Month', true), startOf : function (units) { units = normalizeUnits(units); // the following switch intentionally omits break keywords // to utilize falling through the cases. switch (units) { case 'year': this.month(0); /* falls through */ case 'quarter': case 'month': this.date(1); /* falls through */ case 'week': case 'isoWeek': case 'day': this.hours(0); /* falls through */ case 'hour': this.minutes(0); /* falls through */ case 'minute': this.seconds(0); /* falls through */ case 'second': this.milliseconds(0); /* falls through */ } // weeks are a special case if (units === 'week') { this.weekday(0); } else if (units === 'isoWeek') { this.isoWeekday(1); } // quarters are also special if (units === 'quarter') { this.month(Math.floor(this.month() / 3) * 3); } return this; }, endOf: function (units) { units = normalizeUnits(units); return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms'); }, isAfter: function (input, units) { units = typeof units !== 'undefined' ? units : 'millisecond'; return +this.clone().startOf(units) > +moment(input).startOf(units); }, isBefore: function (input, units) { units = typeof units !== 'undefined' ? units : 'millisecond'; return +this.clone().startOf(units) < +moment(input).startOf(units); }, isSame: function (input, units) { units = units || 'ms'; return +this.clone().startOf(units) === +makeAs(input, this).startOf(units); }, min: deprecate( 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548', function (other) { other = moment.apply(null, arguments); return other < this ? this : other; } ), max: deprecate( 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548', function (other) { other = moment.apply(null, arguments); return other > this ? this : other; } ), // keepLocalTime = true means only change the timezone, without // affecting the local hour. So 5:31:26 +0300 --[zone(2, true)]--> // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist int zone // +0200, so we adjust the time as needed, to be valid. // // Keeping the time actually adds/subtracts (one hour) // from the actual represented time. That is why we call updateOffset // a second time. In case it wants us to change the offset again // _changeInProgress == true case, then we have to adjust, because // there is no such time in the given timezone. zone : function (input, keepLocalTime) { var offset = this._offset || 0, localAdjust; if (input != null) { if (typeof input === 'string') { input = timezoneMinutesFromString(input); } if (Math.abs(input) < 16) { input = input * 60; } if (!this._isUTC && keepLocalTime) { localAdjust = this._d.getTimezoneOffset(); } this._offset = input; this._isUTC = true; if (localAdjust != null) { this.subtract(localAdjust, 'm'); } if (offset !== input) { if (!keepLocalTime || this._changeInProgress) { addOrSubtractDurationFromMoment(this, moment.duration(offset - input, 'm'), 1, false); } else if (!this._changeInProgress) { this._changeInProgress = true; moment.updateOffset(this, true); this._changeInProgress = null; } } } else { return this._isUTC ? offset : this._d.getTimezoneOffset(); } return this; }, zoneAbbr : function () { return this._isUTC ? 'UTC' : ''; }, zoneName : function () { return this._isUTC ? 'Coordinated Universal Time' : ''; }, parseZone : function () { if (this._tzm) { this.zone(this._tzm); } else if (typeof this._i === 'string') { this.zone(this._i); } return this; }, hasAlignedHourOffset : function (input) { if (!input) { input = 0; } else { input = moment(input).zone(); } return (this.zone() - input) % 60 === 0; }, daysInMonth : function () { return daysInMonth(this.year(), this.month()); }, dayOfYear : function (input) { var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1; return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); }, quarter : function (input) { return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); }, weekYear : function (input) { var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year; return input == null ? year : this.add((input - year), 'y'); }, isoWeekYear : function (input) { var year = weekOfYear(this, 1, 4).year; return input == null ? year : this.add((input - year), 'y'); }, week : function (input) { var week = this.localeData().week(this); return input == null ? week : this.add((input - week) * 7, 'd'); }, isoWeek : function (input) { var week = weekOfYear(this, 1, 4).week; return input == null ? week : this.add((input - week) * 7, 'd'); }, weekday : function (input) { var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; return input == null ? weekday : this.add(input - weekday, 'd'); }, isoWeekday : function (input) { // behaves the same as moment#day except // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) // as a setter, sunday should belong to the previous week. return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7); }, isoWeeksInYear : function () { return weeksInYear(this.year(), 1, 4); }, weeksInYear : function () { var weekInfo = this.localeData()._week; return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); }, get : function (units) { units = normalizeUnits(units); return this[units](); }, set : function (units, value) { units = normalizeUnits(units); if (typeof this[units] === 'function') { this[units](value); } return this; }, // If passed a locale key, it will set the locale for this // instance. Otherwise, it will return the locale configuration // variables for this instance. locale : function (key) { if (key === undefined) { return this._locale._abbr; } else { this._locale = moment.localeData(key); return this; } }, lang : deprecate( "moment().lang() is deprecated. Use moment().localeData() instead.", function (key) { if (key === undefined) { return this.localeData(); } else { this._locale = moment.localeData(key); return this; } } ), localeData : function () { return this._locale; } }); function rawMonthSetter(mom, value) { var dayOfMonth; // TODO: Move this out of here! if (typeof value === 'string') { value = mom.localeData().monthsParse(value); // TODO: Another silent failure? if (typeof value !== 'number') { return mom; } } dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); return mom; } function rawGetter(mom, unit) { return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit](); } function rawSetter(mom, unit, value) { if (unit === 'Month') { return rawMonthSetter(mom, value); } else { return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); } } function makeAccessor(unit, keepTime) { return function (value) { if (value != null) { rawSetter(this, unit, value); moment.updateOffset(this, keepTime); return this; } else { return rawGetter(this, unit); } }; } moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false); moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false); moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false); // Setting the hour should keep the time, because the user explicitly // specified which hour he wants. So trying to maintain the same hour (in // a new timezone) makes sense. Adding/subtracting hours does not follow // this rule. moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true); // moment.fn.month is defined separately moment.fn.date = makeAccessor('Date', true); moment.fn.dates = deprecate('dates accessor is deprecated. Use date instead.', makeAccessor('Date', true)); moment.fn.year = makeAccessor('FullYear', true); moment.fn.years = deprecate('years accessor is deprecated. Use year instead.', makeAccessor('FullYear', true)); // add plural methods moment.fn.days = moment.fn.day; moment.fn.months = moment.fn.month; moment.fn.weeks = moment.fn.week; moment.fn.isoWeeks = moment.fn.isoWeek; moment.fn.quarters = moment.fn.quarter; // add aliased format methods moment.fn.toJSON = moment.fn.toISOString; /************************************ Duration Prototype ************************************/ function daysToYears (days) { // 400 years have 146097 days (taking into account leap year rules) return days * 400 / 146097; } function yearsToDays (years) { // years * 365 + absRound(years / 4) - // absRound(years / 100) + absRound(years / 400); return years * 146097 / 400; } extend(moment.duration.fn = Duration.prototype, { _bubble : function () { var milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data, seconds, minutes, hours, years = 0; // The following code bubbles up values, see the tests for // examples of what that means. data.milliseconds = milliseconds % 1000; seconds = absRound(milliseconds / 1000); data.seconds = seconds % 60; minutes = absRound(seconds / 60); data.minutes = minutes % 60; hours = absRound(minutes / 60); data.hours = hours % 24; days += absRound(hours / 24); // Accurately convert days to years, assume start from year 0. years = absRound(daysToYears(days)); days -= absRound(yearsToDays(years)); // 30 days to a month // TODO (iskren): Use anchor date (like 1st Jan) to compute this. months += absRound(days / 30); days %= 30; // 12 months -> 1 year years += absRound(months / 12); months %= 12; data.days = days; data.months = months; data.years = years; }, abs : function () { this._milliseconds = Math.abs(this._milliseconds); this._days = Math.abs(this._days); this._months = Math.abs(this._months); this._data.milliseconds = Math.abs(this._data.milliseconds); this._data.seconds = Math.abs(this._data.seconds); this._data.minutes = Math.abs(this._data.minutes); this._data.hours = Math.abs(this._data.hours); this._data.months = Math.abs(this._data.months); this._data.years = Math.abs(this._data.years); return this; }, weeks : function () { return absRound(this.days() / 7); }, valueOf : function () { return this._milliseconds + this._days * 864e5 + (this._months % 12) * 2592e6 + toInt(this._months / 12) * 31536e6; }, humanize : function (withSuffix) { var output = relativeTime(this, !withSuffix, this.localeData()); if (withSuffix) { output = this.localeData().pastFuture(+this, output); } return this.localeData().postformat(output); }, add : function (input, val) { // supports only 2.0-style add(1, 's') or add(moment) var dur = moment.duration(input, val); this._milliseconds += dur._milliseconds; this._days += dur._days; this._months += dur._months; this._bubble(); return this; }, subtract : function (input, val) { var dur = moment.duration(input, val); this._milliseconds -= dur._milliseconds; this._days -= dur._days; this._months -= dur._months; this._bubble(); return this; }, get : function (units) { units = normalizeUnits(units); return this[units.toLowerCase() + 's'](); }, as : function (units) { var days, months; units = normalizeUnits(units); days = this._days + this._milliseconds / 864e5; if (units === 'month' || units === 'year') { months = this._months + daysToYears(days) * 12; return units === 'month' ? months : months / 12; } else { days += yearsToDays(this._months / 12); switch (units) { case 'week': return days / 7; case 'day': return days; case 'hour': return days * 24; case 'minute': return days * 24 * 60; case 'second': return days * 24 * 60 * 60; case 'millisecond': return days * 24 * 60 * 60 * 1000; default: throw new Error('Unknown unit ' + units); } } }, lang : moment.fn.lang, locale : moment.fn.locale, toIsoString : deprecate( "toIsoString() is deprecated. Please use toISOString() instead " + "(notice the capitals)", function () { return this.toISOString(); } ), toISOString : function () { // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js var years = Math.abs(this.years()), months = Math.abs(this.months()), days = Math.abs(this.days()), hours = Math.abs(this.hours()), minutes = Math.abs(this.minutes()), seconds = Math.abs(this.seconds() + this.milliseconds() / 1000); if (!this.asSeconds()) { // this is the same as C#'s (Noda) and python (isodate)... // but not other JS (goog.date) return 'P0D'; } return (this.asSeconds() < 0 ? '-' : '') + 'P' + (years ? years + 'Y' : '') + (months ? months + 'M' : '') + (days ? days + 'D' : '') + ((hours || minutes || seconds) ? 'T' : '') + (hours ? hours + 'H' : '') + (minutes ? minutes + 'M' : '') + (seconds ? seconds + 'S' : ''); }, localeData : function () { return this._locale; } }); function makeDurationGetter(name) { moment.duration.fn[name] = function () { return this._data[name]; }; } for (i in unitMillisecondFactors) { if (unitMillisecondFactors.hasOwnProperty(i)) { makeDurationGetter(i.toLowerCase()); } } moment.duration.fn.asMilliseconds = function () { return this.as('ms'); }; moment.duration.fn.asSeconds = function () { return this.as('s'); }; moment.duration.fn.asMinutes = function () { return this.as('m'); }; moment.duration.fn.asHours = function () { return this.as('h'); }; moment.duration.fn.asDays = function () { return this.as('d'); }; moment.duration.fn.asWeeks = function () { return this.as('weeks'); }; moment.duration.fn.asMonths = function () { return this.as('M'); }; moment.duration.fn.asYears = function () { return this.as('y'); }; /************************************ Default Locale ************************************/ // Set default locale, other locale will inherit from English. moment.locale('en', { ordinal : function (number) { var b = number % 10, output = (toInt(number % 100 / 10) === 1) ? 'th' : (b === 1) ? 'st' : (b === 2) ? 'nd' : (b === 3) ? 'rd' : 'th'; return number + output; } }); /* EMBED_LOCALES */ /************************************ Exposing Moment ************************************/ function makeGlobal(shouldDeprecate) { /*global ender:false */ if (typeof ender !== 'undefined') { return; } oldGlobalMoment = globalScope.moment; if (shouldDeprecate) { globalScope.moment = deprecate( 'Accessing Moment through the global scope is ' + 'deprecated, and will be removed in an upcoming ' + 'release.', moment); } else { globalScope.moment = moment; } } // CommonJS module is defined if (hasModule) { module.exports = moment; } else if (typeof define === 'function' && define.amd) { define('moment', function (require, exports, module) { if (module.config && module.config() && module.config().noGlobal === true) { // release the global variable globalScope.moment = oldGlobalMoment; } return moment; }); makeGlobal(true); } else { makeGlobal(); } }).call(this);
JavaScript
/* Copyright (c) 2008 Fred Palmer fred.palmer_at_gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ function StringBuffer() { this.buffer = []; } StringBuffer.prototype.append = function append(string) { this.buffer.push(string); return this; }; StringBuffer.prototype.toString = function toString() { return this.buffer.join(""); }; var Base64 = { codex : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", encode : function (input) { var output = new StringBuffer(); var enumerator = new Utf8EncodeEnumerator(input); while (enumerator.moveNext()) { var chr1 = enumerator.current; enumerator.moveNext(); var chr2 = enumerator.current; enumerator.moveNext(); var chr3 = enumerator.current; var enc1 = chr1 >> 2; var enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); var enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); var enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output.append(this.codex.charAt(enc1) + this.codex.charAt(enc2) + this.codex.charAt(enc3) + this.codex.charAt(enc4)); } return output.toString(); }, decode : function (input) { var output = new StringBuffer(); var enumerator = new Base64DecodeEnumerator(input); while (enumerator.moveNext()) { var charCode = enumerator.current; if (charCode < 128) output.append(String.fromCharCode(charCode)); else if ((charCode > 191) && (charCode < 224)) { enumerator.moveNext(); var charCode2 = enumerator.current; output.append(String.fromCharCode(((charCode & 31) << 6) | (charCode2 & 63))); } else { enumerator.moveNext(); var charCode2 = enumerator.current; enumerator.moveNext(); var charCode3 = enumerator.current; output.append(String.fromCharCode(((charCode & 15) << 12) | ((charCode2 & 63) << 6) | (charCode3 & 63))); } } return output.toString(); } } function Utf8EncodeEnumerator(input) { this._input = input; this._index = -1; this._buffer = []; } Utf8EncodeEnumerator.prototype = { current: Number.NaN, moveNext: function() { if (this._buffer.length > 0) { this.current = this._buffer.shift(); return true; } else if (this._index >= (this._input.length - 1)) { this.current = Number.NaN; return false; } else { var charCode = this._input.charCodeAt(++this._index); // "\r\n" -> "\n" // if ((charCode == 13) && (this._input.charCodeAt(this._index + 1) == 10)) { charCode = 10; this._index += 2; } if (charCode < 128) { this.current = charCode; } else if ((charCode > 127) && (charCode < 2048)) { this.current = (charCode >> 6) | 192; this._buffer.push((charCode & 63) | 128); } else { this.current = (charCode >> 12) | 224; this._buffer.push(((charCode >> 6) & 63) | 128); this._buffer.push((charCode & 63) | 128); } return true; } } } function Base64DecodeEnumerator(input) { this._input = input; this._index = -1; this._buffer = []; } Base64DecodeEnumerator.prototype = { current: 64, moveNext: function() { if (this._buffer.length > 0) { this.current = this._buffer.shift(); return true; } else if (this._index >= (this._input.length - 1)) { this.current = 64; return false; } else { var enc1 = Base64.codex.indexOf(this._input.charAt(++this._index)); var enc2 = Base64.codex.indexOf(this._input.charAt(++this._index)); var enc3 = Base64.codex.indexOf(this._input.charAt(++this._index)); var enc4 = Base64.codex.indexOf(this._input.charAt(++this._index)); var chr1 = (enc1 << 2) | (enc2 >> 4); var chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); var chr3 = ((enc3 & 3) << 6) | enc4; this.current = chr1; if (enc3 != 64) this._buffer.push(chr2); if (enc4 != 64) this._buffer.push(chr3); return true; } } };
JavaScript
window.error_alert=function(title,content,callback) { var dlg = $('<div id="ualertdlg"></div>'); var content = $('<div class="content"></div>').append(content); var closeBtn = $('<button class="btn btn-large"><i class="fa fa-times"></i>&nbsp;Close</button>'); dlg.append(content); dlg.append(closeBtn); dlg.dialog({ modal:true, title:title, width:300, height:160, close:function(){ if(typeof callback == 'function') { callback(dlg); } dlg.remove(); } }); closeBtn.click(function(){dlg.dialog('close')}); $('div[aria-describedby=ualertdlg]').addClass('err-dlg') }; window.confirm_alert=function(title,content,onConfirm,onCancel){ var dlg = $('<div id="ualertdlg"></div>'); dlg.append(content); dlg.dialog({ modal:true, title:title, width:400, height:160, close:function(){ dlg.remove(); } }); dlg.dialog('option', 'title', title); dlg.dialog('option', 'buttons', { "Yes" : function(){ $(this).dialog("close"); onConfirm(dlg); }, "No" : function() { $(this).dialog("close"); onCancel(dlg); }}); var yesBtn = dlg.parent().find('.ui-dialog-buttonset button:first'); var noBtn = yesBtn.next(); yesBtn.attr('class','btn btn-large'); noBtn.attr('class','btn btn-large'); yesBtn.html('<i class="fa fa-check"></i>&nbsp;Ok'); noBtn.html('<i class="fa fa-times"></i>&nbsp;Cancel'); yesBtn.unbind('mouseover'); noBtn.unbind('mouseover'); dlg.dialog("open"); $('div[aria-describedby=ualertdlg]').addClass('err-dlg'); };
JavaScript
function setContent (sec,com,el,callback) { var url = base_url() + sec + '/' + com; $('#iframeContent').prop('src',url).load(function(){ if(typeof callback == 'function') { callback(url); } try { $('#iframeContent').get(0).contentWindow.SetGridMainIcon($(el).find('>i').prop('class')); } catch(e){} }); } function checkHash(){} $(document).ready(function () { var loggedIn = !($('#AppLoad').text().replace(/\s/,'') == 'Welcome'); // INIT LAYOUT var west_not_loggedIn = {initClosed:true,togglerLength_closed:0,size:250}; var west_loggedIn = {size:313}; if(loggedIn){ $('.userMenu').show().css({ display: 'block', padding: '21px 9px 0 51px', position: 'absolute', right: '0', top: '0' }); $('.userMenu button').css({padding:'4px',cursor:'pointer'}).addClass('ui-state-default ui-corner-all') } var westConfig = loggedIn ? west_loggedIn : west_not_loggedIn; $('body').layout({ applyDemoStyles: false, east:{initClosed:true,togglerLength_closed:0}, north:{size:124,initClosed:0,togglerLength_open:0}, south:{size:0,initClosed:1,togglerLength_open:0}, west:westConfig, east__initHidden: true , west__resizable: false, east__resizable: false, north__resizable: false, south__resizable: false, }); // INIT SIDEBAR MENU $( "#accordion" ).accordion({ heightStyle: "content", autoHeight: false, clearStyle: true, }); $('a.um-chg-pwd').click(function(){ var url = $(this).prop('href'); var dlg = $('<div id="upwdlg"></div>'); var cnt = '<div class="pengguna-password">'+ '<div>'+ '<label style="display: block; width: 87px; float: left; line-height: 22px;">Password :</label>'+ '<input style="float:left;margin-top:1px;" type="password" name="pengguna_password"/>' + '</div><div><input style="float:left;cursor:pointer;margin-left:2px" type="button" value="Set" class="cmd_set_passwd"/></div>' + '</div>'; var dlg_title = 'Ubah Password '; try{ dlg.html(cnt).dialog({ modal:true, title:dlg_title, width:328, height:80, close:function(){ dlg.remove(); } }); dlg.find('input.cmd_set_passwd').click(function(){ var new_passwd = dlg.find('input[name=pengguna_password]').val(); if(!new_passwd.length){ alert('Mohon lengkapi data Anda !') return; } $.post(url,{passwd:new_passwd},function(o){ alert(o); dlg.dialog('close') ; }); }) dlg.find('input[name=pengguna_password]').keydown(function(e){ if(e.keyCode==13){ dlg.find('input.cmd_set_passwd').click(); } }); dlg.dialog('open'); } catch(e){ //console.log(e) } return false; }); $('.user-menu .ui-accordion-header-icon.ui-icon.ui-icon-triangle-1-e').remove(); $(window).resize(function(){ var lc = $('.ui-layout-center.ui-layout-pane.ui-layout-pane-center'); setTimeout(function(){ lc.height($(this).height()-122) },500); }); setTimeout(function(){ $(window).trigger('resize'); },100); });
JavaScript