Branch: Tag:

2002-06-15

2002-06-15 18:31:12 by Martin Nilsson <mani@lysator.liu.se>

Removed localization.

Rev: server/config_interface/cv_startpage_tabs.pike:1.24
Rev: server/config_interface/dbs/backups.html:1.3
Rev: server/config_interface/dbs/browser.pike:1.40
Rev: server/config_interface/dbs/create_db.html:1.5
Rev: server/config_interface/dbs/create_group.html:1.4
Rev: server/config_interface/dbs/db_matrix.pike:1.20
Rev: server/config_interface/dbs/edit_group.pike:1.6
Rev: server/config_interface/dbs/import_dbs.pike:1.4
Rev: server/config_interface/dbs/index.html:1.10
Rev: server/config_interface/dbs/new_db.pike:1.11
Rev: server/config_interface/dbs/new_group.pike:1.5
Rev: server/config_interface/dbs/restore_db.pike:1.6
Rev: server/config_interface/dbs/status.html:1.3
Rev: server/config_interface/dbs/status.pike:1.9
Rev: server/config_interface/dbs/subtabs.pike:1.14
Rev: server/config_interface/diff.pike:1.4
Rev: server/config_interface/event_log/clear_log.pike:1.7
Rev: server/config_interface/event_log/log.pike:1.12
Rev: server/config_interface/global_settings/index.html:1.26
Rev: server/config_interface/logutil.pike:1.16
Rev: server/config_interface/sites/add_module.pike:1.69
Rev: server/config_interface/sites/config_left_item.pike:1.61
Rev: server/config_interface/sites/create_site.pike:1.10
Rev: server/config_interface/sites/drop_module.pike:1.16
Rev: server/config_interface/sites/drop_site.html:1.12
Rev: server/config_interface/sites/drop_site.pike:1.20
Rev: server/config_interface/sites/index.html:1.38
Rev: server/config_interface/sites/log.pike:1.12
Rev: server/config_interface/sites/new_site.html:1.19
Rev: server/config_interface/sites/site.html:1.26
Rev: server/config_interface/sites/site_content.pike:1.135
Rev: server/config_interface/sites/site_header.pike:1.22
Rev: server/config_interface/statusinfo.pike:1.6
Rev: server/config_interface/tasks/index.html:1.15
Rev: server/config_interface/template:1.112
Rev: server/config_interface/topmenu.pike:1.25
Rev: server/config_interface/user_delete.pike:1.9
Rev: server/config_interface/user_form.pike:1.7
Rev: server/config_interface/users.html:1.26
Rev: server/modules/configuration/config_filesystem.pike:1.112
Rev: server/modules/configuration/config_tags.pike:1.178
Rev: server/site_templates/common.pike:1.26

