אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Gadget-Checkty.js"

נאך עפעס צופאסונג
(פארשלאגן מוסטער אנשטאט תבנית)
(נאך עפעס צופאסונג)
שורה 11: שורה 11:
'checkty-no-replacements': 'הדף מכיל מוסטער "ללא בוט" ולכן לא יבוצעו החלפות',
'checkty-no-replacements': 'הדף מכיל מוסטער "ללא בוט" ולכן לא יבוצעו החלפות',
'checkty-replace-summary': '[[מכ:רה|החלפות]] ($1)',
'checkty-replace-summary': '[[מכ:רה|החלפות]] ($1)',
'checkty-disambig-suffix': ' (פירושונים)',
'checkty-disambig-suffix': ' (באדייטן)',
'checkty-disambig-no-links': 'לינקס צו באדייטן - נישט געטראפן',
'checkty-disambig-no-links': 'לינקס צו באדייטן - נישט געטראפן',
'checkty-disambig-success': 'לינקס צו באדייטן - די בדיקה איז סוקסעספול פארענדיגט.',
'checkty-disambig-success': 'לינקס צו באדייטן - די בדיקה איז סוקסעספול פארענדיגט.',
שורה 31: שורה 31:
'checkty-missing-ref-section-add': 'נמצאו רעפערענצן בערך אך לא פרק מתאים. מומלץ להוסיף את הפרק לערך, וניתן להוסיף אותו אוטומטית במקום המשוער לכך.',
'checkty-missing-ref-section-add': 'נמצאו רעפערענצן בערך אך לא פרק מתאים. מומלץ להוסיף את הפרק לערך, וניתן להוסיף אותו אוטומטית במקום המשוער לכך.',
'checkty-missing-ref-section-added': 'רעפערענצן אפטיילונג צוגעלייגט.',
'checkty-missing-ref-section-added': 'רעפערענצן אפטיילונג צוגעלייגט.',
'checkty-missing-ref-section-autofix': 'צולייגן אטאמאטיש',
'checkty-missing-ref-section-autofix': 'צולייגן אויטאמאטיש',
'checkty-please-position-caret' : 'אנא מקמו את הסמן במקום בו יש להוסיף ',
'checkty-please-position-caret' : 'אנא מקמו את הסמן במקום בו יש להוסיף ',
'checkty-ref-dir-fix' : 'תיקון כיווניות להערת שוליים',
'checkty-ref-dir-fix' : 'תיקון כיווניות להערת שוליים',
שורה 157: שורה 157:
verifyRun: function () {
verifyRun: function () {
  var self = this, runExcute = true,
  var self = this, runExcute = true,
  inUseTemplatesRgx = /\{\{בעבודה[ \}\|]/;
  inUseTemplatesRgx = /\{\{אינמיטן ארבעט[ \}\|]/;
  if (!this.textbox || this.textbox.value.length === 0) return;
  if (!this.textbox || this.textbox.value.length === 0) return;


שורה 248: שורה 248:
  if (!firstFamilyRgx.exec(mw.config.get('wgTitle'))) return; // skip if can't suggest
  if (!firstFamilyRgx.exec(mw.config.get('wgTitle'))) return; // skip if can't suggest


  isPerson = /== ?(ביוגרפיה|קורות חיים|חיי[וה]) ?==/.exec(txt); // heuristic to identify biographic articles
  isPerson = /== ?(ביאגראפיע|לעבנס געשיכטע|האט געלעבט]) ?==/.exec(txt); // heuristic to identify biographic articles
  if (!isPerson) return; // skip for non biographic pages
  if (!isPerson) return; // skip for non biographic pages


שורה 268: שורה 268:
  newTxt = txt,
  newTxt = txt,
  self = this,
  self = this,
  categoryRE = /(\[\[קטגוריה:.+\]\])(?:$|\n)/g,
  categoryRE = /(\[\[(קאַטעגאָריע|קאטעגאריע):.+\]\])(?:$|\n)/g,
  cats = [], m = null, oldCats = null, categorySortMsg = null;
  cats = [], m = null, oldCats = null, categorySortMsg = null;
  while(m=categoryRE.exec(txt)) {
  while(m=categoryRE.exec(txt)) {
שורה 293: שורה 293:
  newTxt += '\n' + cats.join('\n');
  newTxt += '\n' + cats.join('\n');
  if (newTxt != txt)
  if (newTxt != txt)
  OO.ui.confirm( 'יש לאשר סדר הקטגוריות המוצע:' + cats.join(', ').replace(/\[\[קטגוריה:([^\[\]]+)\]\]/g, '$1') ).done( function ( confirmed ) {
  OO.ui.confirm( 'יש לאשר סדר הקטגוריות המוצע:' + cats.join(', ').replace(/\[\[(קאַטעגאָריע|קאטעגאריע):([^\[\]]+)\]\]/g, '$1') ).done( function ( confirmed ) {
  if ( !confirmed ) return;
  if ( !confirmed ) return;
  self.addSummary('סידור קטגוריות');
  self.addSummary('סידור קטגוריות');
שורה 303: שורה 303:
  var txt = this.textbox.value,
  var txt = this.textbox.value,
  newTxt = txt,
  newTxt = txt,
  categoryRE = /(\[\[קטגוריה:.+\]\])(?:$|\n)/g,
  categoryRE = /(\[\[(קאַטעגאָריע|קאטעגאריע):.+\]\])(?:$|\n)/g,
  cats = [], m = null, permutedCats = null;
  cats = [], m = null, permutedCats = null;
  while(m=categoryRE.exec(txt)) {
  while(m=categoryRE.exec(txt)) {