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

26:    inherit RXML.Frame;       array do_return(RequestID id) { +  if(args->path && args->path!="") {   #if constant(Locale.register_project)    Locale.register_project(args->project, args->path);   #else    RoxenLocale.register_project(args->project, args->path);   #endif -  +  }    id->misc->translation_proj=args->project;    result = "";    return 0;
53:    array do_return(RequestID id) {    string proj = args->project || id->misc->translation_proj;   #if constant(Locale.transtale) -  string trans = Locale.translate(roxen.locale->get()[proj], +  string trans = Locale.translate(proj, roxen.locale->get(),    args->id,    content);   #else -  string trans = RoxenLocale.translate(roxen.locale->get()[proj], +  string trans = RoxenLocale.translate(proj, roxen.locale->get(),    args->id,    content);   #endif