コード例 #1
0
 /**
  * Load data fixtures with the passed EntityManager
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
     $sidebar = $manager->getRepository('Bigfoot\\Bundle\\ContentBundle\\Entity\\Sidebar')->findOneBySlug('form-contact-sidebar');
     $manager->persist($sidebar);
     # Template Page = title_desc_cgv
     $page = new Page\Template\TitleDescBlockSidebar();
     $page->setActive(true);
     $page->setTranslatableLocale('en');
     $page->setName('Accent card');
     $page->setSlug('accent-card-create');
     $page->setTitle('Loyalty programme: be a winner with the Accent Card!');
     $page->setDescription('');
     $page->setTemplate('title_desc_block_sidebar_searchForm');
     $repository->translate($page, 'title', 'fr', 'Programme de fidélité : partez gagnant avec la Carte Accent !');
     $repository->translate($page, 'title', 'nl', 'Loyaliteitsprogramma: kom met "Carte Accent" als winnaar uit de bus!');
     $repository->translate($page, 'title', 'it', 'Programma fedeltà: partire vincenti con la Carta Accent!');
     $repository->translate($page, 'title', 'de', 'Treueprogramm: Profitieren Sie von der Carte Accent!');
     $repository->translate($page, 'title', 'es', 'Programa de fidelidad: con la tarjeta Accent... ¡saldrá ganando!');
     $manager->persist($page);
     $sidebarPage = new PageSidebar();
     $sidebarPage->setSidebar($sidebar);
     $sidebarPage->setPage($page);
     $sidebarPage->setPosition(0);
     $sidebarPage->setTemplate('title_desc/block_sidebar_form');
     $page->addSidebar($sidebarPage);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Loyalty programme: be a winner with the Accent Card!');
     $block->setSlug('accent-card-form');
     $block->setTitle('Loyalty programme: be a winner with the Accent Card!');
     $block->setDescription('<p>The Accent Card is free and valid for use in our P\'tit Dej-Hotel, Inter-Hotel, Qualys-Hotel and Relais du Silence hotel brands in France and abroad. Personalised and bearing your name, it will allow you to leave our hotels with gifts in hand*. And for all bookings made via one of our brand sites or our multi-brand portal, we will offer you an extra Accent point.</p>
     <p>If you already have an Accent Card, please fill in the form below and enter the number on the Accent Card you have been provided with along with all of the useful information that will allow us to sign you up to the loyalty programme. If you do not yet hold an Accent card, please fill in the same form but leave the "card number" field blank. We will complete your registration and send you an Accent card.</p>');
     $block->setAction('accent_card_create_form');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'title', 'fr', 'Programme de fidélité : partez gagnant avec la Carte Accent !');
     $repository->translate($block, 'description', 'fr', '<p>La carte Accent est gratuite et valable dans nos enseignes P’tit Dej-Hotel, Inter-Hotel, Qualys-Hotel et Relais du Silence en France et à l’étranger. Personnelle et nominative, elle vous permet de repartir de nos hôtels, directement avec des cadeaux*. Et pour toute réservation effectuée via l’un des sites de nos marques ou sur notre portail multimarque, nous vous offrons un point Accent additionnel.</p>
     <p>Si vous possédez déjà une carte Accent, merci de bien vouloir compléter le formulaire ci-dessous en saisissant le numéro figurant sur la carte Accent qui vous a été remise, puis toutes les informations utiles qui permettront de vous inscrire au programme de fidélité. Si vous ne possédez pas encore de carte Accent, merci de remplir ce même formulaire sans remplir le champ « numéro de carte ». Nous procéderons à votre inscription et vous ferons parvenir une carte Accent.</p>');
     $repository->translate($block, 'title', 'nl', 'Loyaliteitsprogramma: kom met "Carte Accent" als winnaar uit de bus!');
     $repository->translate($block, 'description', 'nl', '<p>De klantenkaart Accent is gratis en geldig in al onze hotels (P’tit Dej-Hotel, Inter-Hotel, Qualys-Hisotel en Relais du Silence) in Frankrijk en het buitenland. Met de persoonlijke klantenkaart (geregistreerd op naam) kunt u met een cadeau onder uw arm het hotel weer verlaten*. En voor elke reservering via een van de websites van onze merken of de overkoepelende website ontvangt u een extra Accent-punt.</p>
     <p>Mocht u reeds in het bezit zijn van een Accent-klantenkaart, dan vragen wij u het onderstaande formulier in te vullen met vermelding van het nummer op uw Accent-kaart en daarnaast alle benodigde gegevens om u aan te kunnen melden bij het loyaliteitsprogramma. Mocht u nog niet in het bezit zijn van een Accent-klantenkaart, dan vragen wij u hetzelfde formulier te gebruiken zonder het veld "klantenkaartnummer" in te vullen. Wij zullen uw aanmelding verwerken en u een Accent-klantenkaart toesturen. </p>');
     $repository->translate($block, 'title', 'it', 'Programma fedeltà: partire vincenti con la Carta Accent!');
     $repository->translate($block, 'description', 'it', '<p>La carta Accent è gratuita e valida nei nostri marchi P’tit Dej-Hotel, Inter-Hotel, Qualys-Hotel e Relais du Silence sia in Francia che all’estero. Personale e nominativa, questa carta le consente di ripartire dai nostri hotel portando direttamente con sé i suoi regali*. E per ogni prenotazione effettuata tramite uno dei siti dei nostri marchi o sul nostro portale multimarca riceverà un punto Accent aggiuntivo.</p>
     <p>Se è già titolare di una carta Accent, la invitiamo a compilare il modulo seguente inserendo il numero riportato sulla carta Accent ricevuta, oltre a tutte le informazioni utili per iscriversi al programma fedeltà. Se invece non possiede ancora la carta Accent, la preghiamo di compilare il modulo lasciando vuoto il campo "Numero carta". Dopodiché, provvederemo alla sua iscrizione e le faremo pervenire una carta Accent.</p>');
     $repository->translate($block, 'title', 'es', 'Programa de fidelidad: con la tarjeta Accent... ¡saldrá ganando!');
     $repository->translate($block, 'description', 'es', '<p>La tarjeta Accent es gratuita y válida en nuestras marcas P’tit Dej-Hotel, Inter-Hotel, Qualys-Hotel y Relais du Silence de Francia, España y el extranjero. Personal y nominativa, le permitirá salir de nuestros hoteles con algún regalo*. Por toda reserva efectuada a través de una de las páginas web de nuestras marcas o en nuestro portal multimarca, le regalamos un punto Accent adicional.</p>
     <p>Si ya posee una tarjeta Accent, complete el formulario siguiente introduciendo el número que figure en dicha tarjeta, y todos aquellos datos que puedan resultar útiles para suscribirse al programa de fidelidad. Si aún no cuenta con una tarjeta Accent, rellene el formulario sin tener en cuenta el campo "Nº de tarjeta". Tramitaremos su suscripción y le remitiremos una tarjeta Accent.</p>');
     $repository->translate($block, 'title', 'de', 'Treueprogramm: Profitieren Sie von der Carte Accent!');
     $repository->translate($block, 'description', 'de', '<p>Die Carte Accent ist kostenlos und in unseren Hotels der Marken P’tit Dej-Hotel, Inter-Hotel, Qualys-Hotel und Relais du Silence in Frankreich, Deutschland und im Ausland gültig. Sie ist personengebunden und ermöglicht es Ihnen, unsere Hotels direkt mit Ihrem Geschenk wieder zu verlassen*. Und für jede Buchung, die Sie über eine unserer Markenhomepages oder auf unserem Multimarkenportal durchführen, schenken wir Ihnen einen zusätzlichen Accent-Treuepunkt.</p>
     <p>Wenn Sie bereits eine Carte Accent besitzen, tragen Sie bitte in untenstehendes Formular die Nummer auf Ihrer Carte Accent sowie alle nützlichen Informationen für die Anmeldung zum Treueprogramm ein. Wenn Sie noch keine Carte Accent haben, füllen Sie bitte das gleiche Formular aus, ohne etwas in das Feld „Kartennummer” einzutragen. Wir werden Ihre Anmeldung bearbeiten und Ihnen eine Carte Accent zukommen lassen.</p>');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(0);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     $manager->flush();
 }
コード例 #2
0
    /**
     * Load data fixtures with the passed EntityManager
     *
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager)
    {
        $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
        # Template Sidebar = block_form_contact
        $sidebar = new Sidebar\Template\Block();
        $sidebar->setTranslatableLocale('en');
        $sidebar->setActive(true);
        $sidebar->setSlug('form-contact-sidebar');
        $sidebar->setName('[CONTACT] Sidebar contact form');
        $sidebar->setTemplate('block_sidebar_form');
        $sidebarFormContact = $sidebar;
        $manager->persist($sidebar);
        # Template Page = title_desc_cgv
        $page = new Page\Template\TitleDescBlockSidebar();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Seminar quote request');
        $page->setSlug('seminaire');
        $page->setTitle('Seminar quote request');
        $page->setDescription('');
        $page->setTemplate('title_desc_block_sidebar_1');
        $repository->translate($page, 'title', 'fr', 'Formulaire séminaire');
        $manager->persist($page);
        $sidebarPage = new PageSidebar();
        $sidebarPage->setSidebar($sidebar);
        $sidebarPage->setPage($page);
        $sidebarPage->setPosition(0);
        $sidebarPage->setTemplate('title_desc/block_sidebar_form');
        $page->addSidebar($sidebarPage);
        # Template Block = contact_form
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Seminar quote request');
        $block->setSlug('seminar-form');
        $block->setTitle('Seminar quote request');
        $block->setDescription('<p>We will get back to you in less than 24 hours.
When filling out the following form, please be as precise as possible so we may best meet your request.
Our seminar department will provide you with a personalized response in under 24 hours.</p>');
        $block->setAction('seminaires_form');
        $block->setTemplate('title_desc_h2_default');
        $repository->translate($block, 'title', 'fr', 'Demande de devis séminaires');
        $repository->translate($block, 'description', 'fr', '<p>Nous vous répondons sous 24 heures
Afin de répondre au mieux à votre demande, merci de renseigner le formulaire ci-dessous le plus précisément possible.
Notre service séminaires vous répondra sous 24 heures pour vous apporter une réponse personnalisée.</p>');
        $repository->translate($block, 'title', 'de', 'Angebotsanfrage Seminare');
        $repository->translate($block, 'description', 'de', '<p>Wir antworten Ihnen innerhalb von 24 Stunden
Um Ihre Anfrage besser beantworten zu können, füllen Sie das unten stehende Formular bitte so präzise wie möglich aus.
Unser Seminarservice antwortet Ihnen innerhalb von 24 Stunden persönlich.</p>');
        $repository->translate($block, 'title', 'es', 'Solicitar presupuesto seminarios');
        $repository->translate($block, 'description', 'es', '<p>Le responderemos durante las próximas 24 horas
Por favor, rellene el siguiente formulario de la manera más precisa posible, para que podamos atender mejor su solicitud.
Nuestro servicio de seminarios le responderá durante las próximas 24 horas con una solución personalizada.</p>');
        $repository->translate($block, 'title', 'it', 'Richiesta di preventivo per seminari');
        $repository->translate($block, 'description', 'it', '<p>Le risponderemo entro 24 ore
Al fine di rispondere al meglio alla sua richiesta, la preghiamo di compilare il modulo sottostante con la massima precisione.
Il nostro servizio seminari le risponderà entro 24 ore, proponendole una soluzione personalizzata.</p>');
        $repository->translate($block, 'title', 'nl', 'Offerteaanvraag seminars');
        $repository->translate($block, 'description', 'nl', '<p>We zullen uw aanvraag binnen 24 uur beantwoorden.
Om u beter van dienst te kunnen zijn, vragen wij u om het onderstaande formulier zo volledig mogelijk in te vullen.
Onze speciale seminarafdeling zal u binnen 24 uur antwoorden en u een op maat gemaakte oplossing toesturen.</p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(0);
        $pageBlock->setTemplate('title_desc/title_desc_h2_default');
        $page->addBlock($pageBlock);
        # Country for seminaire form
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('France');
        $country->setOrder(1);
        $repository->translate($country, 'name', 'fr', 'France');
        $repository->translate($country, 'name', 'nl', 'Frankrijk');
        $repository->translate($country, 'name', 'it', 'Francia');
        $repository->translate($country, 'name', 'es', 'Francia');
        $repository->translate($country, 'name', 'de', 'Frankreich');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Germany');
        $country->setOrder(2);
        $repository->translate($country, 'name', 'fr', 'Allemagne');
        $repository->translate($country, 'name', 'nl', 'Duitsland');
        $repository->translate($country, 'name', 'it', 'Germania');
        $repository->translate($country, 'name', 'es', 'Alemania');
        $repository->translate($country, 'name', 'de', 'Deutschland');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Austria');
        $country->setOrder(3);
        $repository->translate($country, 'name', 'fr', 'Autriche');
        $repository->translate($country, 'name', 'nl', 'Oostenrijk');
        $repository->translate($country, 'name', 'it', 'Austria');
        $repository->translate($country, 'name', 'es', 'Austria');
        $repository->translate($country, 'name', 'de', 'Österreich');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Belgium');
        $country->setOrder(4);
        $repository->translate($country, 'name', 'fr', 'Belgique');
        $repository->translate($country, 'name', 'nl', 'België');
        $repository->translate($country, 'name', 'it', 'Belgio');
        $repository->translate($country, 'name', 'es', 'Bélgica');
        $repository->translate($country, 'name', 'de', 'Belgien');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Spain');
        $country->setOrder(5);
        $repository->translate($country, 'name', 'fr', 'Espagne');
        $repository->translate($country, 'name', 'nl', 'Spanje');
        $repository->translate($country, 'name', 'it', 'Spagna');
        $repository->translate($country, 'name', 'es', 'España');
        $repository->translate($country, 'name', 'de', 'Spanien');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Italy');
        $country->setOrder(6);
        $repository->translate($country, 'name', 'fr', 'Italie');
        $repository->translate($country, 'name', 'nl', 'Italië');
        $repository->translate($country, 'name', 'it', 'Italia');
        $repository->translate($country, 'name', 'es', 'Italia');
        $repository->translate($country, 'name', 'de', 'Italien');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Luxembourg');
        $country->setOrder(7);
        $repository->translate($country, 'name', 'fr', 'Luxembourg');
        $repository->translate($country, 'name', 'nl', 'Luxemburg');
        $repository->translate($country, 'name', 'it', 'Lussemburgo');
        $repository->translate($country, 'name', 'es', 'Luxemburgo');
        $repository->translate($country, 'name', 'de', 'Luxemburg');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Netherlands');
        $country->setOrder(8);
        $repository->translate($country, 'name', 'fr', 'Pays-Bas');
        $repository->translate($country, 'name', 'nl', 'Nederland');
        $repository->translate($country, 'name', 'it', 'Paesi Bassi');
        $repository->translate($country, 'name', 'es', 'Países Bajos');
        $repository->translate($country, 'name', 'de', 'Niederlande');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Switzerland');
        $country->setOrder(9);
        $repository->translate($country, 'name', 'fr', 'Suisse');
        $repository->translate($country, 'name', 'nl', 'Zwitserland');
        $repository->translate($country, 'name', 'it', 'Svizzera');
        $repository->translate($country, 'name', 'es', 'Suiza');
        $repository->translate($country, 'name', 'de', 'Schweiz');
        $manager->persist($country);
        # Benefit type for seminaire form
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Room rental');
        $benefit->setOrder(1);
        $repository->translate($benefit, 'name', 'fr', 'Location de salle');
        $repository->translate($benefit, 'name', 'nl', 'Huur van de zaal');
        $repository->translate($benefit, 'name', 'it', 'Affitto sala');
        $repository->translate($benefit, 'name', 'es', 'Alquiler de sala');
        $repository->translate($benefit, 'name', 'de', 'Anmieten eines Raums');
        $manager->persist($benefit);
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Workshop');
        $benefit->setOrder(2);
        $repository->translate($benefit, 'name', 'fr', 'Journée d\'étude');
        $repository->translate($benefit, 'name', 'nl', 'Studiedag');
        $repository->translate($benefit, 'name', 'it', 'Giornata di studio');
        $repository->translate($benefit, 'name', 'es', 'Jornada de estudio');
        $repository->translate($benefit, 'name', 'de', 'Tagung');
        $manager->persist($benefit);
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Seminar and partial accommodations');
        $benefit->setOrder(3);
        $repository->translate($benefit, 'name', 'fr', 'Séminaire semi-résidentiel');
        $repository->translate($benefit, 'name', 'nl', 'Seminar met overnachting');
        $repository->translate($benefit, 'name', 'it', 'Seminario semiresidenziale');
        $repository->translate($benefit, 'name', 'es', 'Seminario semiresidencial');
        $repository->translate($benefit, 'name', 'de', 'Seminar mit partieller Unterbringung');
        $manager->persist($benefit);
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Seminar and full accommodations');
        $benefit->setOrder(4);
        $repository->translate($benefit, 'name', 'fr', 'Séminaire résidentiel');
        $repository->translate($benefit, 'name', 'nl', 'Seminar met overnachting');
        $repository->translate($benefit, 'name', 'it', 'Seminario residenziale');
        $repository->translate($benefit, 'name', 'es', 'Seminario residencial');
        $repository->translate($benefit, 'name', 'de', 'Seminar mit Unterkunft');
        $manager->persist($benefit);
        # Availbale rooms for seminaire form
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Amphitheatre');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Amphithéâtre');
        $repository->translate($rooms, 'name', 'nl', 'Amfitheater');
        $repository->translate($rooms, 'name', 'it', 'Anfiteatro');
        $repository->translate($rooms, 'name', 'es', 'Anfiteatro');
        $repository->translate($rooms, 'name', 'de', 'Hörsaal');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('U');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'U');
        $repository->translate($rooms, 'name', 'nl', 'U-vorm');
        $repository->translate($rooms, 'name', 'it', 'Ad U');
        $repository->translate($rooms, 'name', 'es', 'En U');
        $repository->translate($rooms, 'name', 'de', 'U-Form');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Theatre');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Théatre');
        $repository->translate($rooms, 'name', 'nl', 'Theater');
        $repository->translate($rooms, 'name', 'it', 'Teatro');
        $repository->translate($rooms, 'name', 'es', 'Teatro');
        $repository->translate($rooms, 'name', 'de', 'Theater');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Class');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Classe');
        $repository->translate($rooms, 'name', 'nl', 'Klassikaal');
        $repository->translate($rooms, 'name', 'it', 'Aula');
        $repository->translate($rooms, 'name', 'es', 'Clase');
        $repository->translate($rooms, 'name', 'de', 'Seminarraum');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Rectangle');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Rectangle');
        $repository->translate($rooms, 'name', 'nl', 'Rechthoekig');
        $repository->translate($rooms, 'name', 'it', 'Rettangolare');
        $repository->translate($rooms, 'name', 'es', 'Rectángulo');
        $repository->translate($rooms, 'name', 'de', 'Rechteck');
        $manager->persist($rooms);
        // NewVersionFormData
        $sidebar = $sidebarFormContact;
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Nos coordonnées');
        $block->setSlug('nos-coordonnees');
        $block->setTitle('Nos coordonnées');
        $block->setDescription('<h3 class="title3">Nos coordonnées</h3><p><strong>Société Européenne d\'Hôtellerie</strong><br>100 rue Petit <br>75 165 PARIS CEDEX 19 <br>
                FRANCE <br><i class="tel"></i> 01 42 06 41 41 <br><strong>Fax :</strong> 01 42 06 25 90</p><hr><h3 class="title3">Centrale de réservation</h3><p><strong>Pour contacter notre centrale de réservation</strong></p>
            <div class="telCentrale">
                <i class="indigo">Numero Indigo</i> 0 826 10 39 09 <span>0,15 TTC/mn</span>
                <em>Du lundi au vendredi, de 8 h à 19 h, <br>le samedi de 8 h à 18 h</em>
            </div>
            <p>
                <strong>Fax :</strong>  04 71 60 09 38 <br>
                <a href="mailto:reservation@ptitdej-hotel.com"><strong>reservation@ptitdej-hotel.com</strong></a>
            </p>
            <hr>
            <h3 class="title3">Site Internet</h3>
            <p><strong>Pour toute question générale liée au site Internet <br><a href="mailto:contact@ptitdej-hotel.com">contact@ptitdej-hotel.com</a></strong></p>
        ');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'Nos coordonnées');
        $repository->translate($block, 'description', 'fr', '<h3 class="title3">Nos coordonnées</h3><p><strong>Société Européenne d\'Hôtellerie</strong><br>100 rue Petit <br>75 165 PARIS CEDEX 19 <br>
                FRANCE <br><i class="tel"></i> 01 42 06 41 41 <br><strong>Fax :</strong> 01 42 06 25 90</p><hr><h3 class="title3">Centrale de réservation</h3><p><strong>Pour contacter notre centrale de réservation</strong></p>
            <div class="telCentrale">
                <i class="indigo">Numero Indigo</i> 0 826 10 39 09 <span>0,15 TTC/mn</span>
                <em>Du lundi au vendredi, de 8 h à 19 h, <br>le samedi de 8 h à 18 h</em>
            </div>
            <p>
                <strong>Fax :</strong>  04 71 60 09 38 <br>
                <a href="mailto:reservation@ptitdej-hotel.com"><strong>reservation@ptitdej-hotel.com</strong></a>
            </p>
            <hr>
            <h3 class="title3">Site Internet</h3>
            <p><strong>Pour toute question générale liée au site Internet <br><a href="mailto:contact@ptitdej-hotel.com">contact@ptitdej-hotel.com</a></strong></p>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc/title_desc_h2');
        $sidebar->addBlock($sidebarBlock);
        # Template Block = title_desc_accent
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Présentation carte accent form contact');
        $block->setSlug('faites-le-plein-de-cadeaux-form');
        $block->setTitle('Faites le plein de cadeaux !');
        $block->setDescription('<p>La carte Accent r&eacute;compense votre fid&eacute;lit&eacute; <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 h&ocirc;tels de nos 4 marques.</p>
<p>D&eacute;couvrez &eacute;galement l&rsquo;application Fid&eacute;lit&eacute;.</p>');
        $block->setTemplate('title_desc_h3');
        $repository->translate($block, 'title', 'fr', 'Faites le plein de cadeaux !');
        $repository->translate($block, 'description', 'fr', '<p>La carte Accent r&eacute;compense votre fid&eacute;lit&eacute; <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 h&ocirc;tels de nos 4 marques.</p>
<p>D&eacute;couvrez &eacute;galement l&rsquo;application Fid&eacute;lit&eacute;.</p>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc/title_desc_h3');
        $sidebar->addBlock($sidebarBlock);
        # Template Page = title_desc_cgv
        $page = new Page\Template\TitleDescBlockSidebar();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Contact');
        $page->setSlug('contact');
        $page->setTitle('Contact quote request');
        $page->setDescription('');
        $page->setTemplate('title_desc_block_sidebar_1');
        $repository->translate($page, 'title', 'fr', 'Formulaire de contact');
        $manager->persist($page);
        $sidebarPage = new PageSidebar();
        $sidebarPage->setSidebar($sidebar);
        $sidebarPage->setPage($page);
        $sidebarPage->setPosition(0);
        $sidebarPage->setTemplate('title_desc/block_sidebar_form');
        $page->addSidebar($sidebarPage);
        # Template Block = contact_form
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('NOUS CONTACTER PAR E-MAIL');
        $block->setSlug('contact-form');
        $block->setTitle('NOUS CONTACTER PAR E-MAIL');
        $block->setDescription('<p>Pour nous envoyer un e-mail, remplissez ce formulaires.</p>');
        $block->setAction('contact_form');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'NOUS CONTACTER PAR E-MAIL');
        $repository->translate($block, 'description', 'fr', '<p>Pour nous envoyer un e-mail, remplissez ce formulaires.</p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(0);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # Template Block = contact_question
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('VOUS AVEZ UNE QUESTION ?');
        $block->setSlug('contact-question');
        $block->setTitle('VOUS AVEZ UNE QUESTION ?');
        $block->setDescription('<p>Vous recherchez une rubrique en particulier ? Retrouvez nos questions les plus fréquemment posées dans notre rubrique FAQ.</p><a href="#_">Accès à la FAQ</a>');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'VOUS AVEZ UNE QUESTION ?');
        $repository->translate($block, 'description', 'fr', '<p>Vous recherchez une rubrique en particulier ? Retrouvez nos questions les plus fréquemment posées dans notre rubrique FAQ.</p><a href="#_">Accès à la FAQ</a>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(1);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # Template Block = contact_service_commercial
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('SERVICE COMMERCIAL');
        $block->setSlug('contact-service-commercial');
        $block->setTitle('SERVICE COMMERCIAL');
        $block->setDescription('<p>Professionnels, si vous souhaitez contacter le service commercial <br><a href="maito:service.commercial@ptitdej-hotel.com">service.commercial@ptitdej-hotel.com</a></p>');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'SERVICE COMMERCIAL');
        $repository->translate($block, 'description', 'fr', '<p>Professionnels, si vous souhaitez contacter le service commercial <br><a href="maito:service.commercial@ptitdej-hotel.com">service.commercial@ptitdej-hotel.com</a></p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(2);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # Subject for contact form
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Informations sur le site P’titDej-Hotel.com');
        $contactSubject->setOrder(1);
        $repository->translate($contactSubject, 'name', 'fr', 'Informations sur le site P’titDej-Hotel.com');
        $manager->persist($contactSubject);
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Informations sur le groupe SEH-united hoteliers');
        $contactSubject->setOrder(2);
        $repository->translate($contactSubject, 'name', 'fr', 'Informations sur le groupe SEH-united hoteliers');
        $manager->persist($contactSubject);
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Coordonnées de l’hôtel');
        $contactSubject->setOrder(3);
        $repository->translate($contactSubject, 'name', 'fr', 'Coordonnées de l’hôtel');
        $manager->persist($contactSubject);
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Demande concernant la Garantie du Meilleur Tarif');
        $contactSubject->setOrder(4);
        $repository->translate($contactSubject, 'name', 'fr', 'Demande concernant la Garantie du Meilleur Tarif');
        $manager->persist($contactSubject);
        // FormGuideData
        $sidebar = $sidebarFormContact;
        $page = new Page\Template\TitleDescBlockSidebar();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Guide request form');
        $page->setSlug('guide');
        $page->setTitle('Guide quote request');
        $page->setDescription('');
        $page->setTemplate('title_desc_block_sidebar_1');
        $repository->translate($page, 'title', 'fr', 'Formulaire guide');
        $manager->persist($page);
        $sidebarPage = new PageSidebar();
        $sidebarPage->setSidebar($sidebar);
        $sidebarPage->setPage($page);
        $sidebarPage->setPosition(0);
        $sidebarPage->setTemplate('title_desc/block_sidebar_form');
        $page->addSidebar($sidebarPage);
        # Template Block = guide_form
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Guide form');
        $block->setSlug('guide-form');
        $block->setTitle('Would you like to receive one of our guides free of charge? Make a request in just a few clicks.');
        $block->setDescription('<p>Our guides contain the important information about each establishment in our network. Facilities, access, services, labels, specifications and contact details. </p><p>We offer two different guides:<br>
 - The multi-brand P’tit Dej-HOTEL, INTER-HOTEL and QUALYS-HOTEL guide<br>
 - the Relais du Silence hotels guide</p><p>Please fill in the fields below to receive the guide of your choice by post.</p>');
        $block->setAction('guide_form');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'Vous souhaitez recevoir gratuitement  l’un de nos guides ? Faites votre demande en quelques clics.');
        $repository->translate($block, 'description', 'fr', '<p>Nos guides rassemblent les informations importantes sur chacun des établissements de notre réseau. Équipements, accès, services, labels, descriptifs ou coordonnée... </p><p>Nous vous proposons deux guides distincts :<br>
 - Le guide multimarque P’tit Dej-HOTEL, INTER-HOTEL et QUALYS-HOTEL.<br>
 - Le guide des hôtels Relais du Silence
</p><p>Remplissez les champs ci-dessous afin de recevoir par courrier le guide de votre choix.</p>');
        $repository->translate($block, 'title', 'nl', 'Wilt u gratis een van onze gidsen ontvangen? Verstuur uw aanvraag met enkele muisklikken.');
        $repository->translate($block, 'description', 'nl', '<p>Onze gidsen bevatten belangrijke informatie over alle hotels binnen ons netwerk. Voorzieningen, toegang, diensten, keurmerken, beschrijvingen en contact- en adresgegevens...</p><p>Wij bieden u twee verschillende gidsen:<br>
 - De gids met de hotels van de merken P’tit Dej-HOTEL, INTER-HOTEL en QUALYS-HOTEL.<br>
 - De gids met de Relais du Silence-hotels
</p><p>Vul de onderstaande velden in om de door u gekozen gids per post te ontvangen.</p>');
        $repository->translate($block, 'title', 'it', 'Desidera ricevere gratuitamente una delle nostre guide? La richieda in un clic.');
        $repository->translate($block, 'description', 'it', '<p>Le nostre guide raccolgono importanti informazioni su ciascuna delle strutture appartenenti alla nostra rete. Allestimenti, accesso, servizi, marchi, descrizione, recapito, ecc.</p><p>Le proponiamo pertanto due diverse guide:<br>
 - la guida multimarca P\'tit Dej-HOTEL, INTER-HOTEL e QUALYS-HOTEL;<br>
 - la guida degli hotel Relais du Silence.
</p><p>Compili i campi seguenti per ricevere per corrispondenza la guida desiderata.</p>');
        $repository->translate($block, 'title', 'es', 'Desea recibir gratuitamente una de nuestras guías? Solicítela en tan sólo unos clics.');
        $repository->translate($block, 'description', 'es', '<p>Nuestras guías recogen los datos más importantes de todos los establecimientos de nuestra red. Equipamientos, acceso, servicio, distintivos, descripciones o información de contacto.</p><p>Les proponemos dos guías diferentes:<br>
 - La guía multimarca P’tit Dej-HOTEL, INTER-HOTEL y QUALYS-HOTEL<br>
 - La guía de hoteles Relais du Silence
</p><p>Complete el formulario siguiente para recibir por correo la guía que elija.</p>');
        $repository->translate($block, 'title', 'de', 'Möchten Sie kostenlos einen unserer Hotelkataloge erhalten? Fordern Sie ihn in wenigen Klicks an.');
        $repository->translate($block, 'description', 'de', '<p>Unsere Kataloge führen alle wichtigen Informationen über jedes Haus in unserem Netz auf. Ausstattung, Anfahrt, Services, Qualitätssiegel, Beschreibungen oder Kontaktdaten...</p><p>Wir bieten Ihnen zwei verschiedene Kataloge:<br>
 - den Multimarkenkatalog P’tit Dej-HOTEL, INTER-HOTEL und QUALYS-HOTEL.<br>
 - den Hotelkatalog Relais du Silence
</p><p>Füllen Sie untenstehende Felder aus, um den Katalog Ihrer Wahl postalisch zu erhalten.</p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(0);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # guide for guide form
        $guide = new GuideForm();
        $guide->setTranslatableLocale('en');
        $guide->setName('The multi-brand P’tit Dej-HOTEL, INTER-HOTEL and QUALYS-HOTEL guide');
        $guide->setOrder(1);
        $repository->translate($guide, 'name', 'fr', 'Le guide multimarque P’tit Dej-HOTEL, INTER-HOTEL et QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'nl', 'De gids met de hotels van de merken P’tit Dej-HOTEL, INTER-HOTEL en QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'it', 'La guida multimarca P\'tit Dej-HOTEL, INTER-HOTEL e QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'es', 'La guía multimarca P’tit Dej-HOTEL, INTER-HOTEL y QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'de', 'Den Multimarkenkatalog P’tit Dej-HOTEL, INTER-HOTEL und QUALYS-HOTEL');
        $manager->persist($guide);
        $guide = new GuideForm();
        $guide->setTranslatableLocale('en');
        $guide->setName('The Relais du Silence hotels guide');
        $guide->setOrder(2);
        $repository->translate($guide, 'name', 'fr', 'Le guide des hôtels Relais du Silence');
        $repository->translate($guide, 'name', 'nl', 'De gids met de Relais du Silence-hotels');
        $repository->translate($guide, 'name', 'it', 'La guida degli hotel Relais du Silence.');
        $repository->translate($guide, 'name', 'es', 'La guía de hoteles Relais du Silence');
        $repository->translate($guide, 'name', 'de', 'Den Hotelkatalog Relais du Silence');
        $manager->persist($guide);
        # entity for guide form
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('An individual');
        $guideEntity->setOrder(1);
        $repository->translate($guideEntity, 'name', 'fr', 'Un particulier');
        $repository->translate($guideEntity, 'name', 'nl', 'Een particulier');
        $repository->translate($guideEntity, 'name', 'it', 'Un privato');
        $repository->translate($guideEntity, 'name', 'es', 'Un particular');
        $repository->translate($guideEntity, 'name', 'de', 'Eine Privatperson');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A company');
        $guideEntity->setOrder(2);
        $repository->translate($guideEntity, 'name', 'fr', 'Une société');
        $repository->translate($guideEntity, 'name', 'nl', 'Een bedrijf');
        $repository->translate($guideEntity, 'name', 'it', 'Un\'azienda');
        $repository->translate($guideEntity, 'name', 'es', 'Una empresa');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Unternehmen');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A tourism professional');
        $guideEntity->setOrder(3);
        $repository->translate($guideEntity, 'name', 'fr', 'Un professionnel du Tourisme');
        $repository->translate($guideEntity, 'name', 'nl', 'Dienstverlener in de toeristische sector');
        $repository->translate($guideEntity, 'name', 'it', 'Un operatore turistico');
        $repository->translate($guideEntity, 'name', 'es', 'Un profesional del turismo');
        $repository->translate($guideEntity, 'name', 'de', 'Im Bereich Tourismus tätig');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A travel agency');
        $guideEntity->setOrder(4);
        $repository->translate($guideEntity, 'name', 'fr', 'Une agence de voyages');
        $repository->translate($guideEntity, 'name', 'nl', 'Een reisbureau');
        $repository->translate($guideEntity, 'name', 'it', 'Un\'agenzia di viaggi');
        $repository->translate($guideEntity, 'name', 'es', 'Una agencia de viajes');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Reisebüro');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A tour operator');
        $guideEntity->setOrder(5);
        $repository->translate($guideEntity, 'name', 'fr', 'Un Tour-Opérateur');
        $repository->translate($guideEntity, 'name', 'nl', 'Een touroperator');
        $repository->translate($guideEntity, 'name', 'it', 'Un tour operator');
        $repository->translate($guideEntity, 'name', 'es', 'Un operador turístico');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Reiseveranstalter');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A coach company');
        $guideEntity->setOrder(6);
        $repository->translate($guideEntity, 'name', 'fr', 'Un autocariste');
        $repository->translate($guideEntity, 'name', 'nl', 'Een busbedrijf');
        $repository->translate($guideEntity, 'name', 'it', 'Un\'impresa di autobus');
        $repository->translate($guideEntity, 'name', 'es', 'Una empresa de autocares');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Busunternehmen');
        $manager->persist($guideEntity);
        # AreaActivity
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Administration / Ministry');
        $areaActivty->setOrder(1);
        $repository->translate($areaActivty, 'name', 'fr', 'Administration / Ministère');
        $repository->translate($areaActivty, 'name', 'nl', 'Overheid / Ministerie');
        $repository->translate($areaActivty, 'name', 'it', 'Amministrazione/Ministeri');
        $repository->translate($areaActivty, 'name', 'es', 'Administración/Ministerios');
        $repository->translate($areaActivty, 'name', 'de', 'Verwaltung / Ministerium');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Agri-food');
        $areaActivty->setOrder(2);
        $repository->translate($areaActivty, 'name', 'fr', 'Agro-alimentaire');
        $repository->translate($areaActivty, 'name', 'nl', 'Landbouw en voeding');
        $repository->translate($areaActivty, 'name', 'it', 'Agroalimentare');
        $repository->translate($areaActivty, 'name', 'es', 'Sector agroalimentario');
        $repository->translate($areaActivty, 'name', 'de', 'Landwirtschaft');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Insurance / Banking');
        $areaActivty->setOrder(3);
        $repository->translate($areaActivty, 'name', 'fr', 'Assurance / Banque');
        $repository->translate($areaActivty, 'name', 'nl', 'Verzekering / Bankwezen');
        $repository->translate($areaActivty, 'name', 'it', 'Assicurazioni/Settore bancario');
        $repository->translate($areaActivty, 'name', 'es', 'Banca/Seguros');
        $repository->translate($areaActivty, 'name', 'de', 'Versicherung / Bank');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Construction');
        $areaActivty->setOrder(4);
        $repository->translate($areaActivty, 'name', 'fr', 'Bâtiment');
        $repository->translate($areaActivty, 'name', 'nl', 'Constructie');
        $repository->translate($areaActivty, 'name', 'it', 'Edilizia');
        $repository->translate($areaActivty, 'name', 'es', 'Construcción');
        $repository->translate($areaActivty, 'name', 'de', 'Bau');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Commerce / Distribution');
        $areaActivty->setOrder(5);
        $repository->translate($areaActivty, 'name', 'fr', 'Commerce / Distribution');
        $repository->translate($areaActivty, 'name', 'nl', 'Handel / Distributie');
        $repository->translate($areaActivty, 'name', 'it', 'Commercio/Distribuzione');
        $repository->translate($areaActivty, 'name', 'es', 'Comercio/Distribución');
        $repository->translate($areaActivty, 'name', 'de', 'Handel / Vertrieb');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Communications / Publicity');
        $areaActivty->setOrder(6);
        $repository->translate($areaActivty, 'name', 'fr', 'Communication / Publicité');
        $repository->translate($areaActivty, 'name', 'nl', 'Communicatie / Reclame');
        $repository->translate($areaActivty, 'name', 'it', 'Comunicazioni/Pubblicità');
        $repository->translate($areaActivty, 'name', 'es', 'Comunicación/Publicidad');
        $repository->translate($areaActivty, 'name', 'de', 'Kommunikation / Werbung');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Education / Teaching');
        $areaActivty->setOrder(7);
        $repository->translate($areaActivty, 'name', 'fr', 'Education / Enseignement');
        $repository->translate($areaActivty, 'name', 'nl', 'Educatie / Onderwijs');
        $repository->translate($areaActivty, 'name', 'it', 'Istruzione/Insegnamento');
        $repository->translate($areaActivty, 'name', 'es', 'Educación/Enseñanza');
        $repository->translate($areaActivty, 'name', 'de', 'Erziehung / Bildung');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Hotels / Restaurants');
        $areaActivty->setOrder(8);
        $repository->translate($areaActivty, 'name', 'fr', 'Hôtellerie / Restauration');
        $repository->translate($areaActivty, 'name', 'nl', 'Horeca');
        $repository->translate($areaActivty, 'name', 'it', 'Settore alberghiero/Ristorazione');
        $repository->translate($areaActivty, 'name', 'es', 'Hostelería/Restauración');
        $repository->translate($areaActivty, 'name', 'de', 'Hotellerie / Gastronomie');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Industry');
        $areaActivty->setOrder(9);
        $repository->translate($areaActivty, 'name', 'fr', 'Industrie');
        $repository->translate($areaActivty, 'name', 'nl', 'Industrie');
        $repository->translate($areaActivty, 'name', 'it', 'Industria');
        $repository->translate($areaActivty, 'name', 'es', 'Industria');
        $repository->translate($areaActivty, 'name', 'de', 'Industrie');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('IT');
        $areaActivty->setOrder(10);
        $repository->translate($areaActivty, 'name', 'fr', 'Informatique');
        $repository->translate($areaActivty, 'name', 'nl', 'Informatica');
        $repository->translate($areaActivty, 'name', 'it', 'Informatica');
        $repository->translate($areaActivty, 'name', 'es', 'Informática');
        $repository->translate($areaActivty, 'name', 'de', 'Informatik');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Real estate');
        $areaActivty->setOrder(11);
        $repository->translate($areaActivty, 'name', 'fr', 'Immobilier');
        $repository->translate($areaActivty, 'name', 'nl', 'Vastgoed');
        $repository->translate($areaActivty, 'name', 'it', 'Settore immobiliare');
        $repository->translate($areaActivty, 'name', 'es', 'Sector inmobiliario');
        $repository->translate($areaActivty, 'name', 'de', 'Immobilienwesen');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Health');
        $areaActivty->setOrder(12);
        $repository->translate($areaActivty, 'name', 'fr', 'Santé');
        $repository->translate($areaActivty, 'name', 'nl', 'Gezondheidszorg');
        $repository->translate($areaActivty, 'name', 'it', 'Salute');
        $repository->translate($areaActivty, 'name', 'es', 'Sanidad');
        $repository->translate($areaActivty, 'name', 'de', 'Gesundheit');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Transport');
        $areaActivty->setOrder(13);
        $repository->translate($areaActivty, 'name', 'fr', 'Transport');
        $repository->translate($areaActivty, 'name', 'nl', 'Transport');
        $repository->translate($areaActivty, 'name', 'it', 'Trasporti');
        $repository->translate($areaActivty, 'name', 'es', 'Transportes');
        $repository->translate($areaActivty, 'name', 'de', 'Transport');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Other');
        $areaActivty->setOrder(14);
        $repository->translate($areaActivty, 'name', 'fr', 'Autre');
        $repository->translate($areaActivty, 'name', 'nl', 'Overig');
        $repository->translate($areaActivty, 'name', 'it', 'Altro');
        $repository->translate($areaActivty, 'name', 'es', 'Otro');
        $repository->translate($areaActivty, 'name', 'de', 'Sonstiges');
        $manager->persist($areaActivty);
        # NewsletterGuide
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('SEH');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'SEH');
        $repository->translate($news, 'name', 'nl', 'SEH');
        $repository->translate($news, 'name', 'it', 'SEH');
        $repository->translate($news, 'name', 'es', 'SEH');
        $repository->translate($news, 'name', 'de', 'SEH');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('P’tit Dej-HOTEL');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'nl', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'it', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'es', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'de', 'P’tit Dej-HOTEL');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('INTER-HOTEL');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'nl', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'it', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'es', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'de', 'INTER-HOTEL');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('QUALYS-HOTEL');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'nl', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'it', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'es', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'de', 'QUALYS-HOTEL');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('Relais du Silence');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'Relais du Silence');
        $repository->translate($news, 'name', 'nl', 'Relais du Silence');
        $repository->translate($news, 'name', 'it', 'Relais du Silence');
        $repository->translate($news, 'name', 'es', 'Relais du Silence');
        $repository->translate($news, 'name', 'de', 'Relais du Silence');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('Accent Card (SEH loyalty programme)');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'Carte Accent ( programme de fidélité de la SEH)');
        $repository->translate($news, 'name', 'nl', 'Carte Accent (klantenkaart van SEH)');
        $repository->translate($news, 'name', 'it', 'Carta Accent (programma fedeltà di SEH)');
        $repository->translate($news, 'name', 'es', 'Tarjeta Accent (programa de fidelidad de la SEH)');
        $repository->translate($news, 'name', 'de', 'Carte Accent (Treueprogramm von SEH)');
        $manager->persist($news);
        $manager->flush();
    }
コード例 #3
0
 protected function importLang($brand, $lang)
 {
     $translationRepository = $this->getTranslationRepository();
     $translationDir = $this->getContainer()->getParameter('translation_dir') . '/lot_5/';
     $defaultLang = 'en';
     $em = $this->getEntityManager();
     $translationfiles = scandir($translationDir . strtoupper($lang) . '/');
     $exclude = array('.', '..');
     $translationfiles = array_diff($translationfiles, $exclude);
     foreach (array_values($translationfiles) as $translationFile) {
         $file = $translationDir . strtoupper($lang) . '/' . $translationFile;
         $handle = fopen($file, "r");
         while (($line = fgetcsv($handle)) !== false) {
             if ($line) {
                 list($brandId, $regionId, $pageName, $pageTitle, $pageDescription, $block1Title, $block1Description, $block2Title, $block2Description, $block3Title, $block3Description, $block4Title, $block4Description, $block5Title, $block5Description, $imageTitle1, $imageTitle2, $imageTitle3) = $line;
                 $name = sprintf('[%s] Region hotelier - %s [%s]', $brandId, $pageName, $regionId);
                 $page = $em->getRepository('BigfootContentBundle:Page\\Template\\TitleDescMediaBlockSidebar')->createQueryBuilder('p')->where('p.name LIKE :name')->setParameter(':name', sprintf('%%[%s]%%', $regionId))->getQuery()->setHint(\Gedmo\Translatable\TranslatableListener::HINT_TRANSLATABLE_LOCALE, 'en')->getOneOrNullResult();
                 if (!$page) {
                     $page = new Page\Template\TitleDescMediaBlockSidebar();
                     $page->setTemplate('title_desc_media_block_sidebar_edito');
                     $page->setActive(true);
                 }
                 if ($lang != $defaultLang) {
                     $translationRepository->translate($page, 'name', $lang, $name);
                     $translationRepository->translate($page, 'title', $lang, $pageTitle);
                     $translationRepository->translate($page, 'description', $lang, $pageDescription);
                     $slug = Urlizer::transliterate(sprintf('%s Region hotelier %s', $brandId, $pageName));
                     $slug = Urlizer::urlize($slug);
                     if (function_exists('mb_strtolower')) {
                         $slug = mb_strtolower($slug);
                     } else {
                         $slug = strtolower($slug);
                     }
                     $translationRepository->translate($page, 'slug', $lang, $slug);
                 } else {
                     $page->setName($name);
                     $page->setTitle($pageTitle);
                     $page->setDescription($pageDescription);
                     $slug = Urlizer::transliterate(sprintf('%s Region hotelier %s', $brandId, $pageName));
                     $slug = Urlizer::urlize($slug);
                     if (function_exists('mb_strtolower')) {
                         $slug = mb_strtolower($slug);
                     } else {
                         $slug = strtolower($slug);
                     }
                     $page->setSlug($slug);
                 }
                 $em->persist($page);
                 for ($i = 1; $i < 6; $i++) {
                     $title = sprintf('block%sTitle', $i);
                     $desc = sprintf('block%sDescription', $i);
                     if (${$title} or ${$desc}) {
                         $blockName = sprintf('[%s] Region hotelier - %s - Bloc %s [%s]', $brandId, $pageName, $i, $regionId);
                         $block = $em->getRepository('BigfootContentBundle:Block\\Template\\TitleDescMedia')->createQueryBuilder('b')->where('b.name LIKE :name')->setParameter(':name', sprintf('%%%s [%s]%%', $i, $regionId))->getQuery()->setHint(\Gedmo\Translatable\TranslatableListener::HINT_TRANSLATABLE_LOCALE, 'en')->getOneOrNullResult();
                         if (!$block) {
                             $block = new TitleDescMedia();
                             $block->setTemplate('title_desc_media_editorialLeft');
                             $block->setActive(true);
                         }
                         if ($lang != $defaultLang) {
                             $translationRepository->translate($block, 'name', $lang, $blockName);
                             $translationRepository->translate($block, 'title', $lang, ${$title});
                             $translationRepository->translate($block, 'description', $lang, ${$desc});
                             $slug = Urlizer::transliterate($blockName);
                             $slug = Urlizer::urlize($slug);
                             if (function_exists('mb_strtolower')) {
                                 $slug = mb_strtolower($slug);
                             } else {
                                 $slug = strtolower($slug);
                             }
                             $translationRepository->translate($block, 'slug', $lang, $slug);
                         } else {
                             $block->setName($blockName);
                             $block->setTitle(${$title});
                             $block->setDescription(${$desc});
                             $pageBlock = new Page\Block();
                             $pageBlock->setBlock($block);
                             $pageBlock->setPage($page);
                             $pageBlock->setPosition($i);
                             $pageBlock->setTemplate('title_desc_media_editorialLeft');
                             $page->addBlock($pageBlock);
                             $em->persist($pageBlock);
                         }
                         $em->persist($block);
                     }
                 }
                 $em->flush();
             }
         }
     }
 }
コード例 #4
0
 /**
  * Load data fixtures with the passed EntityManager
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
     $sidebar = new Sidebar\Template\Block();
     $sidebar->setTranslatableLocale('en');
     $sidebar->setActive(true);
     $sidebar->setSlug('form-group-sidebar');
     $sidebar->setName('[GROUP] Sidebar Group form');
     $sidebar->setTemplate('block_sidebarFiche');
     $manager->persist($sidebar);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Votre contact pour une demande de séjour groupe');
     $block->setSlug('group-information');
     $block->setTitle('Contact us');
     $block->setDescription('
         <h3 class="title3">Your contact to request a group stay</h3>
         <p><strong>Group team</strong><br>
         <p>Tel 01.70.23.81.64<br>
         <p><a href="mailto:groupes@seh-hotels.com">groupes@seh-hotels.com</a><br>
     ');
     $block->setTemplate('title_desc_coordonnees');
     $repository->translate($block, 'title', 'fr', 'Nos coordonnées');
     $repository->translate($block, 'description', 'fr', '
         <h3 class="title3">Votre contact pour une demande de séjour groupe</h3>
         <p><strong>Service groupes</strong><br>
         <p>Tel 01.70.23.81.64<br>
         <p><a href="mailto:groupes@seh-hotels.com">groupes@seh-hotels.com</a><br>
     ');
     $manager->persist($block);
     $sidebarBlock = new SidebarBlock();
     $sidebarBlock->setBlock($block);
     $sidebarBlock->setSidebar($sidebar);
     $sidebarBlock->setPosition(0);
     $sidebarBlock->setTemplate('title_desc/title_desc_coordonnees');
     $sidebar->addBlock($sidebarBlock);
     $page = new Page\Template\TitleDescMediaBlockSidebar();
     $page->setActive(true);
     $page->setTranslatableLocale('en');
     $page->setName('Formulaire de Groupe');
     $page->setSlug('group-form');
     $page->setTitle('Formulaire groupe');
     $page->setDescription('');
     $page->setTemplate('title_desc_media_block_sidebar_form');
     $manager->persist($page);
     $sidebarPage = new PageSidebar();
     $sidebarPage->setSidebar($sidebar);
     $sidebarPage->setPage($page);
     $sidebarPage->setPosition(0);
     $sidebarPage->setTemplate('title_desc/block_sidebar_form');
     $page->addSidebar($sidebarPage);
     // Block 1
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire de Groupe] Notre offre pour les groupes');
     $block->setSlug('block-group-form-1');
     $block->setTitle('');
     $block->setDescription('
     <h2 class="title2 lowerCase">Our offer for groups</h2>
     <p>Are you a group of at least fifteen people and do you want to organise a stay in a hotel? Through its four hotel brands and its specialist group bookings team, SEH has a variety of offers for all budgets.</p>
     <h2 class="title2 lowerCase">Friendly and authentic accommodation</h2>
     <p>If you wish to go away for a weekend or a longer time, SEH offers group rates to suit all budgets.</p>
     <h2 class="title2 lowerCase">Quality services adapted to your wishes</h2>
     <p>Our knowledge of all the group hotels and our expertise enable us to give you advice and direct you to the hotel that will best meet your expectations.</p>
     <h2 class="title2 lowerCase">Hoteliers driven by a liking for their region to advise you during your stay</h2>
     <p>And if you need advice about where to go in the region or about activities of any kind, don\'t hesitate to ask! Our hoteliers will be able to guide you and recommend the best options for your group stay..</p>
     <p>For any request for information about a planned group stay, please fill in the questionnaire below:</p>
     ');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'description', 'fr', '
     <h2 class="title2 lowerCase">Notre offre pour les groupes</h2>
     <p>Vous êtes un groupe de 15 personnes minimum et vous souhaitez organiser un séjour dans un hôtel ? La SEH vous propose au travers de ses 4 marques hôtelières et de son service spécialisé dans les demandes de réservation pour les groupes, une offre variée pour tous les budgets.</p>
     <h2 class="title2 lowerCase">Un hébergement convivial et authentique</h2>
     <p>Vous souhaitez partir pour un week-end ou un séjour, la SEH vous propose des tarifs groupes adaptés à tous les budgets.</p>
     <h2 class="title2 lowerCase">Des services de qualité adaptés à vos envies</h2>
     <p>Notre connaissance de tous les hôtels du groupe et notre savoir-faire nous permettent de vous conseiller et vous orienter sur l’établissement correspondant le mieux à vos attentes.</p>
     <h2 class="title2 lowerCase">Des hôteliers animés par le goût de leur région pour vous conseiller lors de votre séjour</h2>
     <p>Et si vous avez besoin de conseils pour visiter la région ou pratiquer des activités de toutes sortes, n’hésitez pas ! Nos hôteliers sauront vous guider et vous recommander le meilleur pour votre séjour en groupe.</p>
     <p>Pour toute demande de renseignement sur un projet de séjour en groupe, merci de bien vouloir remplir le questionnaire ci-dessous :</p>
     ');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(0);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // End Block 1
     // Block Formulaire de Groupe
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire de Groupe] Demande de devis');
     $block->setSlug('block-group-form-6');
     $block->setTitle('Demande de devis');
     $block->setDescription('');
     $block->setTemplate('title_desc_h2');
     $block->setAction('form_group');
     $repository->translate($block, 'title', 'fr', 'Demande de devis');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(5);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // End Formulaire de Groupe
     // Listes déroulantes
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('An organisation');
     $repository->translate($groupType, 'name', 'fr', 'Une association');
     $manager->persist($groupType);
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('A sports/leisure activity team');
     $repository->translate($groupType, 'name', 'fr', 'Une équipe de sport / loisirs');
     $manager->persist($groupType);
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('A group of friends');
     $repository->translate($groupType, 'name', 'fr', 'Un groupe d\'amis');
     $manager->persist($groupType);
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('Other');
     $repository->translate($groupType, 'name', 'fr', 'Autre');
     $manager->persist($groupType);
     $groupTitle = new GroupTitle();
     $groupTitle->setTranslatableLocale('en');
     $groupTitle->setName('Ms');
     $repository->translate($groupTitle, 'name', 'fr', 'Madame');
     $manager->persist($groupTitle);
     $groupTitle = new GroupTitle();
     $groupTitle->setTranslatableLocale('en');
     $groupTitle->setName('Mr');
     $repository->translate($groupTitle, 'name', 'fr', 'Monsieur');
     $manager->persist($groupTitle);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Germany');
     $repository->translate($groupCountry, 'name', 'fr', 'Allemagne');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Belgium');
     $repository->translate($groupCountry, 'name', 'fr', 'Belgique');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Spain');
     $repository->translate($groupCountry, 'name', 'fr', 'Espagne');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('France');
     $repository->translate($groupCountry, 'name', 'fr', 'France');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Italy');
     $repository->translate($groupCountry, 'name', 'fr', 'Italie');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Luxembourg');
     $repository->translate($groupCountry, 'name', 'fr', 'Luxembourg');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Netherlands');
     $repository->translate($groupCountry, 'name', 'fr', 'Pays-bas');
     $manager->persist($groupCountry);
     $groupTypeOfRoom = new GroupTypeOfRoom();
     $groupTypeOfRoom->setTranslatableLocale('en');
     $groupTypeOfRoom->setName('Single');
     $repository->translate($groupTypeOfRoom, 'name', 'fr', '1 personne');
     $manager->persist($groupTypeOfRoom);
     $groupTypeOfRoom = new GroupTypeOfRoom();
     $groupTypeOfRoom->setTranslatableLocale('en');
     $groupTypeOfRoom->setName('Double');
     $repository->translate($groupTypeOfRoom, 'name', 'fr', '2 personnes 1 lit');
     $manager->persist($groupTypeOfRoom);
     $groupTypeOfRoom = new GroupTypeOfRoom();
     $groupTypeOfRoom->setTranslatableLocale('en');
     $groupTypeOfRoom->setName('Twin');
     $repository->translate($groupTypeOfRoom, 'name', 'fr', '2 personnes 2 lits');
     $manager->persist($groupTypeOfRoom);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('Economy, from €40/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', 'Economique, à partir de 40€/nuit');
     $manager->persist($groupHotelCategory);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('2 and 3 stars, from €65/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', '2 et 3 étoiles, à partir de 65€/nuit');
     $manager->persist($groupHotelCategory);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('Superior, from €80/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', 'Supérieur, à partir de 80€/nuit');
     $manager->persist($groupHotelCategory);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('Charming hotels, from €100/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', 'Hôtels de charme, à partir de 100€/nuit');
     $manager->persist($groupHotelCategory);
     // Fin Listes déroulantes
     $manager->flush();
 }
コード例 #5
0
 /**
  * Load data fixtures with the passed EntityManager
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
     $page = new Page\Template\TitleDescMediaBlockSidebar();
     $page->setActive(true);
     $page->setTranslatableLocale('en');
     $page->setName('Formulaire d\'adhésion');
     $page->setSlug('membership-form');
     $page->setTitle('Membership form');
     $page->setDescription('');
     $page->setTemplate('title_desc_media_block_sidebar_form');
     $repository->translate($page, 'title', 'fr', 'Formulaire d\'adhésion');
     $manager->persist($page);
     // Block 1
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire d\'adhésion] Rejoignez le 1er Groupe Européen d\'Hôtellerie Indépendante');
     $block->setSlug('block-adhesion-form-1');
     $block->setTitle('Join Europe\'s Leading Independent Hotel Group');
     $block->setDescription('
     <h2 class="title3 lowerCase">Why should you join Europe\'s Leading Independent Hotel Group?</h2>
     <p>Because its cooperative society structure is made up entirely of independent hotel entrepreneurs like yourself.</p>
     <p>Because you can benefit from the strength of a brand and a network.</p>
     <p>Because you can market your hotel through all of the modern distribution channels, helping you to optimise your average price.</p>
     <p>Because SEH (Société Européenne d\'Hôtellerie) provides you with all of the services you expect from an effective name that belongs to you and enhances your business.</p>
     <p>Meet us to discuss your plans!</p>
     ');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'title', 'fr', 'Rejoignez le 1er Groupe Européen d\'Hôtellerie Indépendante');
     $repository->translate($block, 'description', 'fr', '
     <h2 class="title3 lowerCase">Pourquoi rejoindre le premier Groupe Européen d\'Hôtellerie Indépendante ?</h2>
     <p>Parce qu\'il se distingue par son organisation en société coopérative composée exclusivement d\'entrepreneurs hôteliers indépendants, comme vous.</p>
     <p>Parce qu\'il vous apporte la force d\'une marque et d\'un réseau.</p>
     <p>Parce qu\'il permet de commercialiser votre établissement sur tous les canaux de distribution modernes en vous aidant à optimiser votre prix moyen.</p>
     <p>Parce que la SEH (Société Européenne d’Hôtellerie) vous apporte tous les services que vous attendez d\'une enseigne efficace qui vous appartient et valorise votre fonds de commerce.</p>
     <p>Rencontrons-nous et parlons de votre projet !</p>
     ');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(0);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // End Block 1
     // Block Formulaire d'adhésion
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire d\'adhésion] Votre établissement');
     $block->setSlug('block-adhesion-form-2');
     $block->setTitle('');
     $block->setDescription('');
     $block->setTemplate('title_desc_h2');
     $block->setAction('form_adhesion');
     $repository->translate($block, 'title', 'fr', '');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(1);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // Fin Block Formulaire d'adhésion
     // Block 2
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire d\'adhésion] Quelques témoignages de nos hôteliers');
     $block->setSlug('block-adhesion-form-3');
     $block->setTitle('Testimonies from our hoteliers');
     $block->setDescription('
     <h2 class="title3 lowerCase">Miriam Vidali, Relais du Silence Albergo Casafrassi, Italy</h2>
     <p>"80% of our tourist guests are German and French. The stylish image of Relais du Silence is excellent for this type of guest and helps to bring in business. We noticed the results gradually, but now they are evident".</p>
     <h2 class="title3 lowerCase">Mr Claude Champfailly, Inter-Hotel Alizea – St Saturnin (Le Mans Nord - 72)</h2>
     <p>"The way the cooperative works in commercial terms is as effective as a franchise, but without the disadvantages and costs."</p>
     <h2 class="title3 lowerCase">Loïc Constant, Qualys-Hotel La Maison Rouge, Noeux les Mines (Lens - 62)</h2>
     <p>"With Qualys-Hotel we benefit from a high-end brand and the services of the SEH cooperative. Staying independent doesn\'t mean being alone."</p>
     <h2 class="title3 lowerCase">Philippe Merdy, Relais du Silence Les Costans, Perros-Guirec (22)</h2>
     <p>"I have found Relais du Silence to be a brand that is perfectly suited to my hotel and that has a strong positioning. It is a European network that gives real visibility on the international stage."</p>
     <h2 class="title3 lowerCase">Axelle Le Grix de la Salle, Ptit Dej-Hotel Mérignac (Bordeaux - 33)</h2>
     <p>"I wanted to join a national name with a powerful loyalty card, something we were missing by staying on our own. Ptit Dej-Hotel and the Accent card meet our expectations 100%."</p>
     ');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'title', 'fr', 'Quelques témoignages de nos hôteliers');
     $repository->translate($block, 'description', 'fr', '
     <h2 class="title3 lowerCase">Miriam Vidali Relais du Silence Albergo Casafrassi, Italie</h2>
     <p>« 80 % de nos clients tourisme sont Allemands et Français. L\'image raffinée des Relais du Silence est excellente pour cette clientèle et contribue à la bonne activité. L\'impact a été progressif, il est réel aujourd\'hui».</p>
     <h2 class="title3 lowerCase">Monsieur Claude Champfailly, Inter-Hotel Alizea – St Saturnin (Le Mans Nord - 72)</h2>
     <p>« Le fonctionnement de la coopérative sur le plan commercial, est aussi efficace que celui d\'une franchise, mais sans les inconvénients et les coûts de celle-ci». </p>
     <h2 class="title3 lowerCase">Loïc Constant, Qualys-Hotel La Maison Rouge à Noeux les Mines (Lens - 62)</h2>
     <p>« Qualys-Hotel nous permet de bénéficier d\'une marque haut de gamme et des services de la coopérative SEH. Rester indépendant mais ne pas rester seuls ». </p>
     <h2 class="title3 lowerCase">Philippe Merdy, Relais du Silence Les Costans à Perros–Guirec (22)</h2>
     <p>« J\'ai trouvé dans Relais du Silence une marque parfaitement adaptée à mon établissement, avec un positionnement fort. C\'est un réseau Européen qui donne une vraie visibilité sur l\'International ».</p>
     <h2 class="title3 lowerCase">Axelle Le Grix de la Salle, Ptit Dej-Hotel Mérignac (Bordeaux - 33)</h2>
     <p>« Je souhaitais rejoindre une enseigne nationale disposant d\'une carte de fidélité puissante qu\'il nous manquait en restant sans enseigne. Ptit Dej-Hotel et la carte Accent répondent parfaitement à nos attentes ».</p>
     ');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(2);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // End Block 2
     $manager->flush();
 }