/*
 * This is a durty fix because actually i18n doesn't translate taxonomy with string
 */
   
(function($) {
    Drupal.behaviors.translateTerm = {
        attach: function(context, settings) {
            var categories = {
                'Annual and Half Term Consolidated Results' : 'Information financière trimestrielle et semestrielle',
                "Annual Information Document" : "Document annuel d'information",
                "Annual Meeting of Shareholders" : 'Assemblée Générale',
                "Chairman Report on Internal Control" : "Rapport du Président sur le Gouvernement d'entreprise et le Contrôle Interne",
                "Convertible bond issue" : "Emission d'obligations convertibles",
                "Fees paid by the Group to the Statutory Auditors": 'Honoraires de commissaires aux comptes',
                "Financial Reports" : 'Rapports Financiers',
                "Information on the number of voting rights and total number of shares" : "Droit de vote et nombre d'actions (déclarations mensuelles)",
                "Other press releases" : 'Autres communiqués',
                "Quaterly and Half term Financial Information" : 'Résultats annuels et semestriels',
                "Registration Document" : 'Document de référence',
                "Share Buyback Program" : "Programme de rachat d'actions (déclarations mensuelles)"
            }
            $('body.i18n-fr #edit-tid option').each(function(){
                $(this).text(categories[$(this).text().replace(/\s\s*$/, '')]); 
            });
            $('#edit-field-info-reglementee-category-fr label.option').each(function(){
                $(this).text(categories[$(this).text().replace(/\s\s*$/, '')]); 
            });
        }
    }
})(jQuery);;

