// Used to display messages at the top of the page..
notify = function() {
    var hasTable = false;
    var numMsgs = 0;
    var firstTimeMessageTypeId = -1;
    var cookieName = "m";  // system messages will also put a hash of current system message, e.g. "1234234"

    var renderMsg = function(json) {
        if (!hasTable) {
            $('#notify-container').append('<table id="notify-table"></table>');
            hasTable = true;
        }
        var html = '<tr' + (json.messageTypeId ? ' id="notify-' + json.messageTypeId + '"' : '');
        html += ' class="notify" style="display:none"><td class="notify">' + json.text;

        if (json.showProfile) {
            var userUrl = escape("/users/" + json.userId);
            html += ' Veja o seu <a href="/messages/mark-as-read?messagetypeid=' + json.messageTypeId + '&returnurl=' + userUrl + '">perfil</a>.';
        }

        html += '</td><td class="notify-close"><a title="fechar esta notificação" onclick="notify.close(';
        html += (json.messageTypeId ? json.messageTypeId : '') + ')">&times;</a></td></tr>';
        $("#notify-table").append(html);
    };

    var setFirstTimeCookie = function() {
        $.cookie("m", "-1", { expires: 90, path: "/" });
    };

    return {
        showFirstTime: function() {
            if ($.cookie("new")) { // this was the old cookie name - rename to our message holder
                $.cookie("new", "0", { expires: -1, path: "/" });
                setFirstTimeCookie();
            }

            if ($.cookie("m")) return; // don't show if we've got the cookie

            $("body").css("margin-top", "2.5em");
            renderMsg({
                messageTypeId: firstTimeMessageTypeId,
                text: 'Primeira vez aqui? Dê uma olhada na <a onclick="notify.closeFirstTime()">FAQ</a>!'
            });
            $(".notify").fadeIn("slow");
        },

        showMessages: function(jsonMsgArray) {
            for (var i = 0; i < jsonMsgArray.length; i++) {
                renderMsg(jsonMsgArray[i]);
            }

            $(".notify").fadeIn("slow");
            numMsgs = jsonMsgArray.length;
        },

        show: function(html) {
            $("body").css("margin-top", "2.5em");
            renderMsg({ text: html });
            $(".notify").fadeIn("slow");
        },

        close: function(messageTypeId) {
            var jHide;
            var newMargin = 0;
            if (messageTypeId && messageTypeId != firstTimeMessageTypeId) {
                $.post("/messages/mark-as-read", { "messagetypeid": messageTypeId });
                jHide = $("#notify-" + messageTypeId);
                if (numMsgs > 1) {
                    newMargin = parseInt($("body").css("margin-top").match(/\d+/));
                    newMargin = newMargin - (newMargin / numMsgs);
                }
            }
            else {
                if (messageTypeId && messageTypeId == firstTimeMessageTypeId)
                    setFirstTimeCookie();

                jHide = $(".notify");
            }
            jHide.children("td").css("border-bottom", "none").end().fadeOut("fast", function() {
                $("body").css("margin-top", newMargin + "px");
                jHide.remove();
            });
        },

        closeFirstTime: function() {
            setFirstTimeCookie();
            document.location = "/faq";
        }
    };
} ();

$(document).ready(function() {
		    translate();
		  });

$(document).ajaxComplete(function() { translate(); });

