diff --git a/head.php b/head.php index f74cd50dd90ace54930bd0392e558131ee2e21cb..fefbd64a81f91c53ef3a6705e9808d926b7509dd 100644 --- a/head.php +++ b/head.php @@ -53,6 +53,7 @@ $bodyIds = !isset($bodyIds) ? '' : $bodyIds; </head> <body id="<?php echo $bodyIds; ?>"> <?php + $currentPageTextDomain = textdomain(); textdomain("menu"); $menu = @@ -122,3 +123,6 @@ $bodyIds = !isset($bodyIds) ? '' : $bodyIds; </header> <main> + <?php + textdomain($currentPageTextDomain); + ?> \ No newline at end of file diff --git a/tpl/download.php b/tpl/download.php index 00ed327e1a141d911065f8d47925dd44066774d5..f2f1ad467cdbe2741b0d75047bbcb282907834ab 100644 --- a/tpl/download.php +++ b/tpl/download.php @@ -9,8 +9,6 @@ include('cesiumDownloads.php'); include('head.php'); -textdomain('download'); - ?> diff --git a/tpl/features.php b/tpl/features.php index 33f65747b975321b82592398124e6dd4856146a7..b392305a5c728c66b03e3dd9a0a3af39950250bc 100644 --- a/tpl/features.php +++ b/tpl/features.php @@ -1,12 +1,12 @@ <?php +textdomain('features'); + $pageTitle = _('Fonctionnalités'); $pageDescription = _("Fonctionnalités de Cesium : gérer son comptes monnaie libre Ğ1, rechercher des membres dans l'annuaire, trouver des entreprises qui acceptent la Ğ1."); include('head.php'); -textdomain('features'); - ?> <article id="features"> diff --git a/tpl/funding-alt-1.php b/tpl/funding-alt-1.php index eb031a21ac0092361d01bbe08a2bc0ab043d0fe6..7b72e4b6ffa3d8c3bac3dcea53ee7ea97d0540eb 100644 --- a/tpl/funding-alt-1.php +++ b/tpl/funding-alt-1.php @@ -1,4 +1,5 @@ <?php +textdomain('funding'); $pageTitle = _("Coucou"); $pageDescription = _(""); diff --git a/tpl/funding-orig.php b/tpl/funding-orig.php index 113675b7a7b610448c9ef5d1725d587d521ae422..3881b395eb097d77cb395023c8037d6e892b749f 100644 --- a/tpl/funding-orig.php +++ b/tpl/funding-orig.php @@ -1,4 +1,5 @@ <?php +textdomain('funding'); $pageTitle = _("Coucou"); $pageDescription = _(""); diff --git a/tpl/home.php b/tpl/home.php index 76edefbfd649f5be37478671b120b5f2bad2d047..f3bfaeda31824cbdc257b621db667acb99b87aae 100644 --- a/tpl/home.php +++ b/tpl/home.php @@ -1,4 +1,7 @@ <?php + +textdomain('home'); + $bodyIds = 'home'; $pageTitle = _('Cesium Ğ1 - Site officiel'); @@ -6,8 +9,6 @@ $pageDescription = _("Cesium est l'application la plus intuitive pour gérer vot include('head.php'); -textdomain('home'); - ?> <section id="showcase"> diff --git a/tpl/jobs.php b/tpl/jobs.php index cb1a01faee6571a1bb63fa1b4cfca5d48e7bf107..14e7f4b6b34c648143a2b81d539277107615387d 100644 --- a/tpl/jobs.php +++ b/tpl/jobs.php @@ -1,5 +1,5 @@ <?php - +textdomain('jobs'); $pageTitle = _("Rejoignez l'équipe"); $pageDescription = _(""); diff --git a/tpl/legal-notice.php b/tpl/legal-notice.php index d4d2073196d6a254d195f1ab82c7e35f31fb189f..81eadd8205fccd37d1cc5de72ae0d8447e9c2d5b 100644 --- a/tpl/legal-notice.php +++ b/tpl/legal-notice.php @@ -1,4 +1,5 @@ <?php +textdomain('legal-notice'); $pageTitle = _("Mentions légales"); $pageDescription = _(""); diff --git a/tpl/tuto.php b/tpl/tuto.php index 8e7e582f0663ab80962c1ff898ad6d9abc062448..261396893a4d1a895b4b3545e0f72820df19bf6b 100644 --- a/tpl/tuto.php +++ b/tpl/tuto.php @@ -1,4 +1,7 @@ <?php + +textdomain('tuto'); + $pageTitle = ''; $tutoURL = $rootURL . '/' . LANG . dgettext('menu', $pagePermalink) . '/';