Branch: Tag:

2000-11-20

2000-11-20 13:36:37 by Per Hedbor <ph@opera.com>

Misc locale fixes

Rev: server/base_server/basic_defvar.pike:1.21
Rev: server/base_server/config_userdb.pike:1.10
Rev: server/base_server/configuration.pike:1.397
Rev: server/base_server/global_variables.pike:1.50
Rev: server/base_server/module.pike:1.101
Rev: server/base_server/module_support.pike:1.80
Rev: server/base_server/roxen.pike:1.576
Rev: server/config_interface/standard/sites/drop_site.pike:1.12
Rev: server/config_interface/standard/sites/site_content.pike:1.102
Rev: server/etc/include/module.h:1.44
Rev: server/etc/include/roxen.h:1.19
Rev: server/etc/modules/Variable.pmod/Date.pike:1.3
Rev: server/etc/modules/Variable.pmod/Email.pike:1.7
Rev: server/etc/modules/Variable.pmod/Image.pike:1.3
Rev: server/etc/modules/Variable.pmod/Upload.pike:1.3
Rev: server/etc/modules/Variable.pmod/VerifiedString.pike:1.4
Rev: server/etc/modules/Variable.pmod/module.pmod:1.36
Rev: server/modules/configuration/config_filesystem.pike:1.64
Rev: server/modules/configuration/config_userdb.pike:1.58
Rev: server/modules/configuration/update.pike:1.26
Rev: server/modules/tags/obox.pike:1.31
Rev: server/protocols/prot_hilfe.pike:2.2

1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: global_variables.pike,v 1.49 2000/11/17 23:23:19 nilsson Exp $ + // $Id: global_variables.pike,v 1.50 2000/11/20 13:36:33 per Exp $      /*   #pragma strict_types   */ - #define DEFVAR string,int|string,string|mapping,int,string|mapping(string:string),void|array(string),void|function:void - #define BDEFVAR string,int|string,string|mapping,int,string|mapping(string:string),void|array(string),void|mapping(string:mapping(string:string)):void + #define DEFVAR mixed...:object + // string,int|string,string|object|mapping,int,string|object|mapping(string:string),mixed,void|function:object + #define BDEFVAR mixed...:object + //string,int|string,string|object|mapping,int,string|object|mapping(string:string),void|array(string),void|mapping(string:mapping(string:string)):object    -  + #define IN_ROXEN   #include <module.h> - #include <roxen.h> - #include <config.h> +    inherit "read_config";   inherit "basic_defvar";   #include <version.h>      //<locale-token project="roxen_config">LOCALE</locale-token> - static inline string GETLOCLANG() { -  return roxenp()->locale->get(); - } +    #define LOCALE(X,Y) _DEF_LOCALE("roxen_config",X,Y)      mixed save()
45:    function(DEFVAR) defvar = [function(DEFVAR)] o->defvar;       defvar( "require_auth", 1, -  LOCALE(0,"Require user with the 'hilfe' permission"), TYPE_FLAG, -  LOCALE(0,"If yes, require a user with the hilfe permission " +  LOCALE(309,"Require user with the 'hilfe' permission"), TYPE_FLAG, +  LOCALE(310,"If yes, require a user with the hilfe permission "    "set, otherwise, any configuration interface user will "    "work, even one with only the view settings permission" ) );   }