\r
public function compileFlex($book_id, $complete, $compilerDir, $finalDir, &$filesToCopy, $book, $pages, $flex, $flexLight) {\r
cubePHP::neverStop();\r
-\r
+ /* @var $flex cubeFlexCompiler */\r
\r
$workingDir = WS_BOOKS . '/working/' . $book_id . '/';\r
\r
$flex->addBitmap($iconsRoot . 'nav-' . $file . '.png', 'nav_' . $file);\r
}\r
\r
+ // Multilang\r
+ if ($book->parametres->multilang) {\r
+ $langs = explode("\n", $book->parametres->multilang);\r
+ $langNames = array();\r
+ $iso = l10n::getISOcodes();\r
+ $chars = '';\r
+ foreach ($langs as $l) {\r
+ list($lang, $flag, $url) = explode(',', trim($l), 3);\r
+ $flex->addBitmap(cubeMedia::getFlagFile($flag), 'flag_' . $flag);\r
+ $langNames[$lang] = $iso[$lang];\r
+ $chars.=$iso[$lang];\r
+ }\r
+ $flex->addVariable('langNames', $langNames, false, true, 'JSONObject');\r
+ }\r
+\r
// Basket\r
if ($book->parametres->basket) {\r
$formats = array('jpg', 'png', 'jpeg');\r
$this->forms['multimedia'] = array('label' => __('Liens et multimédia'),\r
'fieldsnames' => array('permanentLinks', 'linkBlinkTime', 'customLinkClass', 'linkTooltipManager', '|', 'linkTracker', 'linkTrackerRegexp', '|', 'linkMultimediaPerformanceMode'));\r
// .\r
+ $this->fields['multilang'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => 'Langues');\r
+ $this->forms['multilang'] = array('label' => __('Interface multilangue'),\r
+ 'fieldsnames' => array('multilang'));\r
+ //.\r
$this->fields['externalArchives'] = array('type' => 'freefile', 'default' => '', 'editable' => true,\r
'label' => __('Archives'), 'grade' => 3, 'fileFilter' => $swfFilter);\r
\r
$this->forms['demo'] = array('label' => __('Lien de démo'),\r
'fieldsnames' => array('disableDemo', 'redirectDemo'));\r
}\r
+\r
}\r
+\r
?>
\ No newline at end of file