rien de spécial
This commit is contained in:
parent
7b6922cfe0
commit
f2948915b8
@ -16,8 +16,8 @@
|
|||||||
class language extends common
|
class language extends common
|
||||||
{
|
{
|
||||||
|
|
||||||
// URL langues de l'UI en ligne
|
// URL langues de l'UI en ligne
|
||||||
const ZWII_UI_URL = 'https://forge.chapril.org/ZwiiCMS-Team/zwiicms-translations/raw/branch/master/v13/';
|
const ZWII_UI_URL = 'https://forge.chapril.org/ZwiiCMS-Team/zwiicms-translations/raw/branch/master/v13/';
|
||||||
|
|
||||||
public static $actions = [
|
public static $actions = [
|
||||||
'index' => self::GROUP_ADMIN,
|
'index' => self::GROUP_ADMIN,
|
||||||
@ -91,7 +91,7 @@ class language extends common
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Télécharger le descripteur en ligne
|
// Télécharger le descripteur en ligne
|
||||||
$languageData = json_decode(helper::getUrlContents(self::ZWII_UI_URL . $lang . '.json'), true);
|
$languageData = json_decode(helper::getUrlContents(self::ZWII_UI_URL . $lang . '.json'), true);
|
||||||
$descripteur = json_decode(helper::getUrlContents(self::ZWII_UI_URL . 'language.json'), true);
|
$descripteur = json_decode(helper::getUrlContents(self::ZWII_UI_URL . 'language.json'), true);
|
||||||
$success = false;
|
$success = false;
|
||||||
if (
|
if (
|
||||||
@ -259,13 +259,13 @@ class language extends common
|
|||||||
//self::$i18nUI === $file ? helper::translate('Interface') : '',
|
//self::$i18nUI === $file ? helper::translate('Interface') : '',
|
||||||
'',
|
'',
|
||||||
/*
|
/*
|
||||||
template::button('translateContentLanguageUIEdit' . $file, [
|
template::button('translateContentLanguageUIEdit' . $file, [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $file,
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $file,
|
||||||
'value' => template::ico('pencil'),
|
'value' => template::ico('pencil'),
|
||||||
'help' => 'Éditer',
|
'help' => 'Éditer',
|
||||||
'disabled' => 'fr_FR' === $file
|
'disabled' => 'fr_FR' === $file
|
||||||
]),
|
]),
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template::button('translateContentLanguageUIDownload' . $file, [
|
template::button('translateContentLanguageUIDownload' . $file, [
|
||||||
'class' => version_compare($installedUI[$file]['version'], $storeUI[$file]['version']) < 0 ? 'buttonGreen' : '',
|
'class' => version_compare($installedUI[$file]['version'], $storeUI[$file]['version']) < 0 ? 'buttonGreen' : '',
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
'help' => 'Consulter l\'aide en ligne'
|
'help' => 'Consulter l\'aide en ligne'
|
||||||
]);*/?>
|
]);*/?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
|
Loading…
Reference in New Issue
Block a user