Branch: Tag:

2000-07-15

2000-07-15 01:06:48 by Andreas Lange <andreas@lange.cx>

Locale API change and updates

Rev: server/base_server/configuration.pike:1.322
Rev: server/base_server/global_variables.pike:1.36
Rev: server/base_server/module_support.pike:1.73
Rev: server/base_server/roxen.pike:1.508
Rev: server/config_interface/standard/cv_startpage_tabs.pike:1.14
Rev: server/config_interface/standard/event_log/log.pike:1.7
Rev: server/config_interface/standard/logutil.pike:1.9
Rev: server/config_interface/standard/sites/config_left_item.pike:1.30
Rev: server/config_interface/standard/sites/site_content.pike:1.69
Rev: server/config_interface/standard/template:1.64
Rev: server/config_interface/standard/topmenu.pike:1.7
Rev: server/etc/include/roxen.h:1.13
Rev: server/etc/modules/OldVariable.pmod:1.14
Rev: server/etc/modules/RoxenLocale.pmod/module.pmod:1.12
Rev: server/modules/configuration/config_filesystem.pike:1.38
Rev: server/modules/configuration/config_tags.pike:1.94
Rev: server/modules/configuration/config_userdb.pike:1.43
Rev: server/modules/tags/translation_mod.pike:1.3
Rev: server/translations/configs/base_server.xml:1.2(DEAD)
Rev: server/translations/configs/config_interface.xml:1.1

4:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.507 2000/07/14 20:02:48 lange Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.508 2000/07/15 01:05:42 lange Exp $";      // Used when running threaded to find out which thread is the backend thread,   // for debug purposes only.
313:   }      #ifndef THREADS - // Emultades a thread_local() object. + // Emulates a thread_local() object.   class container   {    mixed value;
339:   // ----------- Locale support ------------   //<locale-token project="config_interface">LOCALE</locale-token>    - LOCALE_PROJECT(config_interface); - #define LOCALE(X,Y) _STR_LOCALE(config_interface,X,Y) + #define LOCALE(X,Y) _STR_LOCALE("config_interface",X,Y)      string default_locale;   
400:    return 0;    }    -  mapping objects; - #if constant(Locale.get_objects) -  objects=Locale.get_objects( set ); - #else -  objects=RoxenLocale.get_objects( set ); - #endif -  -  objects->locale=set; -  locale->set(objects); +  locale->set(set);    return 1;   }   
2743:   void create()   {   #if constant(Locale.register_project) -  Locale.register_project("config_interface","translations/%L/base_server.xml"); +  Locale.register_project("config_interface", +  "translations/%L/config_interface.xml");   #else -  RoxenLocale.register_project("config_interface","translations/%L/base_server.xml"); +  RoxenLocale.register_project("config_interface", +  "translations/%L/config_interface.xml");   #endif    define_global_variables();