Changeset 5838 in spip-zone


Ignore:
Timestamp:
Oct 2, 2006, 5:12:16 PM (15 years ago)
Author:
renato@…
Message:

Now multi language forms can be created.
A global language menu will switch all the fields values to the selected language.
More per field menus do the same at field level.
A field can be edited on all languages before submitting the changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/forms/1_9_1/forms_filtres.php

    r5837 r5838  
    6565        function Forms_header_prive($flux){
    6666                $flux .=        "<link rel='stylesheet' href='".find_in_path('spip_forms.css')."' type='text/css' media='all' />\n";
    67                 $active_langs = "'".str_replace(",","','",$GLOBALS['meta']['langues_proposees'])."'";
     67                if($GLOBALS['meta']['multi_rubriques']=="oui" || $GLOBALS['meta']['multi_articles']=="oui")
     68                        $active_langs = "'".str_replace(",","','",$GLOBALS['meta']['langues_proposees'])."'";
     69                else
     70                        $active_langs = $GLOBALS["spip_lang"];
    6871                $flux .= "<script src='".find_in_path('forms_lang.js')."' type='text/javascript'></script>\n".
    6972                "<script type='text/javascript'>\n".
Note: See TracChangeset for help on using the changeset viewer.