From: vincent@cubedesigners.com Date: Thu, 9 Jun 2011 08:36:39 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=85676af9b5efcb257d16af95d87cab0024952861;p=cubeextranet.git --- diff --git a/fluidbook/compile/_zinc/FluidbookMAC.zinc b/fluidbook/compile/_zinc/FluidbookMAC.zinc deleted file mode 100644 index 938a53501..000000000 Binary files a/fluidbook/compile/_zinc/FluidbookMAC.zinc and /dev/null differ diff --git a/fluidbook/compile/_zinc/FluidbookWIN.zinc b/fluidbook/compile/_zinc/FluidbookWIN.zinc index d4cb6ab71..9c6a16780 100644 Binary files a/fluidbook/compile/_zinc/FluidbookWIN.zinc and b/fluidbook/compile/_zinc/FluidbookWIN.zinc differ diff --git a/fluidbook/compile/autorun.inf b/fluidbook/compile/autorun.inf index 40ffc03f1..c78003e87 100644 --- a/fluidbook/compile/autorun.inf +++ b/fluidbook/compile/autorun.inf @@ -1,5 +1,5 @@ [autorun] label=$title -icon=fluidbook.ico +icon=data/fluidbook.ico open=$exe action=$title \ No newline at end of file diff --git a/fluidbook/tools/fwstk.jar b/fluidbook/tools/fwstk.jar index 15683c186..03c2c1786 100644 Binary files a/fluidbook/tools/fwstk.jar and b/fluidbook/tools/fwstk.jar differ diff --git a/inc/extranet/Controlleur/class.extranet.url.php b/inc/extranet/Controlleur/class.extranet.url.php index 22793f99e..9e777ad5e 100644 --- a/inc/extranet/Controlleur/class.extranet.url.php +++ b/inc/extranet/Controlleur/class.extranet.url.php @@ -169,7 +169,7 @@ class extranetUrl { if ($entreprise_id == 'new' || !$client->ws_admin) { $class = 'empty-field'; $default_id = ''; - $default = __('Entrez le nom du revendeur ou de l\'administrateur'); + $default = __("Entrez le nom du revendeur ou de l'administrateur"); } else { $class = ''; $default_id = $client->ws_admin; @@ -1523,7 +1523,7 @@ class extranetUrl { $res .= ''; $res .= ''; $res .= '
' . __("Traduction de l'application en anglais") . '
'; - $res .= cubeLang::translationForm(array(ROOT . '/inc/extranet', FLASH_SOURCES), 'en' , ROOT . '/l10n', '', array(), '' . $core->typo->BoutonOK('Enregistrer') . ''); + $res .= cubeLang::translationForm(array(ROOT . '/inc/extranet',ROOT . '/inc/ws', COMPOSER_SOURCES), 'en' , ROOT . '/l10n', '', array(), '' . $core->typo->BoutonOK('Enregistrer') . ''); $res .= ''; $res .= commonPage::bf(); $res .= commonPage::bMain(); diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 1f96de1cc..5feea0e3f 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -37,7 +37,7 @@ class wsUrl { cubePage::contextMenu(); $droits = wsDroits::getDroits(); - + commonDroits::min(1); $settings = is_null($settings) ? $core->user->getSettings('books') : $settings; $change = is_null($dashboard) ? 'Books' : 'Dashboard/' . $dashboard; @@ -284,7 +284,7 @@ class wsUrl { $tab = cubeLang::getTranslationsList(PLAYER_SOURCES, array('php', 'as'), array(), $lang->traductions); - + $s->setCellValueByColumnAndRow(0, 1, 'ID', true); $s->setCellValueByColumnAndRow(1, 1, 'English', true); $s->setCellValueByColumnAndRow(2, 1, $lang_name, true); @@ -608,7 +608,7 @@ html{height:100%}' . "\n"; $wmode = isset($args[1]) ? $args[1] : ''; $e = explode('_', $args[0]); - $newurl=null; + $newurl = null; if (count($e) == 2 || $e[2] < TIME - 10) { $e[2] = TIME; http::redirect(SITE_PATH . 'viewer/' . implode('_', $e) . '/' . $wmode); @@ -622,7 +622,7 @@ html{height:100%}' . "\n"; self::checkDocumentVersionOfBook($book_id); wsSecureSWF::checkProtectedSWF(); - echo self::commonViewer($book_id, $e[1], false, $wmode,$newurl); + echo self::commonViewer($book_id, $e[1], false, $wmode, $newurl); } public static function commonViewer($book_id, $hash, $standalone = false, $wmode = 'default') { @@ -1042,7 +1042,7 @@ html{height:100%}' . "\n"; if ($entreprise_id == 'new' || !$client->ws_admin) { $class = 'empty-field'; $default_id = ''; - $default = __('Entrez le nom du revendeur ou de l\'administrateur'); + $default = __("Entrez le nom du revendeur ou de l'administrateur"); } else { $class = ''; $default_id = $client->ws_admin; @@ -1257,7 +1257,7 @@ html{height:100%}' . "\n"; if (!is_null($demandeur->ws_admin) && !in_array($demandeur->ws_admin, $administrateurs)) { // Si déjà géré par un revendeur $revendeur = $daoUtilisateur->selectById($demandeur->ws_admin, 'utilisateurs_entreprise'); - $actions[__('Je confie la demande à ' . $revendeur->rs . ' (' . $revendeur->prenom . ' ' . $revendeur->nom . ')')] = $demandeur->ws_admin; + $actions[__('Je confie la demande à') . ' ' . $revendeur->rs . ' (' . $revendeur->prenom . ' ' . $revendeur->nom . ')'] = $demandeur->ws_admin; } else { $liste = $daoUtilisateur->selectWSRevendeursFacturables(); $revendeurs = array(); diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index a86908cf6..6bf26674a 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -24,8 +24,8 @@ class wsBookParametres extends wsParametres { // . // . $this->fields['friend'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Envoyer à un ami')); - $this->fields['email_title'] = array('type' => 'text', 'default' => __('%name% vous invite à découvrir %title%'), 'editable' => true, 'label' => __("Titre de l'email \"Envoyer à un ami\"")); - $this->fields['email_body'] = array('type' => 'textarea', 'default' => __('Veuillez cliquer sur le lien suivant : %link%'), 'editable' => true, 'label' => __("Corps de l'email \"Envoyer à un ami\"")); + $this->fields['email_title'] = array('type' => 'text', 'default' => __('%name% vous invite à découvrir %title%'), 'editable' => true, 'label' => __("Titre de l'email").' "'.__('Envoyer à un ami').'"'); + $this->fields['email_body'] = array('type' => 'textarea', 'default' => __('Veuillez cliquer sur le lien suivant : %link%'), 'editable' => true, 'label' => __("Corps de l'email").' "'.__('Envoyer à un ami').'"'); $this->fields['email_editable'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Permettre au lecteur de modifier le corps de l'email")); $this->fields['askAcknowledge'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Demander au destinataire un accusé de réception"), 'grade' => 3); $this->fields['facebook'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Facebook')); diff --git a/inc/ws/Util/packager/class.ws.packager.mac.exe.php b/inc/ws/Util/packager/class.ws.packager.mac.exe.php index d93ec19ff..d1c1279d5 100644 --- a/inc/ws/Util/packager/class.ws.packager.mac.exe.php +++ b/inc/ws/Util/packager/class.ws.packager.mac.exe.php @@ -16,6 +16,7 @@ class wsPackagerMacEXE extends wsPackager { $this->copyFluidbookFiles(); $this->copyOtherFiles(array('Fluidbook.app.zip')); + $this->moveDatasSWF(); } public function makePackage() diff --git a/inc/ws/Util/packager/class.ws.packager.php b/inc/ws/Util/packager/class.ws.packager.php index 7bd07a24b..c71d1a614 100644 --- a/inc/ws/Util/packager/class.ws.packager.php +++ b/inc/ws/Util/packager/class.ws.packager.php @@ -164,6 +164,11 @@ class wsPackager { $rm->execute(); } } + + protected function moveDatasSWF(){ + rename($this->vdir.'/FluidbookDatas.swf',$this->vdir.'/data/FluidbookDatas.swf'); + rename($this->vdir.'/FluidbookDatasLight.swf',$this->vdir.'/data/FluidbookDatasLight.swf'); + } public function __destruct() { diff --git a/inc/ws/Util/packager/class.ws.packager.win.cd.php b/inc/ws/Util/packager/class.ws.packager.win.cd.php index d70a06b91..883db767f 100644 --- a/inc/ws/Util/packager/class.ws.packager.win.cd.php +++ b/inc/ws/Util/packager/class.ws.packager.win.cd.php @@ -10,8 +10,9 @@ class wsPackagerWinCD extends wsPackagerWinEXE { { parent::preparePackage(); - $this->copyOtherFiles(array('fluidbook.ico', 'autorun.inf')); + $this->copyOtherFiles(array('fluidbook.ico'=>'data/fluidbook.ico', 'autorun.inf')); $this->replaceAutorun(); + $this->moveDatasSWF(); } public function replaceAutorun() diff --git a/inc/ws/Util/packager/class.ws.packager.win.exe.php b/inc/ws/Util/packager/class.ws.packager.win.exe.php index 2ebd4e4fe..7491f1d80 100644 --- a/inc/ws/Util/packager/class.ws.packager.win.exe.php +++ b/inc/ws/Util/packager/class.ws.packager.win.exe.php @@ -16,6 +16,7 @@ class wsPackagerWinEXE extends wsPackager { $this->copyFluidbookFiles(); $this->copyOtherFiles(array('Fluidbook.exe' => $this->exeName)); + $this->moveDatasSWF(); } public function makePackage() diff --git a/inc/ws/Util/packager/class.ws.packager.win.inst.php b/inc/ws/Util/packager/class.ws.packager.win.inst.php index d5f9b8720..d03b6879f 100644 --- a/inc/ws/Util/packager/class.ws.packager.win.inst.php +++ b/inc/ws/Util/packager/class.ws.packager.win.inst.php @@ -14,6 +14,7 @@ class wsPackagerWinINST extends wsPackagerWinEXE { $this->copyFluidbookFiles(); $this->copyOtherFiles(array('Fluidbook.exe' => $this->exeName)); + $this->moveDatasSWF(); $this->makeNSI(); }