]> _ Git - cubeextranet.git/commitdiff
fix #1637 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 Oct 2018 15:36:59 +0000 (15:36 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 Oct 2018 15:36:59 +0000 (15:36 +0000)
inc/ws/Controlleur/class.ws.url.php

index 1bdb53731cfd7626ea514bd44f7a7e1bbeb98df8..8e56ff7be902d6964c882d27a4af150c13f4359b 100644 (file)
@@ -752,12 +752,17 @@ class wsUrl
                $res .= commonPage::bf();
 
                $res .= commonPage::bh();
-               $res .= cubeLang::translationForm(array(__('Version Flash') => PLAYER_SOURCES, __('Version HTML5') => WS_COMPILE_ASSETS . '/player/local', __('Compilateur HTML5') => ROOT . '/inc/ws/Util/html5', __('Application') => WS_COMPILE_ASSETS . '/_html5app'), $lang_id, null, 'liste', array(), '<a href="#" class="submit">' . $core->typo->Ajouter(__('Enregistrer')) . '</a>', $lang->traductions);
+               $res .= cubeLang::translationForm(self::getTranslationSources(), $lang_id, null, 'liste', array(), '<a href="#" class="submit">' . $core->typo->Ajouter(__('Enregistrer')) . '</a>', $lang->traductions);
                $res .= commonPage::bf();
                $res .= '</form>';
                return $res;
        }
 
+       public static function getTranslationSources()
+       {
+               return array(__('Version Flash') => PLAYER_SOURCES, __('Version HTML5') => WS_COMPILE_ASSETS . '/player/local', __('Compilateur HTML5') => ROOT . '/inc/ws/Util/html5', __('Application') => WS_COMPILE_ASSETS . '/_html5app');
+       }
+
        public static function exportLangAsExcel($args)
        {
                global $core;
@@ -825,7 +830,13 @@ class wsUrl
 
                $s->setTitle(cubeText::str2URL($lang_name));
 
-               $tab = cubeLang::getTranslationsList(array(PLAYER_SOURCES, WS_COMPILE_ASSETS . '/_html5/js', ROOT . '/inc/ws/Util/html5'), array('php', 'as', 'js'), array(), $lang->traductions);
+               $sources = [];
+               $ts = self::getTranslationSources();
+               foreach ($ts as $item) {
+                       $sources = array_merge($sources, $item);
+               }
+
+               $tab = cubeLang::getTranslationsList(self::getTranslationSources(), array('php', 'as', 'js'), array(), $lang->traductions);
 
                $s->setCellValueByColumnAndRow(0, 1, 'ID', true);
                $s->setCellValueByColumnAndRow(1, 1, $ref_name, true);