translate index WIP
This commit is contained in:
parent
f02379453c
commit
15c69649b2
@ -121,18 +121,21 @@ class translate extends common {
|
|||||||
// Préparation du formulaire
|
// Préparation du formulaire
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
|
// Onglet des langues de contenu
|
||||||
foreach (self::$languages as $keyi18n => $value) {
|
foreach (self::$languages as $keyi18n => $value) {
|
||||||
// tableau des langues installées
|
// tableau des langues installées
|
||||||
if (is_dir(self::DATA_DIR . $keyi18n) ) {
|
if (is_dir(self::DATA_DIR . $keyi18n) ) {
|
||||||
self::$languagesInstalled [] = [
|
self::$languagesInstalled [] = [
|
||||||
$value . '(' . $keyi18n . ')' ,
|
$value . ' (' . $keyi18n . ')' ,
|
||||||
|
self::$i18nUI === $keyi18n ? '(langue de l\'interface)' : '',
|
||||||
|
'',
|
||||||
template::button('translateContentLanguageEdit' . $keyi18n, [
|
template::button('translateContentLanguageEdit' . $keyi18n, [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $keyi18n. '/' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $keyi18n. '/' . $_SESSION['csrf'],
|
||||||
'value' => template::ico('pencil'),
|
'value' => template::ico('pencil'),
|
||||||
'help' => 'Editer les locales'
|
'help' => 'Editer les locales'
|
||||||
]),
|
]),
|
||||||
template::button('translateContentLanguageDelete' .$keyi18n, [
|
template::button('translateContentLanguageDelete' .$keyi18n, [
|
||||||
'class' => 'buttonRed',
|
'class' => 'buttonRed' . (self::$i18nUI === $keyi18n ? ' disabled' : '') ,
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $keyi18n . '/' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $keyi18n . '/' . $_SESSION['csrf'],
|
||||||
'value' => template::ico('trash'),
|
'value' => template::ico('trash'),
|
||||||
'help' => 'Supprimer cette langue'
|
'help' => 'Supprimer cette langue'
|
||||||
@ -142,9 +145,7 @@ class translate extends common {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Langues de l'UI disponibles
|
||||||
|
|
||||||
// Liste des langues disponibles
|
|
||||||
if (is_dir(self::I18N_DIR)) {
|
if (is_dir(self::I18N_DIR)) {
|
||||||
$dir = getcwd();
|
$dir = getcwd();
|
||||||
chdir(self::I18N_DIR);
|
chdir(self::I18N_DIR);
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<div id="uiContainer" class="tabContent">
|
<div id="uiContainer" class="tabContent">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block" id="flagsWrapper">
|
<div class="block">
|
||||||
<h4>
|
<h4>
|
||||||
<?php echo template::topic('Langue de l\'administration'); ?>
|
<?php echo template::topic('Langue de l\'administration'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
@ -61,11 +61,27 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="contentContainer" class="tabContent">
|
<div id="contentContainer" class="tabContent">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col12">
|
||||||
|
<div class="block">
|
||||||
|
<h4>
|
||||||
|
<?php echo template::topic('Ajouter une langue'); ?>
|
||||||
|
</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col12">
|
||||||
|
Poouet !
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col12">
|
||||||
<?php if($module::$languagesInstalled): ?>
|
<?php if($module::$languagesInstalled): ?>
|
||||||
<?php echo template::table([10, 1, 1], $module::$languagesInstalled, ['Langue', '', '']); ?>
|
<?php echo template::table([2, 2, 6, 1, 1], $module::$languagesInstalled, ['Langue', '', '', '', '']); ?>
|
||||||
<?php else: ?>
|
|
||||||
<?php echo template::speech('Aucune news.'); ?>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php echo template::formClose(); ?>
|
<?php echo template::formClose(); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user