Utilisateur:Dr Brains/LiveRC.js/Miroir

LiveRC_Config["LogEntries"] = {

   'move' :              {'move':'1movedto2', 'move_redir':'1movedto2_redir', 'move-noredirect':, 'move_redir-noredirect': },
   'delete' :            {'delete':'deletedarticle', 'restore':'undeletedarticle'},
   'patrol' :            {'patrol':'patrol-log-diff'},
   'protect' :           {'protect':'protectedarticle', 'unprotect':'unprotectedarticle', 'modify':'modifiedarticleprotection'},
   'newusers':           {'newusers':, 'create':'newuserlog-create-entry', 'create2':'newuserlog-create2-entry', 'autocreate':'newuserlog-autocreate-entry'},
   'upload' :            {'upload':'uploadedimage', 'overwrite':'overwroteimage'},
   'merge':              {},
   'block':              {},
   'rights':             {},
   'import':             {},
   'gblrights':          {},
   'gblblock':           {},
   'globalauth':         {},
   'renameuser':         {},
   'abusefilter':        {},
   'abuselog':           {},
   'thanks':             {},
   'articlefeedbackv5':  {},
   'massmessage':        {},
   'suppress':           {},
   'checkuser':          {},
   'pagetriage-curation':{},
   'pagetriage-deletion':{},
   'review':             {},
   'stable':             {},
   'online':             {},
   'campus':             {},
   'course':             {},
   'institution':        {},
   'instructor':         {},
   'student':            {},
   'student':            {},
   'translatorsandbox':  {},
   'translationreview':  {},
   'pagetranslation':    {},
   'notifytranslators':  {},
   'liquidthreads':      {},
   'mwoauthconsumer':    {},
   'moodbar':            {},
   'interwiki':          {}

}











function getRevision_td3Content_LogCommentEntryText(rc){

 var type = rc.type;
 if(!LiveRC_Config["LogEntries"][type]) return false;
 var action = rc.action;
 if(!LiveRC_Config["LogEntries"][type][action]) return false;
 return LiveRC_Config["LogEntries"][type][action];

}


function getRevision_td3Content_LogComment(rc){

 var state = rc.state;
 var type = rc.type;
 var action = rc.action;
 var comment = "";
 var MSG = getRevision_td3Content_LogCommentEntryText(rc);
 if(!MSG) return ""
 var replaceItems = new Array();
 /* TODO */
 comment = lrcGetMediawikiMessage(MSG, true, replaceItems);
 return comment;

}