Localize.drupal.org, a bad guy and The Holy Hammer

At the last Drupal Czech Translators Meetup we realized, that we had cuckoo in our translators group. Someone, apparently not Czech, uploaded to the localize.drupal.org translation server more than 3000 suggestions, which were only rough machine translations. Some of the machine generated suggestions were right, but it was only 1 hit from 10 or 20 shots... :-(

We were thinking how to remove all his suggestions as they were priceless and only makes the approval process harder. Unfortunetaly Localization server module which is used for community translation doesn't have any features which can be used for this kind of batch wipe operation. So I decided to make a bookmarklet - a script which automatically declines all suggestions from some bad user or spammer.

And here it is... a source code of the mighty Holy Hammer:

/**
 * Holy Hammer - A machine gun for translation moderators at localize.drupal.org 
 * Author: Vojtech Kusy - www.vojtechkusy.com 
 * Version: 1.1 - 20.5.2010
 */
var badAuthor = '';
var results = document.cookie.match ( '(^|;) ?hammeredauthor=([^;]*)(;|$)' );
if (results) badAuthor = (unescape(results[2]));
badAuthor = prompt('Enter name of author to be hammered:', badAuthor);
document.cookie = "hammeredauthor=" + badAuthor; 
$('.translation.is-declinable.filter-match').each( function(){
	var author = $('div.author a', this).text();
	if (author == badAuthor) {
		$('li.declined label input', this).attr('checked', 1).change();
	}
});
void($('#edit-submit-1').click());

Note that I'm using jQuery in the script. It is possible because translation server loads it during page load, so it is ready to use when you hit bookmarklet in your favorites toolbar.

Workflow is following:

  1. Use Localize interface and filter only suggestions from a "bad" user.
  2. Click on the bookmarklet in your browser toolbar. A prompt box appears asking the name of the "bad" user.
  3. If you fill it before, last value is offered as default (value is stored in the cookie).
  4. After you hit Ok, script automatically declines all suggestions from that user on the current page.
  5. Continue on the next page... and hammer'em all! Woo ha ha ha

The bookmarklet is here: Add this link - Holly Hammer - to your favorites bookmarks toolbar and name it Holy Hammer (or Witches' Hammer ?)

Please, use this bookmarklet with care, remember that this script is Holy. Discuss it with other translation moderators in your group before you are going to use it.

I just want to say I am

I just want to say I am newbie to blogs and actually enjoyed this site. Very likely I’m planning to bookmark your site . You absolutely have superb stories. Regards for sharing with us your mind.
Grigth price pakistan

15 Success Approaches For Bags Sale Which Never Falls flat

The latter is just a quick sketch of the historical past of the merchandise that you want to search at. [url=http://www.gulgbt.com/mulberry/mulberry-bags/mulberry-purses-accessories/mulberry-women-s-purses/mulberry-womens-small-beatrice-french-purse-brown.html]Mulberry Womens Small Beatrice French Purse Brown: Mulberry Factory Outlet[/url] So selecting on the number of brochures for printing also influences other aspects this sort of as the quality if you are working with a set budget. comparable business financing financial loans provided by chartered banking companies .A considerable sum of confusion exists in the Canadian business funding arena about the definition and use of ABL lending. Regional elected leaders may check out the cost powerful options. We must appear for expense powerful methods to deal with the water techniques of each and every village, city and metropolis across the world. He determined to employ the service of a huge, respected accounting agency to deal with the guides and dependable that they realized best.

Gynecomastia affects an believed 40 to 60 per cent of males. We'll also be discussing breast reduction capsules and how they can aid you to firm up your breasts. [url=http://www.mymm.co.uk/tag/cheap-michael-kors-handbags]Michael Kors Handbags Sale UK[/url] Shoppers no longer have to fret about generating several repayments to a assortment of collectors every thirty day period. In the case of an crisis you are obtainable to them the really following moment and what a wonderful morale booster this can be to all concerned. That way out could really possibly be quick marketing the house. However, with present market place scenarios in Queen Creek, AZ, this one particular time certain conclusion is now often times only wishful thinking. Once the pal receives the concept they can see who it is from, a good friend, and they will be significantly less likely to delete it as spam and can even go it on immediately to other friends in their own network, therefore increasing your exposure exponentially.

The Jones will have 176 rooms and a French cafe run by Olivier Peyton. [url=http://www.tohc.co.uk/marc-jacobs/marc-jacobs-hobos/marc-jacobs-shoulder-bags/index.html]Marc Jacobs/Marc Jacobs Hobos/Marc Jacobs Shoulder Bags: Marc Jacobs Handbag Outlet[/url] He/she confident is, in the correct feeling of the term, the apple of your eye. Toys and youngsters are inseparable and with an array of them, all better than the greatest, it??s not difficult to acquire a pair of them for your minor 1. Here will come the often read phrase "networking". It has to do with marketing your enterprise but do you know how to network efficiently. At the identical time, you may want to get a software that can effortlessly integrate with accounting systems of your company. Except if you are at the very maximum amount of any Mlm plan, you are not likely to get prosperous.

Even so this system certainly only functions with clients who are happy to have us work the total market place for them and we even have some customers who actually show us a house on one more brokers internet site and we go and communicate to the agent on there behalf. [url=http://www.k8andcompany.com/marcjacobs/marc-jacobs-handbag-outlet]Marc Jacobs Handbag Outlet Online[/url] However this method obviously only performs with clientele who are satisfied to have us operate the entire industry for them and we even have some customers who truly demonstrate us a house on an additional agents internet site and we go and speak to the agent on there behalf. The plastic variety of bags are also available in the bubble wrap selection. Furthermore you have much less chances of getting your clothing touched and managed by gloved palms. Call telephone trade, electrical power supplier, newspaper seller and waterman to quit the support from the certain day that you consider is suitable. You can also allow flyers cling unfastened. And you can simply create flyers for specific promotions or seasons.

Finally, everybody will realise that such a child has parents who don't take care of him/her. [url=http://www.hadasreposteria.com/michaelkors/michael-kors-handbags-uk]Michael Kors Watches UK[/url] Usually, if everything seems to be in order and you want to proceed with a contract signing, you'll then pay a contract fee, known as a franchise fee and then sign your contact. This is especially true when it comes to food for their babies. The ingredients for all Plasmon foods are carefully selected, whether they are the freshest vegetables or select lean cuts of meat. Hence, your custom labels will not only be better looking but also will exhibit the required characteristics; you desire to see in them. Tristan is left to wonder if Sir Hugh truly knows something about his heritage. The readers will be cheering for Tristan each time he escapes another close call.

This don't make sense

SEO tools are better than this shit of indian people writting comments on old blogs.

For a better business model visit ideas de negocio online.

True Religion Outlet

لعبة زوما

I'm glad that you solved the

I'm glad that you solved the problem. I don't know why people do such things like messing up other people's work.

Love Spell

Thanks very much. I'll try it

Thanks very much. I'll try it on my Drupal website.

tup bebek doktoru

Thanks. That will be useful

Thanks. That will be useful for my dark poems Drupal website.

Nice

Really like this , Check out my site

Corian countertops

coach factory outlet online

coach factory outlet online sale, because I want you to accompany me for a lifetime! Coach Factory Outlet Online Sale shook his head, Lover's claim to despise Wangle Yan Tao coach factory outlet , one of the three girls all football into his arms, coach factory outlet online is proud to announce road.

WTF!

I think this content has not any relation to post:

http://www.repararpiesdegato.com

Hi,

I am Trying this Coding, Its Working Fine and very Informative information for Drupal Developers

Wedding Websites

This article is interesting

This article enhances my admiration for this website even more.
Contact: tienminhinfor@gmail.com - http://www.matkien.com

oh yeah, i like

Over view your article. It is very intesresting that more informative infor to read. thanks
contact: http://www.yowebnet.com (support@yowebnet.com)

لعبة زوما