Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.35 1998/10/12 22:13:10 per Exp $ */ + /* $Id: module.pike,v 1.36 1998/11/18 04:53:48 per Exp $ */      #include <module.h>      #define TRACE_ENTER(A,B) do{if(id->misc->trace_enter)id->misc->trace_enter((A),(B));}while(0)   #define TRACE_LEAVE(A) do{if(id->misc->trace_leave)id->misc->trace_leave((A));}while(0)      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;
Roxen.git/server/base_server/module.pike:279:    variables[var][ VAR_CONFIGURABLE ] = type;    } else if(intp(not_in_config)) {    variables[var][ VAR_CONFIGURABLE ] = !not_in_config;    }       variables[var][ VAR_MISC ]=misc;    variables[var][ VAR_SHORTNAME ]= var;   }      void deflocaledoc( string locale, string variable, -  string name, string doc ) +  string name, string doc, mapping|void translate )   { -  // Locale stuff! -  // Här blir vi farliga... +     if(!Locale.Roxen[locale])    report_debug("Invalid locale: "+locale+". Ignoring.\n");    else    Locale.Roxen[locale] -  ->register_module_doc( this_object(), variable, name, doc ); +  ->register_module_doc( this_object(), variable, name, doc, translate );   }      // Convenience function, define an invissible variable, this variable   // will be saved, but it won't be vissible in the configuration interface.   void definvisvar(string name, int value, int type, array|void misc)   {    defvar(name, value, "", type, "", misc, 1);   }      string check_variable( string s, mixed value )