$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;
$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);