Branch: Tag:

2000-11-24

2000-11-24 16:50:38 by Per Hedbor <ph@opera.com>

Locale galore

Rev: server/base_server/basic_defvar.pike:1.22
Rev: server/base_server/config_userdb.pike:1.12
Rev: server/base_server/global_variables.pike:1.51
Rev: server/base_server/module_support.pike:1.83
Rev: server/base_server/roxenlib.pike:1.206
Rev: server/base_server/roxenloader.pike:1.215
Rev: server/base_server/rxml.pike:1.261
Rev: server/config_interface/standard/sites/config_left_item.pike:1.46
Rev: server/etc/include/roxen.h:1.22
Rev: server/etc/modules/Variable.pmod/module.pmod:1.37
Rev: server/modules/compat/compat.pike:1.54
Rev: server/modules/configuration/config_tags.pike:1.127
Rev: server/modules/database/SQLuserdb.pike:1.22
Rev: server/modules/database/sqldb.pike:1.11
Rev: server/modules/database/sqltag.pike:1.66
Rev: server/modules/directories/directories.pike:1.86
Rev: server/modules/directories/indexfiles.pike:1.17
Rev: server/modules/examples/auth.pike:1.3
Rev: server/modules/examples/common_api.pike:1.4
Rev: server/modules/examples/fnord.pike:1.12
Rev: server/modules/examples/newstyle_fnord.pike:1.9
Rev: server/modules/filesystems/filesystem.pike:1.90
Rev: server/modules/tags/obox.pike:1.32

8:   // See fnord.pike for more information of what this tag does.      // This variable is shown in the configinterface as the version of the module. - constant cvs_version = "$Id: newstyle_fnord.pike,v 1.8 2000/09/10 16:42:10 nilsson Exp $"; + constant cvs_version = "$Id: newstyle_fnord.pike,v 1.9 2000/11/24 16:50:37 per Exp $";      // Tell Roxen that this module is threadsafe.   constant thread_safe=1;
17:   inherit "module";       + // moduke.h must be included to use the LOCALE macro below. + #include <module.h> + // Some defines for the translation system + // + //<locale-token project="mod_fnord">LOCALE</locale-token> + #define LOCALE(X,Y) _DEF_LOCALE("mod_fnord",X,Y) + // end of the locale related stuff +  +    // Define the fnord tag class. It must begin with "Tag".   class TagFnord {    inherit RXML.Tag;
64:   // Some constants to register the module in the RXML parser.      constant module_type = MODULE_TAG; - constant module_name = "Newstyle Fnord!"; - constant module_doc = "Adds an extra container tag, &lt;fnord&gt; that's supposed to make " -  "things invisible unless the \"fnord\" prestate is present." + LocaleString module_name_locale = LOCALE(0,"Newstyle Fnord!"); + LocaleString module_doc_locale = +  LOCALE(0,"Adds an extra container tag, &lt;fnord&gt; that's supposed " +  "to make things invisible unless the \"fnord\" prestate is present."    "<p>This module is here as an example of how to write a " -  "very simple newstyle RXML-parsing module.</p>"; +  "very simple newstyle RXML-parsing module.</p>");      // Last, but not least, we want a documentation that can be integrated in the   // online manual. The mapping tagdoc maps from container names to it's description.