Branch: Tag:

2002-01-28

2002-01-28 18:23:37 by Martin Stjernholm <mast@lysator.liu.se>

Do not strip the part before ':' from module names. Some modules have
names like "FooBar: Main Module" where it's the first part that
actually tells something. Also, these name prefixes are fairly often
independent from the INFO file classifications.

Rev: server/config_interface/sites/add_module.pike:1.65

320:    </td>    </tr>   ", -  Roxen.html_encode_string(strip_leading(module->get_name())), +  //Roxen.html_encode_string(strip_leading(module->get_name())), +  Roxen.html_encode_string(module->get_name()),    Roxen.html_encode_string (module->sname),    (image?module_image(module->type):""),    module->sname,
396:    </td><td valign='top'>%s<p>%s</p></td>    </tr>   ", -  Roxen.html_encode_string(strip_leading(module->get_name())), +  //Roxen.html_encode_string(strip_leading(module->get_name())), +  Roxen.html_encode_string(module->get_name()),    Roxen.html_encode_string (module->sname),    module_image(module->type),    module->sname, -  Roxen.html_encode_string(strip_leading(module->get_name())), +  //Roxen.html_encode_string(strip_leading(module->get_name())), +  Roxen.html_encode_string(module->get_name()),    module->get_description(),    LOCALE(266, "Will be loaded from: ")+module->filename    );
468:   string describe_module_compact( object module, object block )   {    if(!block) { -  string modname = strip_leading (module->get_name()); +  //string modname = strip_leading (module->get_name()); +  string modname = module->get_name();    return "<option value='"+module->sname+"'>"+    Roxen.html_encode_string(    modname + "\0240" * max (0, (int) ((40 - sizeof (modname)) * 1.4)) +
520:       sort(map(mods->get_name(), lambda(LocaleString in) {    in = lower_case((string)in); -  sscanf(in, "%*s: %s", in); +  //sscanf(in, "%*s: %s", in);    return in;    }), mods);    string res = "";
581:    num++;    res += "<tr><td colspan='3'><h2>"    +LOCALE(1,"Initial variables for ")+ -  Roxen.html_encode_string(strip_leading(mi->get_name())) +  //Roxen.html_encode_string(strip_leading(mi->get_name())) +  Roxen.html_encode_string(mi->get_name())    +"</h2></td></tr>"    "<emit source='module-variables' "    " configuration=\""+conf->name+"\""