Deltacms/core/module/config/view/locale/locale.php

331 lines
13 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Langues étrangères';
$text[1] = 'Activer la gestion des langues étrangères';
$text[2] = 'Une nouvelle icône apparaîtra dans la barre d\'administration. Consultez l\'aide de la page concernée pour en apprendre plus.';
$text[3] = 'Identité du site ';
$text[4] = 'Titre du site';
$text[5] = 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.';
$text[6] = 'DeltaCMS Version';
$text[7] = 'Description du site';
$text[8] = 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.';
$text[9] = 'Assignation des pages spéciales ';
$text[10] = 'Accueil du site';
$text[11] = 'La première page que vos visiteurs verront.';
$text[12] = 'Accès interdit, erreur 403';
$text[13] = 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.';
$text[14] = 'Page inexistante, erreur 404';
$text[15] = 'Mentions légales';
$text[16] = 'Les mentions légales sont obligatoires en France. Une option du pied de page ajoute un lien discret vers cette page.';
$text[17] = 'Recherche dans le site';
$text[18] = 'Sélectionnez une page contenant le module \'Recherche\'. Une option du pied de page ajoute un lien discret vers cette page.';
$text[19] = 'Page par défaut';
$text[20] = 'Aucune';
$text[21] = 'Site en maintenance';
$text[22] = 'Etiquettes des pages spéciales ';
$text[23] = 'Rechercher';
$text[24] = 'Plan du site';
$text[25] = 'Cookies';
$text[26] = 'Message d\'acceptation des Cookies ';
$text[27] = 'Saisissez le titre de la fenêtre de gestion des cookies.';
$text[28] = 'Titre de la fenêtre';
$text[29] = 'Gérer les cookies';
$text[30] = 'Saisissez le message pour les cookies déposés par DeltaCMS, nécessaires au fonctionnement et qui ne nécessitent pas de consentement.';
$text[31] = 'Cookies Deltacms';
$text[32] = 'Ce site utilise des cookies nécessaires à son fonctionnement, ils permettent de fluidifier son fonctionnement par exemple en mémorisant les données de connexion, la langue que vous avez choisie ou la validation de ce message.';
$text[33] = 'Saisissez le texte du lien vers les mentions légales,la page doit être définie dans la configuration du site.';
$text[34] = 'Lien page des mentions légales.';
$text[35] = 'Consulter les mentions légales';
$text[36] = 'Saisissez le message pour les cookies déposés par d\'autres applications dont le consentement est requis sinon laissez vide.';
$text[37] = 'Cookies tiers';
$text[38] = 'Saisissez le texte de la case à cocher d\'acceptation des cookies tiers.';
$text[39] = 'Checkbox cookies tiers';
$text[40] = 'Bouton de validation';
$text[41] = 'J\'ai compris';
break;
case 'en' :
$text[0] = 'Foreign languages';
$text[1] = 'Enable foreign language support';
$text[2] = 'A new icon will appear in the admin bar. See the help for the relevant page to learn more.';
$text[3] = 'Site identity ';
$text[4] = 'Site title';
$text[5] = 'It appears in the title bar and shares on social networks';
$text[6] = 'DeltaCMS Version';
$text[7] = 'Site description';
$text[8] = 'The description of a page helps its referencing, each page must have a different description';
$text[9] = 'Assignment of special pages ';
$text[10] = 'Home page';
$text[11] = 'The first page your visitors will see';
$text[12] = 'Access denied, error 403';
$text[13] = 'This page should not appear in the menu tree. Create an orphan page.';
$text[14] = 'Page does not exist, error 404';
$text[15] = 'Legal notice';
$text[16] = 'Legal notices are mandatory in France. A footer option adds a discrete link to this page';
$text[17] = 'Search the site';
$text[18] = 'Select a page containing the module \'Search\'. A footer option adds a discrete link to this page';
$text[19] = 'Default page';
$text[20] = 'None';
$text[21] = 'Site under maintenance';
$text[22] = 'Special page labels ';
$text[23] = 'Search';
$text[24] = 'Site map';
$text[25] = 'Cookies';
$text[26] = 'Cookie acceptance message ';
$text[27] = 'Enter the title of the cookie management window';
$text[28] = 'Window title';
$text[29] = 'Manage cookies';
$text[30] = 'Enter the message for the cookies deposited by DeltaCMS, which are necessary for the operation and do not require consent';
$text[31] = 'DeltaCMS cookies';
$text[32] = 'This site uses cookies necessary for its operation, they allow to make its operation more fluid for example by memorizing the connection data, the language you have chosen or the validation of this message';
$text[33] = 'Enter the text of the link to the legal notices, the page must be defined in the site configuration';
$text[34] = 'Link to the legal notice page';
$text[35] = 'View legal information';
$text[36] = 'Enter message for cookies set by other applications that require consent, otherwise leave blank';
$text[37] = 'Third party cookies';
$text[38] = 'Enter the text of the checkbox for accepting third party cookies';
$text[39] = 'Checkbox third party cookies';
$text[40] = 'Validation button';
$text[41] = 'Got it';
break;
}
?>
<?php // drapeau pour la langue d'origine ou la langue en traduction rédigée
2022-03-18 07:50:13 +01:00
if( $this->getInput('DELTA_I18N_SITE') === '' || $this->getInput('DELTA_I18N_SITE')=== null || $this->getInput('DELTA_I18N_SITE') === 'base'){
$flag = $this->getData(['config', 'i18n', 'langBase']);
}
else{
$flag = $this->getInput('DELTA_I18N_SITE');
}
?>
2022-01-31 09:10:49 +01:00
<div id="localeContainer">
<div class="row">
<div class="col12">
<div class="block">
2022-03-06 13:35:21 +01:00
<h4><?php echo $text[0]; ?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col12">
2022-03-06 13:35:21 +01:00
<?php echo template::checkbox('localei18n', true, $text[1], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['config', 'i18n', 'enable']),
2022-03-06 13:35:21 +01:00
'help'=> $text[2]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-06 13:35:21 +01:00
<h4><?php echo $text[3]; ?><?php echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="localeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col9">
<?php echo template::text('localeTitle', [
2022-03-06 13:35:21 +01:00
'label' => $text[4],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'title']),
2022-03-06 13:35:21 +01:00
'help' => $text[5]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col3">
<?php echo template::text('localeVersion', [
2022-03-06 13:35:21 +01:00
'label' => $text[6],
2022-01-31 09:10:49 +01:00
'value' => common::DELTA_VERSION,
'readonly' => true
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('localeMetaDescription', [
2022-03-06 13:35:21 +01:00
'label' => $text[7],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'metaDescription']),
2022-03-06 13:35:21 +01:00
'help' => $text[8]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-06 13:35:21 +01:00
<h4><?php echo $text[9]; echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="localeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#pages-speciales" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col4">
<?php echo template::select('localeHomePageId', helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC'), [
2022-03-06 13:35:21 +01:00
'label' => $text[10],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'homePageId']),
2022-03-06 13:35:21 +01:00
'help' => $text[11]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('localePage403', array_merge(['none' => $text[19]],helper::arrayCollumn($module::$orphansList, 'title', 'SORT_ASC')), [
'label' => $text[12],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'page403']),
2022-03-06 13:35:21 +01:00
'help' => $text[13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('localePage404', array_merge(['none' => $text[19]],helper::arrayCollumn($module::$orphansList, 'title', 'SORT_ASC')), [
'label' => $text[14],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'page404']),
2022-03-06 13:35:21 +01:00
'help' => $text[13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('localeLegalPageId', array_merge(['none' => $text[20]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
'label' => $text[15],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['locale', 'legalPageId']),
2022-03-06 13:35:21 +01:00
'help' => $text[16]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-03-06 13:35:21 +01:00
<?php echo template::select('localeSearchPageId', array_merge(['none' => $text[20]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
'label' => $text[17],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['locale', 'searchPageId']),
2022-03-06 13:35:21 +01:00
'help' => $text[18]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
<?php
2022-03-06 13:35:21 +01:00
echo template::select('localePage302', array_merge(['none' => $text[19]],helper::arrayCollumn($module::$orphansList, 'title', 'SORT_ASC')), [
'label' => $text[21],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'page302']),
2022-03-06 13:35:21 +01:00
'help' => $text[13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-06 13:35:21 +01:00
<h4><?php echo $text[22]; echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="labelHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#etiquettes" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col6">
<?php echo template::text('localeLegalPageLabel', [
2022-03-06 13:35:21 +01:00
'label' => $text[15],
'placeholder' => $text[15],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'legalPageLabel'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('localeSearchPageLabel', [
2022-03-06 13:35:21 +01:00
'label' => $text[23],
'placeholder' => $text[23],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'searchPageLabel'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::text('localeSitemapPageLabel', [
2022-03-06 13:35:21 +01:00
'label' => $text[24],
'placeholder' => $text[24],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'sitemapPageLabel']),
]); ?>
</div>
<div class="col6">
<?php echo template::text('localeCookiesFooterText', [
2022-03-06 13:35:21 +01:00
'label' => $text[25],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesFooterText']),
2022-03-06 13:35:21 +01:00
'placeHolder' => $text[25]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-06 13:35:21 +01:00
<h4><?php echo $text[26]; echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#cookies" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col12">
<?php echo template::text('localeCookiesTitleText', [
2022-03-06 13:35:21 +01:00
'help' => $text[27],
'label' => $text[28] ,
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesTitleText']),
2022-03-06 13:35:21 +01:00
'placeHolder' => $text[29]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col8">
<?php echo template::textarea('localeCookiesDeltaText', [
2022-03-06 13:35:21 +01:00
'help' => $text[30],
'label' => $text[31],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesDeltaText']),
2022-03-06 13:35:21 +01:00
'placeHolder' => $text[32]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
<?php echo template::text('localeCookiesLinkMlText', [
2022-03-06 13:35:21 +01:00
'help' => $text[33],
'label' => $text[34],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesLinkMlText']),
2022-03-06 13:35:21 +01:00
'placeHolder' => $text[35]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col8">
<?php echo template::textarea('localeCookiesExtText', [
2022-03-06 13:35:21 +01:00
'help' => $text[36],
'label' => $text[37],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesExtText'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('localeCookiesCheckboxExtText', [
2022-03-06 13:35:21 +01:00
'help' => $text[38],
'label' => $text[39],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesCheckboxExtText'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4 offset4">
<?php echo template::text('localeCookiesButtonText', [
2022-03-06 13:35:21 +01:00
'label' => $text[40],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesButtonText']),
2022-03-06 13:35:21 +01:00
'placeHolder' => $text[41]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>