function translate() {
  $.each($("#hlinks a"),function() {
	   if($(this).text() == 'log out') {
	     $(this).text('sair');
	   }
	 });

  $.each($("span.page-numbers"),function() {
	   if($(this).text() == ' next') {
	     $(this).text('próxima');
	   } else 	if($(this).text() == 'per page') {
	     $(this).text('por página');
	   } else 	if($(this).text() == 'next') {
	     $(this).text('próxima');
	   }

	   if($(this).text().search("prev") >= 0) {
	     $(this).text($(this).text().replace("prev", "anterior"));
	   }
	 });

  $.each($("#hmenus div.nav a"),function() {
    	   if($(this).text() == 'Questions') {
	     $(this).text('Perguntas');
	   } else if($(this).text() == 'Tags') {
	     $(this).text('Tags');
	   } else if($(this).text() == 'Users') {
	     $(this).text('Usuários');
	   } else if($(this).text() == 'Badges') {
	     $(this).text('Medalhas');
	   } else if($(this).text() == 'Unanswered') {
	     $(this).text('Sem Resposta');
	   } else if($(this).text() == 'Ask Question') {
	     $(this).text('Fazer Pergunta');
	   }
	 });

  $.each($("#subheader h2"),function() {
	   if($(this).text() == "Recent Questions") {
    	     $(this).text("Últimas perguntas");
	   } else if($(this).text() == "All Questions") {
	     $(this).text("Todas as perguntas");
  	   } else if($(this).text() == "Log Out") {
	     $(this).text("Sair");
	   } else if($(this).text() == "Log in with OpenID") {
	     $(this).text("Entre usando OpenID");
	   } else if($(this).text() == "Tags") {
    	     $(this).text("Tags");
	   } else if($(this).text() == "Users") {
	     $(this).text("Usuários");
	   } else if($(this).text() == "Unanswered Questions") {
    	     $(this).text("Perguntas sem resposta");
	   } else if($(this).text() == "Ask a Question") {
	     $(this).text("Faça uma pergunta");
	   } else if($(this).text() == "Badges") {
    	     $(this).text("Medalhas");
	   } else if($(this).text() == "Search Results") {
    	     $(this).text("Resultados de busca");
	   } else if($(this).text() == "Human Verification") {
    	     $(this).text("Verificação anti-spam");
    	   } else if($(this).text() == "Tagged Questions") {
    	     $(this).text("Perguntas com Tag");
	   } else if($(this).text().search("Answer") >= 0) {
	     $(this).html($(this).html().replace("Answer", "Resposta"));
	   } else if($(this).text().search("Badges") >= 0) {
	     $(this).text($(this).text().replace("Badges", "Medalhas"));

	   } else if($(this).text().search("Edit") >= 0) {
	     $(this).html($(this).html().replace("Edit", "Editar"));
	   }
	 });

  $.each($("#subheader h2 a"),function() {
	   if($(this).text().search("Return to Question") >= 0) {
	     $(this).html($(this).html().replace("Return to Question", "Voltar à Pergunta"));
	   }

	 });

  $.each($("#subheader #tabs a"),function() {
    	   if($(this).text() == 'active') {
	     $(this).text('ativas');

	   } else if($(this).text() == 'hot') {
	     $(this).text('mais vistas');

	   } else if($(this).text() == 'week') {
	     $(this).text('semana');

	   } else if($(this).text() == 'month') {
	     $(this).text('mês');

	   } else if($(this).text() == 'newest') {
	     $(this).text('recentes');

	   } else if($(this).text() == 'featured') {
	     $(this).text('destacadas');

	   } else if($(this).text() == 'votes') {
	     $(this).text('votos');

	   } else if($(this).text() == 'name') {
	     $(this).text('ordem alfabética');

	   } else if($(this).text() == 'reputation') {
	     $(this).text('reputação');
	     if($(this).attr('title') == 'Reputation history for this user') {
	       $(this).attr('title','Histórico da reputação deste usuário');
	     }

	   } else if($(this).text() == 'oldest') {
	     $(this).text('antigos');

	   } else if($(this).text() == 'tags') {
	     $(this).text('tags');

	   } else if($(this).text() == 'badges') {
	     $(this).text('medalhas');

	   } else if($(this).text() == 'revisions') {
	     $(this).text('revisões');

	   } else if($(this).text() == 'responses') {
	     $(this).text('respostas');

	   } else if($(this).text() == 'favorites') {
	     $(this).text('favoritas');
	     if($(this).attr('title') == 'Questions marked as favorite by this user') {
	       $(this).attr('title','Perguntas marcadas como favoritas por este usuário');
	     }

	   } else if($(this).text() == 'stats') {
	     $(this).text('estatísticas');
	     if($(this).attr('title') == 'Top statistics for this user') {
	       $(this).attr('title','Estatísticas para este usuário');
	     }

	   } else if($(this).text() == 'recent') {
	     $(this).text('recentemente');
	     if($(this).attr('title') == 'Recent activity by this user') {
	       $(this).attr('title','Atividade recente deste usuário');
	     }
	   } else if($(this).text() == 'my tags') {
	     $(this).text('minhas tags');

	   } else if($(this).text().search('featured') == 1) {
	     $(this).html($(this).html().replace("featured", "destacadas"));
	   }

	 });

  $.each($("div.page-description span.search-tag-example"),function() {
	   if($(this).text() == '[tag]') {
	     $(this).text('[tag]');
	   } else if($(this).text() == '[tag] [another-tag]') {
	     $(this).text('[tag] [outra-tag]');
	   }
	 });

  $.each($("table.history-table b"),function() {
	   if($(this).text() == 'Nothing to report.') {
	     $(this).text('Nenhuma notificação');
	   }
	 });

  $.each($("div.recent-activity a"),function() {
	   if($(this).text() == 'last month') {
	     $(this).text('mês passado');
	   } else if($(this).text() == 'this month') {
	     $(this).text('este mês');
	   } else if($(this).text() == 'last week') {
	     $(this).text('semana passada');
	   } else if($(this).text() == 'this week') {
	     $(this).text('esta semana');
	   } else if($(this).text() == 'yesterday') {
	     $(this).text('ontem');
	   } else if($(this).text() == 'today') {
	     $(this).text('hoje');
	   }
	 });

  $.each($("div.page-description li"),function() {
	   if($(this).text() == 'Search within a specific set of tags:') {
	     $(this).text('Busque dentro de um certo conjunto de tags');
	   } else if($(this).text() == 'Make sure all words are spelled correctly') {
	     $(this).text('Certifique-se de que todas as palavras estão escritas corretamente');
	   } else if($(this).text() == 'Use different words') {
	     $(this).text('Use palavras diferentes');
	   } else if($(this).text() == 'Use more general words') {
	     $(this).text('Use palavras mais genéricas');
	   }
	 });

  $.each($("div.page-description p"),function() {
	   if($(this).text() == 'Your search returned no matches.') {
	     $(this).text('Sua busca não retornou nenhum resultado.');
	   } else if($(this).text() == 'Suggestions:') {
	     $(this).text('Sugestões:');
	   } else if($(this).text() == 'Alternately, try your search in Google:') {
	     $(this).text('Se nada funcionar, procure dentro do site com o Google:');
	   }

	   if($(this).text().search('Questions are grouped by tags. Using the right tags makes it easier for others to find and answer your question.') >= 0) {
	     $(this).html($(this).html().replace('Questions are grouped by tags. Using the right tags makes it easier for others to find and answer your question.', 'Perguntas são agrupadas por tags. Usar tags adequadas ajuda outros usuários encontrarem e responderem suas perguntas.'));
	   }
	   if($(this).text().search('Ask questions, provide answers, vote for the things you find helpful — and') >= 0) {
	     $(this).text($(this).text().replace('Ask questions, provide answers, vote for the things you find helpful — and','Faça perguntas, ofereça respostas, vote nas coisas que lhe parecem úteis — e o'));
	   }

	   if($(this).text().search('You can log in or out') >= 0) {
	     $(this).html('Você pode entrar ou sair a hora que quiser usando o OpenID que você associou à sua conta. Por questões de segurança, pedimos que confirme se deseja mesmo sair.');
	   }

	   if($(this).text().search(' y ') >= 0) {
	     $(this).text($(this).text().replace(' and ',' e '));
	   }

	   if($(this).text().search('You\'re a registered user') >= 0) {
	     $(this).html("Você é um usuário <span class=\"revision-comment\"><b>cadastrado</b></span>.");
	   }

	   if($(this).text().search('will bestow badges upon you. Here\'s a list of all the badges, along') >= 0) {
	     $(this).text($(this).text().replace('will bestow badges upon you. Here\'s a list of all the badges, along','lhe dará medalhas. Aqui listamos todas as medalhas e'));
	   }
	   if($(this).text().search('with a count of how many users have earned each one so far') >= 0) {
	     $(this).text($(this).text().replace('with a count of how many users have earned each one so far',' o número de usuários que já ganharam cada uma até agora'));
	   }

	   if($(this).text().search('You\'re currently an unregistered user') >= 0) {
	     $(this).html("Por enquanto você <b>não está cadastrado</b>. Você fez ou respondeu a uma pergunta, mas <span class=\"revision-comment\">nós só sabemos quem você é através dos <em>cookies</em> do seu navegador</span>. Se você trocar de computador, navegador, ou limpar os <em>cookies</em> de alguma forma, nós não conseguiremos nos lembrar de você. Você não conseguirá usar esta conta novamente!");
	   }

	   if($(this).text().search('Logging in with a new, unique OpenID') >= 0) {
	     $(this).html("Ao entrar com o seu login OpenID, nós associaremos a sua conta atual a ele, e você se tornará um <b>usuário cadastrado</b>, podendo listar as perguntas que já fez, respostas e comentários que recebeu, ganhar reputação por ajudar outros usuários e configurar o seu perfil pessoal. Entre o seu login OpenID:");
	   }
	   if($(this).text().search('You\'re currently an anonymous user') >= 0) {
	     $(this).html("Você está no " + custom_sitename +" como um <b>usuário anônimo</b>. Só dando uma olhada? Sem problema.");
	   }
	   if($(this).text().search('If you\'d like to register, or if you\'ve already registered, enter your ') >= 0) {
	     $(this).text($(this).text().replace('If you\'d like to register, or if you\'ve already registered, enter your','Se quer se cadastrar, ou se já se cadastrou, entre seu'));
	   }

	   if($(this).text().search('Alternately, click your account provider') >= 0) {
	     $(this).text($(this).text().replace('Alternately, click your account provider','ou clique na conta que quer usar'));
	   }
	   if($(this).text().search('Don\'t forget to enable OpenID support with your preferred provider first!') >= 0) {
	     $(this).text($(this).text().replace('Don\'t forget to enable OpenID support with your preferred provider first!','Não se esqueça de ativar o suporte a OpenID no site da conta que quer usar antes!'));
	   }
	   if($(this).text().search('Enter your AOL screenname') >= 0) {
	     $(this).text($(this).text().replace('Enter your AOL screenname','Entre seu nome de usuário na AOL'));
	   }
	   if($(this).text().search('Enter your MyOpenID username.') >= 0) {
	     $(this).text($(this).text().replace('Enter your MyOpenID username.','Entre seu nome de usuário no MyOpenID.'));
	   }
	   if($(this).text().search('Enter your Livejournal username.') >= 0) {
	     $(this).text($(this).text().replace('Enter your Livejournal username.','Entre seu nome de usuário no Livejournal.'));
	   }
	   if($(this).text().search('Enter your Flickr username.') >= 0) {
	     $(this).text($(this).text().replace('Enter your Flickr username.','Entre seu nome de usuário no Flickr.'));
	   }
	   if($(this).text().search('Enter your Technorati username.') >= 0) {
	     $(this).text($(this).text().replace('Enter your Technorati username.','Entre seu nome de usuário no Technorati.'));
	   }
	   if($(this).text().search('Enter your Wordpress.com username.') >= 0) {
	     $(this).text($(this).text().replace('Enter your Wordpress.com username.','Entre seu nome de usuário no Wordpress.com.'));
	   }
	   if($(this).text().search('Your Blogger account') >= 0) {
	     $(this).text($(this).text().replace('Your Blogger account','Sua conta no Blogger'));
	   }
	   if($(this).text().search('Your Verisign username') >= 0) {
	     $(this).text($(this).text().replace('Your Verisign username','Seu nome de usuário no Verisign'));
	   }
	   if($(this).text().search('Your Vidoop username') >= 0) {
	     $(this).text($(this).text().replace('Your Vidoop username','Seu nome de usuário no Vidoop'));
	   }
	   if($(this).text().search('Your ClaimID username') >= 0) {
	     $(this).text($(this).text().replace('Your ClaimID username','Seu nome de usuário no ClaimID'));
	   }
	 });

  $.each($("div.page-description td"),function() {
	   if($(this).text().search('Type to find tags') >= 0) {
	     $(this).text($(this).text().replace('Type to find tags', 'Escreva para encontrar tag'));
	   }
	   if($(this).text().search('Type to find users') >= 0) {
	     $(this).text($(this).text().replace('Type to find users', 'Escreva para encontrar usuário'));
	   }

	 });

  $.each($("div#mainbar div table tr td"),function() {
	   if($(this).text().search('Completed all user profile fields') >= 0) {
	     $(this).text($(this).text().replace('Completed all user profile fields', 'Completou todos os campos do perfil de usuário'));

	   } else if($(this).text().search('First flagged post') >= 0) {
	     $(this).text($(this).text().replace('First flagged post', 'Marcou entrada como problemática pela primeira vez'));

	   } else if($(this).text().search('Voted 300 times') >= 0) {
	     $(this).text($(this).text().replace('Voted 300 times', 'Votou 300 vezes'));

	   } else if($(this).text().search('First rollback') >= 0) {
	     $(this).text($(this).text().replace('First rollback', 'Reverteu uma alteração pela primeira vez'));

	   } else if($(this).text().search('Provided answer of +20 score to a question of -5 score') >= 0) {
	     $(this).text($(this).text().replace('Provided answer of +20 score to a question of -5 score', 'Resposta com +20 pontos para pergunta com -5 pontos'));

	   } else if($(this).text().search('Left 10 comments with score of 10 or more') >= 0) {
	     $(this).text($(this).text().replace('Left 10 comments with score of 10 or more', 'Deixou 10 comentários com pelo menos 10 votos'));

	   } else if($(this).text().search('Left 10 comments') >= 0) {
	     $(this).text($(this).text().replace('Left 10 comments', 'Deixou 10 comentários'));

	   } else if($(this).text().search('First down vote') >= 0) {
	     $(this).text($(this).text().replace('First down vote', 'Primeiro voto negativo'));

	   } else if($(this).text().search('Deleted own post with 3 or more upvotes') >= 0) {
	     $(this).text($(this).text().replace('Deleted own post with 3 or more upvotes', 'Deletou própria entrada com 3 ou mais votos positivos'));

	   } else if($(this).text().search('First edit') >= 0) {
	     $(this).text($(this).text().replace('First edit', 'Primera edição'));

	   } else if($(this).text().search('First answer was accepted with at least 10 up votes') >= 0) {
	     $(this).text($(this).text().replace('First answer was accepted with at least 10 up votes', 'Primeira resposta foi aceita com pelo menos 10  votos positivos'));

	   } else if($(this).text().search('Deleted own post with score of 3 or higher') >= 0) {
	     $(this).text($(this).text().replace('Deleted own post with score of 3 or higher', 'Removeu a própria entrada com 3 ou mais pontos'));

	   } else if($(this).text().search('Deleted own post with score of -3 or lower') >= 0) {
	     $(this).text($(this).text().replace('Deleted own post with score of -3 or lower', 'Removeu a própria entrada com -3 ou menos pontos'));

	   } else if($(this).text().search('Provided an answer that outscored an accepted answer with 10 votes by 2x') >= 0) {
	     $(this).text($(this).text().replace('Provided an answer that outscored an accepted answer with 10 votes by 2x', 'Resposta recebeu o dobro dos votos da aceita (com pelo menos 10 votos)'));

	   } else if($(this).text().search('Hit the daily reputation cap on 50 days') >= 0) {
	     $(this).text($(this).text().replace('Hit the daily reputation cap on 50 days', 'Alcançou o máximo de reputação por 50 dias consecutivos'));

	   } else if($(this).text().search('Hit the daily reputation cap on 150 days') >= 0) {
	     $(this).text($(this).text().replace('Hit the daily reputation cap on 150 days', 'Alcançou o máximo de reputação por 150 dias consecutivos'));

	   } else if($(this).text().search('Hit the daily reputation cap for the first time') >= 0) {
	     $(this).text($(this).text().replace('Hit the daily reputation cap for the first time', 'Alcançou o máximo diário de reputação pela primeira vez'));

	   } else if($(this).text().search('Asked a question with 2,500 views') >= 0) {
	     $(this).text($(this).text().replace('Asked a question with 2,500 views', 'Fez uma pergunta com 2.500 visitas'));

	   } else if($(this).text().search('Visited the site each day for 30 days') >= 0) {
	     $(this).text($(this).text().replace('Visited the site each day for 30 days', 'Visitou o site todo dia por 30 dias'));

	   } else if($(this).text().search('Asked a question with 10,000 views') >= 0) {
	     $(this).text($(this).text().replace('Asked a question with 10,000 views', 'Fez uma pergunta com 10.000 visitas'));

	   } else if($(this).text().search('Visited the site each day for 100 days') >= 0) {
	     $(this).text($(this).text().replace('Visited the site each day for 100 days', 'Visitou o site todo dia por 100 dias'));

	   } else if($(this).text().search('Question favorited by 25 users') >= 0) {
	     $(this).text($(this).text().replace('Question favorited by 25 users', 'Pergunta marcada como favorita por pelo menos 25 usuários'));

	   } else if($(this).text().search('Active in many different tags') >= 0) {
	     $(this).text($(this).text().replace('Active in many different tags ', 'Ativo em muitas tags diferentes'));

	   } else if($(this).text().search('Answer voted up 25 times') >= 0) {
	     $(this).text($(this).text().replace('Answer voted up 25 times', 'Resposta votada positivamente 25 vezes'));

	   } else if($(this).text().search('Question voted up 25 times') >= 0) {
	     $(this).text($(this).text().replace('Question voted up 25 times', 'Pergunta votada positivamente 25 vezes'));

	   } else if($(this).text().search('Answer voted up 100 times') >= 0) {
	     $(this).text($(this).text().replace('Answer voted up 100 times', 'Resposta votada positivamente 100 vezes'));

	   } else if($(this).text().search('Question voted up 100 times') >= 0) {
	     $(this).text($(this).text().replace('Question voted up 100 times', 'Pergunta votada positivamente 100 vezes'));

	   } else if($(this).text().search('Accepted answer and voted up 40 times') >= 0) {
	     $(this).text($(this).text().replace('Accepted answer and voted up 40 times', 'Criou resposta que foi aceita e votada positivamente 40 vezes'));

	   } else if($(this).text().search('Answered a question more than 60 days later with at least 5 votes') >= 0) {
	     $(this).text($(this).text().replace('Answered a question more than 60 days later with at least 5 votes', 'Respondeu uma pergunta pelo menos 60 dias depois com pelo menos 5 votos positivos'));

	   } else if($(this).text().search('Answer voted up 10 times') >= 0) {
	     $(this).text($(this).text().replace('Answer voted up 10 times', 'Resposta votada positivamente 10 vezes'));

	   } else if($(this).text().search('Question voted up 10 times') >= 0) {
	     $(this).text($(this).text().replace('Question voted up 10 times', 'Pergunta votada positivamente 10 vezes'));

	   } else if($(this).text().search('Asked a question with 2,500 views ') >= 0) {
	     $(this).text($(this).text().replace('Asked a question with 2,500 views ', 'Fez uma pergunta com 2.500 visitas'));

	   } else if($(this).text().search('First retag') >= 0) {
	     $(this).text($(this).text().replace('First retag', 'Primeira alteração de tags'));

	   } else if($(this).text().search('Deleted own post with 3 or more downvotes') >= 0) {
	     $(this).text($(this).text().replace('Deleted own post with 3 or more downvotes', 'Removeu a própria entrada com 3 ou mais votos negativos'));

	   } else if($(this).text().search('Asked a question with 1,000 views') >= 0) {
	     $(this).text($(this).text().replace('Asked a question with 1,000 views', 'Fez uma pergunta com 1.000 visitas'));

	   } else if($(this).text().search('Provided an answer that outscored an accepted answer with 10 votes by 2x ') >= 0) {
	     $(this).text($(this).text().replace('Provided an answer that outscored an accepted answer with 10 votes by 2x ', 'Postou resposta com pelo menos 2x mais votos que a resposta aceita com 10 votos'));

	   } else if($(this).text().search('First accepted answer on your own question') >= 0) {
	     $(this).text($(this).text().replace('First accepted answer on your own question', 'Primeira resposta aceita em sua própria pergunta'));

	   } else if($(this).text().search('Answered your own question with at least 3 up votes') >= 0) {
	     $(this).text($(this).text().replace('Answered your own question with at least 3 up votes', 'Respondeu sua própria pergunta com pelo menos 3 votos positivos'));

	   } else if($(this).text().search('Question favorited by 100 users') >= 0) {
	     $(this).text($(this).text().replace('Question favorited by 100 users', 'Pergunta marcada como favorita por pelo menos 100 usuários'));

	   } else if($(this).text().search('Edited 100 entries') >= 0) {
	     $(this).text($(this).text().replace('Edited 100 entries', 'Editou 100 entradas'));

	   } else if($(this).text().search('Asked first question with at least one up vote') >= 0) {
	     $(this).text($(this).text().replace('Asked first question with at least one up vote', 'Fez a primeira pergunta com pelo menos um voto positivo'));

	   } else if($(this).text().search('First up vote') >= 0) {
	     $(this).text($(this).text().replace('First up vote', 'Primeiro voto positivo'));

	   } else if($(this).text().search('Created a tag used by 50 questions') >= 0) {
	     $(this).text($(this).text().replace('Created a tag used by 50 questions', 'Criou uma tag usada por 50 perguntas'));

	   } else if($(this).text().search('Answered first question with at least one up vote') >= 0) {
	     $(this).text($(this).text().replace('Answered first question with at least one up vote', 'Respondeu a primeira pergunta com pelo menos um voto positivo'));

	   } else if($(this).text().search('Asked a question with no answers, no comments, and low views for a week') >= 0) {
	     $(this).text($(this).text().replace('Asked a question with no answers, no comments, and low views for a week', 'Fez uma pergunta com nenhuma resposta, nenhum comentário e poucas visitas durante uma semana.'));

	   } else if($(this).text().search('Active member for a year, earning at least 200 reputation') >= 0) {
	     $(this).text($(this).text().replace('Active member for a year, earning at least 200 reputation', 'Membro ativo por um ano, com pelo menos 200 de reputação'));

	   } else if($(this).text().search('Active member for a year') >= 0) {
	     $(this).text($(this).text().replace('Active member for a year', 'Membro ativo por um ano'));
	   }
	 });


  $.each($("table.user-details td"),function() {
	   if($(this).text().search('Name') >= 0) {
	     $(this).html($(this).html().replace('Name', 'Nome'));
	   } else if($(this).text().search('Member for') >= 0) {
	     $(this).html($(this).html().replace('Member for', 'Membro faz'));
	   } else if($(this).text().search('days') >= 0) {
	     $(this).html($(this).html().replace('days', 'dias'));
	   } else if($(this).text().search('Seen') >= 0) {
	     $(this).html($(this).html().replace('Seen', 'Última vez'));
	   } else if($(this).text().search('yesterday') >= 0) {
	     $(this).html($(this).html().replace('yesterday', 'ontem'));
	   } else if($(this).text().search('Website') >= 0) {
	     $(this).html($(this).html().replace('Website', 'Website'));
	   } else if($(this).text().search('Location') >= 0) {
	     $(this).html($(this).html().replace('Location', 'Lugar'));
	   } else if($(this).text().search('Age') >= 0) {
	     $(this).html($(this).html().replace('Age', 'Idade'));
	   } else if($(this).text().search('Reputation') >= 0) {
	     $(this).html($(this).html().replace('Reputation', 'Reputação'));
	   }
	 });

  $.each($("#feed-link-text a"),function() {
	   if($(this).text() == 'question feed') {
	     $(this).text('feed de perguntas');
	   } else if($(this).text() == 'user feed') {
	     $(this).text('feed do usuário');
	   } else if($(this).text() == 'recent questions feed') {
	     $(this).text('feed de perguntas recentes');
	   }

	   if($(this).attr('title') == 'a syndicated data feed of this page suitable for your favorite feed reader') {
	     $(this).attr('title','uma feed desta página para que você possa receber atualizações no seu leitor de feeds favorito');
	   } else if($(this).attr('title') == 'the 30 most recent questions') {
	     $(this).attr('title','as 30 perguntas mais recentes');
	   }
	 });

  $.each($("div.question-summary div"),function() {
	   if($(this).text() == 'votes') {
	     $(this).text('votos');
	   } else if($(this).text() == 'vote') {
	     $(this).text('voto');
	   } else if($(this).text() == 'answers') {
	     $(this).text('respostas');
	   } else if($(this).text() == 'answer') {
	     $(this).text('resposta');
	   } else if($(this).text() == 'views') {
	     $(this).text('visitas');
	   } else if($(this).text() == 'view') {
	     $(this).text('visitas');
	   }
	 });


  $.each($("div.statscontainer div.status"),function() {
	   if($(this).text().search('answer') >= 0) {
	     $(this).html($(this).html().replace('answer', 'resposta'));
	   }
	   if($(this).text().search('answers') >= 0) {
	     $(this).html($(this).html().replace('answers', 'respostas'));
	   }
	 });

  $.each($("div.statscontainer div.views"),function() {
	   if($(this).text().search('views') >= 0) {
	     $(this).html($(this).html().replace('views', 'visitas'));
	   }
	 });



  $.each($("#topbar a"),function() {
	   if($(this).text() == "login") {
	     $(this).text("entrar");
	   } else if($(this).text() == "register") {
	     $(this).text("criar conta");
	   } else if($(this).text() == "logout") {
	     $(this).text("sair");
	   }
	 });

  $.each($("#post-form label"),function() {

	   if($(this).text().search('Title') >= 0) {
	     $(this).html($(this).html().replace('Title', 'Pergunta:'));

	   } else if($(this).text().search('Edit Summary') >= 0) {
	     $(this).html($(this).html().replace('Edit Summary', 'Resumo da alteração'));

	   } else if($(this).text().search('Revision') >= 0) {
	     $(this).html($(this).html().replace('Revision', 'Revisão'));

	   } else if($(this).text().search('Tags') >= 0) {
	     $(this).html($(this).html().replace('Tags', 'Tags'));

	   } else if($(this).text().search('OpenID Login') >= 0) {
	     $(this).html($(this).html().replace('OpenID Login', 'Login OpenID'));

	   } else if($(this).text().search('Name') >= 0) {
	     $(this).html($(this).html().replace('Name', 'Nome'));

	   } else if($(this).text().search('never shown') >= 0) {
	     $(this).html($(this).html().replace('never shown', 'nunca é exibido'));

	   } else if($(this).text().search('Home Page') >= 0) {
	     $(this).html($(this).html().replace('Home Page', 'Website'));
	   }
	 });

  if($("#post-form h2").text().search('Your Answer') >= 0) {
    $("#post-form h2").text("Sua Resposta");
  }

  $.each($(".form-item label"),function() {

	   if($(this).text().match(/^Tags $/)) {
	     $(this).html($(this).html().replace('Tags ', 'Tags '));

	   }
	 });

  $.each($("div.form-item-info"),function() {

	   if($(this).text().search('Combine multiple words into single-words, space to separate up to 5 tags') >= 0) {
	     $(this).html($(this).html().replace("Combine multiple words into single-words, space to separate up to 5 tags", "Use hífen para tags com mais-de-uma-palavra e use espaços para separá-las. Máximo de 5 tags."));

	   } else if($(this).text().search('Briefly describe your changes') >= 0) {
	     $(this).html($(this).html().replace('Briefly describe your changes (corrected spelling, fixed grammar, improved formatting)', 'Descreva brevemente suas alterações (ex.: correção ortográfica, melhoria na formatação, link quebrado).'));

	   } else if($(this).text().search('Get an') >= 0) {
	     $(this).html($(this).html().replace("Get an", "Obter um"));
	   }

	 });

  if($("#submit-button").val() == "Ask Your Question") {
    $("#submit-button").val("Fazer Pergunta");
  } else if($("#submit-button").val() == "Post Your Answer") {
    $("#submit-button").val("Postar Resposta");
  } else if($("#submit-button").val() == "Save Your Edits") {
    $("#submit-button").val("Salvar Alterações");
  }

  if($("#show-editor-button input").val() == "Answer Your Question")  {
    $("#show-editor-button input").val("Responda Sua Pergunta");
  }

  $.each($("a.comments-link"),function() {
	   if($(this).text() == "add comment") {
	     $(this).text("adicionar comentário");
	   }
	   if($(this).attr('title') == "add a comment to this post") {
	     $(this).attr('title','adicionar um comentário a esta entrada');
	   }
	 });

  $.each($(".post-menu a"),function() {
	   if($(this).text() == "mod") {
	     $(this).text("moderação");
	   } else if($(this).text() == "edit") {
	     $(this).text("editar");
	   } else if($(this).text() == "close") {
	     $(this).text("fechar");
	   } else if($(this).text() == "delete") {
	     $(this).text("remover");
	   } else if($(this).text() == "flag") {
	     $(this).text("denunciar");
	   }

	   if($(this).attr('title') == "edit this post, or roll it back to a previous revision") {
	     $(this).attr('title','editar esta entrada, ou revertê-la a uma versão anterior');
	   } else if($(this).attr('title') == "closes/opens question for answering; when closed, no more answers can be added") {
	     $(this).attr('title','fechar/abrir a pergunta para respostas; quando está fechada, novas respostas não podem ser adicionadas');
	   } else if($(this).attr('title') == "vote to remove this post") {
	     $(this).attr('title','votar para remover esta entrada');
	   } else if($(this).attr('title') == "flag this post for serious problems") {
	     $(this).attr('title','denunciar esta entrada como problemática');
	   }
	 });


  $.each($("img.vote-up"),function() {
	   if($(this).attr('title') == "This question is useful and clear (click again to undo)") {
	     $(this).attr('title','Esta pergunta é útil e clara (clique de novo para desfazer)');
	   } else if($(this).attr('title') == "This answer is helpful (click again to undo)") {
	     $(this).attr('title','Esta resposta é útil (clique de novo para desfazer)');
	   }
	 });

  $.each($("img.vote-down"),function() {
	   if($(this).attr('title') == "This question is unclear or not useful (click again to undo)") {
	     $(this).attr('title','Esta pergunta não é útil ou não é clara (clique de novo para desfazer)');
	   } else if($(this).attr('title') == 'This answer is not helpful (click again to undo)') {
	     $(this).attr('title','Esta resposta não é útil (clique de novo para desfazer)');
	   }
	 });

  $.each($("img.vote-favorite"),function() {
	   if($(this).attr('title') == "This is a favorite question (click again to undo)") {
	     $(this).attr('title','Marcar como favorita (clique de novo para desfazer)');
	   }
	 });

  $.each($("img.vote-accepted"),function() {
	   if($(this).attr('title').search('Click to set this answer as your accepted answer; click again to toggle.') >= 0 ) {
	     $(this).attr('title','Clique para aceitar como melhor resposta; clique de novo para desfazer.');
	   } else if($(this).attr('title').search('The question owner accepted this as the best answer') >= 0 ) {
	     $(this).attr('title','O autor da pergunta aceitou esta como a melhor resposta');
	   }
	 });

  $.each($("div div h2 p"),function() {
	   if($(this).text().search('Notify') >= 0) {
	     $(this).html($(this).html().replace("Notify", "Notificar"));
	   }
	   if($(this).text().search('daily of any new answers') >= 0) {
	     $(this).html($(this).html().replace("daily of any new answers", "diariamente quando houver novas respostas"));
	   }
	 });

  $.each($("h2"),function() {
	   if($(this).text() == 'Top 5 Posts') {
	     $(this).text("Top 5 de Perguntas");
	   } else if($(this).text() == 'Most Recent Responses') {
	     $(this).text("Respostas Mais Recentes");
	   }

	   if($(this).text().search('Looking for more featured questions') >= 0) {
	     $(this).html($(this).html().replace('Looking for more featured questions', 'Procurando mais perguntas destacadas'));
	   }
	   if($(this).text().search('Browse other questions tagged') >= 0) {
	     $(this).html($(this).html().replace('Browse other questions tagged', 'Veja outras perguntas com esta tag'));
	   }
	   if($(this).text().search('  or ') >= 0) {
	     $(this).html($(this).html().replace('  or ', '  ou '));
	   }
	   if($(this).text().search('ask your own question') >= 0) {
	     $(this).html($(this).html().replace('ask your own question', 'faça sua própria pergunta'));
	   }
	   if($(this).text().search('Looking for more') >= 0) {
	     $(this).html($(this).html().replace('Looking for more', 'Procurando algo mais'));
	   }
	   if($(this).text().search('Browse the') >= 0) {
	     $(this).html($(this).html().replace('Browse the', 'Veja'));
	   }
	   if($(this).text().search('complete list of questions') >= 0) {
	     $(this).html($(this).html().replace('complete list of questions', 'a lista completa de perguntas'));
	   }
	   if($(this).text().search('popular tags') >= 0) {
	     $(this).html($(this).html().replace('popular tags', 'as tags populares'));
	   }
	   if($(this).text().search('Help us answer') >= 0) {
	     $(this).html($(this).html().replace('Help us answer', 'Ajude-nos a responder'));
	   }
	   if($(this).text().search('unanswered questions') >= 0) {
	     $(this).html($(this).html().replace('unanswered questions', 'as perguntas sem resposta'));
	   }
	   if($(this).text().search(', or ') >= 0) {
	     $(this).html($(this).html().replace(', or ', ' ou '));
	   }
	   if($(this).text().search('complete list') >= 0) {
	     $(this).html($(this).html().replace('complete list', 'lista completa'));
	   }
	   if($(this).text().search('Not the answer you\'re looking for') >= 0) {
	     $(this).html($(this).html().replace('Not the answer you\'re looking for', 'Não é a resposta que você está procurando'));
	   }

	 });


  $.each($("div.module h4"),function() {
	   if($(this).text() == "Related") {
	     $(this).text("Relacionadas");
	   } else if($(this).text() == "Good Edits") {
	     $(this).text("Boas Alterações");
	   } else if($(this).text() == "Related Tags") {
	     $(this).text("Tags Relacionadas");
	   } else if($(this).text().match(/Legend/)) {
	     $(this).text("Legenda");
	   } else if($(this).text() == "Unanswered Tags") {
	     $(this).text("Tags Sem Resposta");
	   } else if($(this).text() == "Interesting Tags") {
	     $(this).text("Tags Interessantes");
	   } else if($(this).text() == "Ignored Tags") {
	     $(this).text("Tags Ignoradas");
	   } else if($(this).text() == "Recent Tags") {
	     $(this).text("Tags Recentes");
	   } else if($(this).text() == "Recent Badges") {
	     $(this).text("Medalhas Recentes");
	   } else if($(this).text() == "Why OpenID?") {
	     $(this).text("Por que OpenID?");
	   } else if($(this).text() == "Are you a human being?") {
	     $(this).text("Verificação ANTI-SPAM");
	   } else if($(this).text() == "Use your own URL") {
	     $(this).text("Use sua própria URL");
	   } else if($(this).text() == "Formatting Reference") {
	     $(this).text("Guia de Formatação");
	   }
	 });

  $.each($("div.module p a"),function() {
	   if($(this).text().search('all tags ') >= 0) {
	     $(this).html($(this).html().replace('all tags ', 'todas as tags '));
	   }
	   if($(this).text().search('all badges') >= 0) {
	     $(this).html($(this).html().replace('all badges ', 'todas as medalhas '));
	   }
	   if($(this).text().search('learn more') >= 0) {
	     $(this).html($(this).html().replace('learn more', 'aprender mais'));
	   }
	   if($(this).text().search('get one') >= 0) {
	     $(this).html($(this).html().replace('get one', 'obter um OpenID'));
	   }
	   if($(this).text().search('see how') >= 0) {
	     $(this).html($(this).html().replace('see how', 'descubra como'));
	   }
	 });

  $.each($("div.module p b"),function() {
	   if($(this).text().search('no upvoted answers') >= 0) {
	     $(this).html($(this).html().replace('no upvoted answers', 'nenhuma resposta com voto positivo'));
	   }
	 });

  $.each($("div.module label"),function() {
	   if($(this).text().search('Hide Ignored Tags') >= 0) {
	     $(this).html($(this).html().replace('Hide Ignored Tags', 'Esconder Tags Ignoradas'));
	   }
	 });

  $.each($("div.module p i"),function() {
	   if($(this).text() == 'Always') {
	     $(this).text('Sempre');
	   }
	 });

  $.each($("div.module ul li"),function() {
	   if($(this).text() == 'Search within specific tags by adding them in brackets, like [tag] or [tag-2].') {
	     $(this).text('Busque com tags específicas colocando-as entre colchetes, como [tag] ou [outra-tag].');
	   } else if($(this).text() == 'Enclose your search in "quotes" to match a phrase.') {
	     $(this).text('Coloque sua busca entre \"aspas\" para buscar uma frase exata');
	   } else if($(this).text() == 'You can narrow your search by using the ~ (near) and - (not) operators before words.') {
	     $(this).text('Você pode restringir sua busca usando os operadores ~ (parecido) e - (exceto) antes de palavras.');
	   }
	 });

  $.each($("div.module p"),function() {
	   if($(this).text() == 'questions') {
	     $(this).text('perguntas');
	   } else if($(this).text() == 'questions tagged') {
	     $(this).text('perguntas com tag');
	   } else if($(this).text() == 'tagged') {
	     $(this).text('com tag');
	   } else if($(this).text() == 'asked') {
	     $(this).text('perguntada');
	   } else if($(this).text() == 'viewed') {
	     $(this).text('visitada');
	   } else if($(this).text() == 'latest activity') {
	     $(this).text('última atividade');
	   } else if($(this).text() == 'today') {
	     $(this).text('hoje');
	   } else if($(this).text() == 'yesterday') {
	     $(this).text('ontem');
	   } else if($(this).text() == 'It\'s a single username and password that allows you to log in to any OpenID-enabled site.') {
	     $(this).text('É um login único que lhe permite entrar em qualquer site com suporte a logins OpenID.');
	   } else if($(this).text() == 'It works on thousands of websites.') {
	     $(this).text('Funciona em milhares de websites.');
	   } else if($(this).text() == 'It\'s an open standard.') {
	     $(this).text('É um padrão aberto.');
	   } else if($(this).text() == 'Want to add OpenID support to your website?') {
	     $(this).text('Quer adicionar suporte a OpenID ao seu website?');
	   } else if($(this).text() == 'It\'s as easy as adding two HTML header tags!') {
	     $(this).text('É tão fácil quanto adicionar duas tags ao cabeçalho HTML.');
	   } else if($(this).text() == 'Fix grammatical or spelling errors.') {
	     $(this).text('Corrigir erros gramaticais ou ortográficos.');
	   } else if($(this).text() == 'Clarify meaning without changing it.') {
	     $(this).text('Esclarecer o significado da pergunta sem alterá-la.');
	   } else if($(this).text() == 'Correct minor mistakes.') {
	     $(this).text('Corrigir pequenos erros.');
	   } else if($(this).text() == 'Add related resources or links.') {
	     $(this).text('Adicionar recursos ou links relacionados.');
	   } else if($(this).text() == 'You\'re browsing through questions matching search terms') {
	     $(this).text('Você está vendo perguntas que que contêm os termos de busca');
	   }

	   if($(this).text().search('days ago') >= 0) {
	     $(this).html($(this).html().replace('days ago', 'dias atrás'));

	   } else if($(this).text().search('We apologize for the confusion') >=0) {
	     $(this).text('Pedimos que entre as palavras no formulário abaixo para nos assegurarmos de que você não é um programa de computador que quer postar SPAM no site.');
	   } else if($(this).text().search('Please don\'t take this personally.') >=0) {
	     $(this).text('Desculpe o incômodo. Esta verificação nos ajuda a manter a qualidade do nosso conteúdo.');
	   } else if($(this).text().search('Bots and scripts can be remarkably lifelike these days!') >=0) {
	     $(this).text('');
	   } else if($(this).text().search('Enter the CAPTCHA displayed below, and we\'ll be out of your way.') >=0) {
	     $(this).text('');


	   } else if($(this).text().search('times') >= 0) {
	     $(this).html($(this).text().replace('times', 'vezes'));

	   } else if($(this).text().search('respect the original author') >= 0) {
	     $(this).html($(this).text().replace('respect the original author', 'respeite o autor original'));

	   } else if($(this).text().search('questions with') >= 0) {
	     $(this).html($(this).html().replace('questions with', 'perguntas com'));

	   } else if($(this).text().search('Gold Badges are rare') >= 0) {
	     $(this).html('Medalhas de Ouro são raras. Você não só terá que participar para ganhá-las, mas também ser habilidoso e ter bastante conhecimento. Elas são uma grande conquista!');

	   } else if($(this).text().search('Silver badges are earned for longer term goals') >= 0) {
	     $(this).html('Medalhas de Prata são ganhas por objetivos de uma certa duração. Estas medalhas são incomuns, mas é perfeitamente possível conseguí-las se você estiver disposto.');

	   } else if($(this).text().search('Bronze badges are earned for basic use') >= 0) {
	     $(this).html('Medalhas de Bronze premiam o uso corriqueiro do site. São relativamente fáceis de ganhar.');
	   }
	 });



  $.each($("input[type='button']"),function() {
	   if($(this).val() == "Add") {
	     $(this).val("+");
	   }
	 });
  $.each($("input[type='submit']"),function() {
	   if($(this).val() == "Login") {
	     $(this).val("Entrar");
	   } else if($(this).val() == "Sign-In") {
	     $(this).val("Entrar");
	   } else if($(this).val() == "Log Out") {
	     $(this).val("Sair");
	   } else if($(this).val().search('Human Being') > 0 ) {
	     $(this).val("Eu sou um ser humano!");
	   }
	 });

  $.each($("div.community-option label"),function() {
	   if($(this).text() == 'community wiki') {
	     $(this).text('wiki comunitário');
	   }
	   if($("#custom-community-wiki-hint").size() == 0) {
	     $(this).after('<span id="custom-community-wiki-hint" style="font-size: 80%">(<a href="/faq#wiki_comunitario" target="_blank" style="text-decoration: underline">?</a>)</span>');
	   }

	   // if($(this).attr('title') == 'community owned posts do not generate any reputation for the owner, have a lower reputation barrier for collaborative editing, and show only a revision history instead of a signature block') {
	   //   $(this).attr('title,','entradas comunitárias não geram nenhuma reputação para o autor, têm barreira menor para edição colaborativa e exibem apenas o histórico de revisões em vez de atribuir alterações a cada autor');
	   // }
	 });


  $.each($("h1"),function() {
	   if($(this).text() == 'Questions') {
	     $(this).text('Perguntas');
	   } else if($(this).text() == 'Answers') {
	     $(this).text('Respostas');
	   } else if($(this).text() == 'Votes') {
	     $(this).text('Votos');
	   } else if($(this).text() == 'Tags') {
	     $(this).text('Tags');
	   } else if($(this).text() == 'Badges') {
	     $(this).text('Medalhas');
	   } else if($(this).text() == "Recent Activity") {
    	     $(this).text("Atividade Recente");
    	   }
	 });


  if($("form#search input").val() == "search") {
    $("form#search input").val('buscar');
  }

  $.each($("div.user-stats-table a"),function() {
	   if($(this).text() == 'votes') {
	     $(this).text('votos');
	     if($(this).attr('title') == 'sort by highest votes') {
	       $(this).attr('title','ordenar por número de votos');
	     }
	   } else if($(this).text() == 'newest') {
	     $(this).text('mais novas');
	     if($(this).attr('title') == 'sort by newest') {
	       $(this).attr('title','ordenar por mais recente');
	     }
	   } else if($(this).text() == 'views') {
	     $(this).text('por vistas');
	     if($(this).attr('title') == 'sort by most viewed') {
	       $(this).attr('title','ordenar por mais visitada');
	     }

	   } else if($(this).text() == 'recent') {
	     $(this).text('recentemente');
	     if($(this).attr('title') == 'sort by recent activity') {
	       $(this).attr('title','ordenar por atividade mais recente');
	     }
	   }
	 });

  $.each($("table.stats-table td.stat-summary"),function() {
	   if($(this).text() == 'Questions') {
	     $(this).text('Perguntas');
	   } else if($(this).text() == 'Answer responses') {
	     $(this).text('Respostas a perguntas');
	   } else if($(this).text() == 'Answers') {
	     $(this).text('Respostas');
	   } else if($(this).text() == 'Comment responses') {
	     $(this).text('Respostas a comentários');
	   } else if($(this).text() == 'Comments') {
	     $(this).text('Comentários');
	   } else if($(this).text() == 'Edits to your posts') {
	     $(this).text('Alterações em suas entradas');
	   } else if($(this).text() == 'Reputation earned') {
	     $(this).text('Reputação ganha');
	   } else if($(this).text() == 'Badges achieved') {
	     $(this).text('Medalhas conquistadas');
	   }
	 });


  $.each($("a.badge"),function() {
	   if($(this).text().search('Autobiographer') >= 0) {
	     $(this).html($(this).html().replace('Autobiographer', 'Autobiógrafo'));

	   } else if($(this).text().search('Citizen Patrol') >= 0) {
	     $(this).html($(this).html().replace('Citizen Patrol', 'Patrulha Cidadã'));

	   } else if($(this).text().search('Epic') >= 0) {
	     $(this).html($(this).html().replace('Epic', 'Épico'));

	   } else if($(this).text().search('Civic Duty') >= 0) {
	     $(this).html($(this).html().replace('Civic Duty', 'Dever Cívico'));

	   } else if($(this).text().search('Cleanup') >= 0) {
	     $(this).html($(this).html().replace('Cleanup', 'Limpeza'));

	   } else if($(this).text().search('Commentator') >= 0) {
	     $(this).html($(this).html().replace('Commentator', 'Comentarista'));

	   } else if($(this).text().search('Critic') >= 0) {
	     $(this).html($(this).html().replace('Critic', 'Crítico'));

	   } else if($(this).text().search('Disciplined') >= 0) {
	     $(this).html($(this).html().replace('Disciplined', 'Disciplinado'));

	   } else if($(this).text().search('Editor') >= 0) {
	     $(this).html($(this).html().replace('Editor', 'Editor'));

	   } else if($(this).text().search('Enlightened') >= 0) {
	     $(this).html($(this).html().replace('Enlightened', 'Iluminado'));

	   } else if($(this).text().search('Enthusiast') >= 0) {
	     $(this).html($(this).html().replace('Enthusiast', 'Entusiasta'));

	   } else if($(this).text().search('Famous Question') >= 0) {
	     $(this).html($(this).html().replace('Famous Question', 'Pergunta Famosa'));

	   } else if($(this).text().search('Fanatic') >= 0) {
	     $(this).html($(this).html().replace('Fanatic', 'Fanático'));

	   } else if($(this).text().search('Favorite Question') >= 0) {
	     $(this).html($(this).html().replace('Favorite Question', 'Pergunta Favorita'));

	   } else if($(this).text().search('Generalist') >= 0) {
	     $(this).html($(this).html().replace('Generalist', 'Generalista'));

	   } else if($(this).text().search('Good Answer') >= 0) {
	     $(this).html($(this).html().replace('Good Answer', 'Boa Resposta'));

	   } else if($(this).text().search('Good Question') >= 0) {
	     $(this).html($(this).html().replace('Good Question', 'Boa Pergunta'));

	   } else if($(this).text().search('Guru') >= 0) {
	     $(this).html($(this).html().replace('Guru', 'Guru'));

	   } else if($(this).text().search('Necromancer') >= 0) {
	     $(this).html($(this).html().replace('Necromancer', 'Necromancer'));

	   } else if($(this).text().search('Nice Answer') >= 0) {
	     $(this).html($(this).html().replace('Nice Answer', 'Grande Resposta'));

	   } else if($(this).text().search('Nice Question') >= 0) {
	     $(this).html($(this).html().replace('Nice Question', 'Grande Pergunta'));

	   } else if($(this).text().search('Great Answer') >= 0) {
	     $(this).html($(this).html().replace('Great Answer', 'Ótima Resposta'));

	   } else if($(this).text().search('Great Question') >= 0) {
	     $(this).html($(this).html().replace('Great Question', 'Ótima Pergunta'));

	   } else if($(this).text().search('Legendary') >= 0) {
	     $(this).html($(this).html().replace('Legendary', 'Lendário'));

	   } else if($(this).text().search('Mortarboard') >= 0) {
	     $(this).html($(this).html().replace('Mortarboard', 'Capelo'));

	   } else if($(this).text().search('Pundit') >= 0) {
	     $(this).html($(this).html().replace('Pundit', 'Influenciador'));

	   } else if($(this).text().search('Reversal') >= 0) {
	     $(this).html($(this).html().replace('Reversal', 'Reversão'));

	   } else if($(this).text().search('Yearling') >= 0) {
	     $(this).html($(this).html().replace('Yearling', 'Aniversariante'));

	   } else if($(this).text().search('Strunk & White') >= 0) {
	     $(this).html($(this).html().replace('Strunk & White', 'Revisor'));

	   } else if($(this).text().search('Notable Question') >= 0) {
	     $(this).html($(this).html().replace('Notable Question', 'Pergunta Notável'));

	   } else if($(this).text().search('Organizer') >= 0) {
	     $(this).html($(this).html().replace('Organizer', 'Organizador'));

	   } else if($(this).text().search('Peer Pressure') >= 0) {
	     $(this).html($(this).html().replace('Peer Pressure', 'Pressão de Grupo'));

	   } else if($(this).text().search('Popular Question') >= 0) {
	     $(this).html($(this).html().replace('Popular Question', 'Pergunta Popular'));

	   } else if($(this).text().search('Populist') >= 0) {
	     $(this).html($(this).html().replace('Populist', 'Populista'));

	   } else if($(this).text().search('Scholar') >= 0) {
	     $(this).html($(this).html().replace('Scholar', 'Acadêmico'));

	   } else if($(this).text().search('Self-Learner') >= 0) {
	     $(this).html($(this).html().replace('Self-Learner', 'Autodidata'));

	   } else if($(this).text().search('Stellar Question') >= 0) {
	     $(this).html($(this).html().replace('Stellar Question', 'Pergunta Estelar'));

	   } else if($(this).text().search('Strunk & White') >= 0) {
	     $(this).html($(this).html().replace('Strunk & White', 'Edição Massiva'));

	   } else if($(this).text().search('Student') >= 0) {
	     $(this).html($(this).html().replace('Student', 'Estudante'));

	   } else if($(this).text().search('Supporter') >= 0) {
	     $(this).html($(this).html().replace('Supporter', 'Apoiador'));

	   } else if($(this).text().search('Taxonomist') >= 0) {
	     $(this).html($(this).html().replace('Taxonomist', 'Taxonomista'));

	   } else if($(this).text().search('Teacher') >= 0) {
	     $(this).html($(this).html().replace('Teacher', 'Professor'));

	   } else if($(this).text().search('Tumbleweed') >= 0) {
	     $(this).html($(this).html().replace('Tumbleweed', 'Abandonado'));

	   } else if($(this).text().search('Gold Badge') >= 0) {
	     $(this).html($(this).html().replace('Gold Badge', 'Medalha de Ouro'));

	   } else if($(this).text().search('Silver Badge') >= 0) {
	     $(this).html($(this).html().replace('Silver Badge', 'Medalha de Prata'));

	   } else if($(this).text().search('Bronze Badge') >= 0) {
	     $(this).html($(this).html().replace('Bronze Badge', 'Medalha de Bronze'));
	   }
	 });

  // Formatting Reference
  $.each($("div#how-to-format p"), function() {
	   if($(this).text() == 'to linebreak use 2 spaces at end') {

	     // Math symbols module
	     $("div#how-to-format").after("<div class=\"module\" style=\"margin-top: 5px;\"><h4>Símbolos matemáticos</h4>\n<p>\n  Você pode escrever fórmulas\n  em <a href=\"http://pt.wikipedia.org/wiki/Latex\">LaTeX</a> entre\n  cifrões! Estes\n  <a href=\"http://pt.wikipedia.org/wiki/Ajuda:Guia_de_edição/Fórmulas_TeX#Caracteres_especiais\">\n  dois</a> <a href=\"http://detexify.kirelabs.org/classify.html\">sites</a>\n  listam símbolos úteis. Ainda existem alguns bugs com\n  a pré-visualização:\n  veja <a href=\"http://umamao.com.br/faq#latex\">a FAQ</a> para mais\n  detalhes. <strong>Solução básica:</strong> se a pré-visualização ou\n  a entrada exibirem sua fórmula incorretamente, coloque-a entre\n  crases, ex.: `$f'_n=g_{n+1}<a></a>$`.\n</p>\n");


	     $(this).text('Para pular linha ponha 2 espaços ao final da frase;');
	     $(this).after("<p>Para links use uma das três opções (ou Ctrl+L):</p>");
	     $(this).after("<p>Para evitar formatação dentro da linha, coloque `<code>_entre_ *crases*</code>` (também transforma a fonte em largura-fixa);</p>");
	     $(this).after("<p>Assim se escreve _<em>itálico</em>_; assim, *<strong>negrito</strong>*;</p>");
	   } else if($(this).text() == 'indent code by 4 spaces') {
	     $(this).text('');
	   } else if($(this).text() == '> blockquote') {
	     $(this).text('');
	   } else if($(this).text() == 'backtick escapes `like _this_`') {
	     $(this).text('');
	   } else if($(this).text() == 'don\'t want colorization? Use <pre>') {
	     $(this).text('');
	   } else if($(this).text().search('basic HTML') >= 0) {
	     $(this).html($(this).html().replace('basic HTML', 'HTML básico'));
	   } else if($(this).text().search('also allowed') >= 0) {
	     $(this).html($(this).html().replace('also allowed', 'também é permitido'));
	   }  else if($(this).text().search('full reference') >= 0) {
	     $(this).html($(this).html().replace('full reference', 'referência completa'));
	   }
	 });

  // Bootstrap Mode
  $("div#bootstrap-module").remove();
}