1:   #include <config_interface.h>   #include <module.h>   #include <module_constants.h> - #include <roxen.h> +       int no_reload()   {
9:    return 1; // Reloading this script now would destroy state.   }    - //<locale-token project="roxen_config">LOCALE</locale-token> - #define LOCALE(X,Y) _STR_LOCALE("roxen_config",X,Y) -  +    // Class is the name of the directory.   array(string) class_description( string d, RequestID id )   {
83:    "<p>\n</if>%s\n</p>\n"    "</st-page></subtablist></td></tr></table>"    "</cv-split></content></tmpl>", -  LOCALE(258,"Add module"), +  "Add module",    noform?" noform='noform'":"", -  LOCALE(272,"Reload module list"), -  LOCALE(202,"Cancel"), content ); +  "Reload module list", +  "Cancel", content );   }      
178:    "errors_and_warnings'> %s </gbutton>", \    random(4711111), \    (X), \ -  LOCALE(253, "Reload")) +  "Reload")       if( !header_added++ )    da_string +=
349:    Roxen.html_encode_string (module->sname),    (image?module_image(module->type):""),    module->sname, -  LOCALE(251, "Add Module"), +  "Add Module",    module->get_description(), -  LOCALE(266, "Will be loaded from: ")+module->filename +  "Will be loaded from: "+module->filename   );    } else {    if( block == module )
372:    header+=("<a name="+Roxen.http_encode_string(c)+    "></a><gbutton "    "href='add_module.pike?config=&form.config;" -  "#"+Roxen.http_encode_string(c)+"' > "+ -  LOCALE(168, "Hide")+" </gbutton>"); +  "#"+Roxen.http_encode_string(c)+"' > Hide </gbutton>");    x=1;    }    else
381:    "></a><gbutton "    "href='add_module.pike?config=&form.config;"    "&unfolded="+Roxen.http_encode_string(c)+ -  "#"+Roxen.http_encode_string(c)+"' > "+ -  LOCALE(267, "View")+" </gbutton>"); +  "#"+Roxen.http_encode_string(c)+"' > View </gbutton>");       header+=("</td><td width='100%'>"    "<font color='&usr.content-titlefg;' size='+2'>"+c+"</font>"
429:    //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 +  "Will be loaded from: "+module->filename    );    } else {    if( block == module )
447:       if( id->variables->unfolded == c ) {    header+=("<a name="+Roxen.http_encode_string(c)+ -  "></a><gbutton dim='1'> "+LOCALE(267, "View")+" </gbutton>" -  "<tr><td><submit-gbutton> "+LOCALE(251, "Add Module")+ +  "></a><gbutton dim='1'> View </gbutton>" +  "<tr><td><submit-gbutton> Add Module"    " </submit-gbutton></td></tr>");    x=1;    }
457:    "></a><gbutton "    "href='add_module.pike?config=&form.config;"    "&unfolded="+Roxen.http_encode_string(c)+ -  "#"+Roxen.http_encode_string(c)+"' > "+ -  LOCALE(267, "View")+" </gbutton>"); +  "#"+Roxen.http_encode_string(c)+"' > View </gbutton>");       header+=("</td><td width='100%'>"    "<font color='&usr.content-titlefg;' size='+2'>"+c+"</font>"
486:   {    string res="";    if(first++) -  res = "</select><br /><submit-gbutton> "+LOCALE(251, "Add Module")+" </submit-gbutton> "; +  res = "</select><br /><submit-gbutton> Add Module </submit-gbutton> ";    res += "<p><a name="+Roxen.http_encode_string(c)+    "></a><font size='+2'>"+c+"</font><br />"+d+"<p><select multiple name='module_to_add'>";    return ({ 1, res });
516:    "<form action='add_module.pike' method='POST'>"    "<input type='hidden' name='config' value='&form.config;'>"+    desc+"</select><br /><submit-gbutton> " -  +LOCALE(251, "Add Module")+" </submit-gbutton><p>" +  "Add Module </submit-gbutton><p>"    +err+"</form>",    );   }
557:    License.Key license_key = conf->getvar("license")->get_key();    array(RoxenModule) locked_modules = ({});    -  if( (r = class_visible_compact( LOCALE(258,"Add module"), -  LOCALE(273,"Select one or several modules to add.") +  if( (r = class_visible_compact( "Add module", +  "Select one or several modules to add."    , id )) && r[0] ) {    res += r[1];    foreach(mods, object q) {
583:    "<form action=\"add_module.pike\" method=\"post\">"    "<input type=\"hidden\" name=\"config\" value=\"&form.config;\" />"+    res+"</select><br /><submit-gbutton> " -  +LOCALE(251, "Add Module")+" </submit-gbutton><br />" +  "Add Module </submit-gbutton><br />"    +pafeaw(ec->get(),ec->get_warnings(),    locked_modules)+"</form>",    );
617:    {    num++;    res += "<tr><td colspan='3'><h2>" -  +LOCALE(1,"Initial variables for ")+ +  "Initial variables for "+    //Roxen.html_encode_string(strip_leading(mi->get_name()))    Roxen.html_encode_string(mi->get_name())    +"</h2></td></tr>"
656:    RoxenModule mm = conf->enable_module( mod,0,0,1 );    if( !mm || !conf->otomod[mm] )    { -  report_error(LOCALE(382,"Failed to enable %s")+"\n"); +  report_error("Failed to enable %s\n", mod);    return Roxen.http_redirect( site_url(id,conf->name), id );    }    conf->call_low_start_callbacks( mm,
720:   mixed parse( RequestID id )   {    if( !config_perm( "Add Module" ) ) -  return LOCALE(226, "Permission denied"); +  return "Permission denied";       if( id->variables->module_to_add )    return do_it( id );
734:    }       if( !config_perm( "Site:"+conf->name ) ) -  return LOCALE(226,"Permission denied"); +  return "Permission denied";       if( !conf->inited )    conf->enable_all_modules();       return this_object()["page_"+replace(config_setting( "addmodulemethod" )," ","_")]( id );   }