Branch: Tag:

2001-01-29

2001-01-29 05:41:26 by Per Hedbor <ph@opera.com>

Removed the need for module_doc_locale and module_name_locale, now uses module_doc and module_name directly. Also added localization to some modules that did not have it before.

Rev: server/modules/compat/compat.pike:1.55
Rev: server/modules/compat/sqldb.pike:1.3
Rev: server/modules/database/SQLuserdb.pike:1.25
Rev: server/modules/database/sqltag.pike:1.73
Rev: server/modules/directories/directories.pike:1.91
Rev: server/modules/directories/indexfiles.pike:1.19
Rev: server/modules/examples/auth.pike:1.6
Rev: server/modules/examples/common_api.pike:1.7
Rev: server/modules/examples/fnord.pike:1.14
Rev: server/modules/examples/newstyle_fnord.pike:1.11
Rev: server/modules/filesystems/filesystem.pike:1.95
Rev: server/modules/filesystems/incoming.pike:1.14
Rev: server/modules/filesystems/restrictedfs.pike:1.18
Rev: server/modules/filesystems/secure_fs.pike:1.25
Rev: server/modules/filesystems/tarfs.pike:1.5
Rev: server/modules/filesystems/userfs.pike:1.63
Rev: server/modules/security/auth_httpbasic.pike:1.4
Rev: server/modules/security/auth_httpcookie.pike:1.4
Rev: server/modules/security/userdb_system.pike:1.3
Rev: server/modules/tags/obox.pike:1.33
Rev: server/modules/tags/rxmltags.pike:1.197
Rev: server/modules/tags/sizer.pike:1.4

1:   inherit "module";    - constant cvs_version= "$Id: tarfs.pike,v 1.4 2000/09/25 06:29:44 per Exp $"; + constant cvs_version= "$Id: tarfs.pike,v 1.5 2001/01/29 05:40:30 per Exp $";      // The Filesystem.Tar module is not threadsafe.   constant thread_safe=0;    -  + //<locale-token project="mod_targs">_</locale-token> + #define _(X,Y) _DEF_LOCALE("mod_tarfs",X,Y) + // end of the locale related stuff   #include <module.h>      constant module_type = MODULE_LOCATION; - constant module_name = "Tarfile system"; - constant module_doc = - ("This is a file system module that makes it possible to mount a " + LocaleString module_name = _(0,"Tarfile system"); + LocaleString module_doc = + _(0,"This is a file system module that makes it possible to mount a "    "directory structure from a tar-file directly on the site. gzip compressed "    "tar-files are not supported");   constant module_unique = 0;      void create()   { -  defvar( "mountpoint", "/standard/docs/", -  "Mount point", TYPE_LOCATION|VAR_INITIAL, -  "Where the module will be mounted in the site's virtual file " -  "system." ); +  defvar( "mountpoint", "/", +  _(0,"Mount point"), TYPE_LOCATION|VAR_INITIAL, +  _(0,"Where the module will be mounted in the site's virtual file " +  "system.") );       defvar("tarfile", "config_interface/docs.tar", -  "Tar file and root path", TYPE_FILE|VAR_INITIAL, -  "The tarfile, and an optional root path (syntax: /tar/file.tar:/" -  "root/dir/)" ); +  _(0,"Tar file and root path"), TYPE_FILE|VAR_INITIAL, +  _(0,"The tarfile, and an optional root path (syntax: /tar/file.tar:/" +  "root/dir/)") );   }      string mp, error_msg;
53:    return mp;   }    - array|Stat stat_file( string f, RequestID id ) + Stat stat_file( string f, RequestID id )   {    if(!tar) return 0;    object s = tar->stat( f );