Roxen.git / server / modules / tags / translation_mod.pike

version» Context lines:

Roxen.git/server/modules/tags/translation_mod.pike:12:   constant module_doc = "This module provides an RXML API to the Pike localization system.";         // ------------------------ The tags -------------------------      class TagTranslationRegistration {    inherit RXML.Tag;    constant name = "trans-reg";    constant flags = RXML.FLAG_EMPTY_ELEMENT;    -  mapping(string:RXML.Type) req_arg_types = ([ "project":RXML.t_text, -  "path":RXML.t_text ]); +  mapping(string:RXML.Type) req_arg_types = ([ "project":RXML.t_text(RXML.PEnt), +  "path":RXML.t_text(RXML.PEnt) ]);       class Frame {    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);
Roxen.git/server/modules/tags/translation_mod.pike:37:    result = "";    return 0;    }    }   }      class TagTranslate {    inherit RXML.Tag;    constant name = "translate";    -  mapping(string:RXML.Type) req_arg_types = ([ "id":RXML.t_text ]); -  mapping(string:RXML.Type) opt_arg_types = ([ "project":RXML.t_text, -  "variable":RXML.t_text, -  "scope":RXML.t_text ]); +  mapping(string:RXML.Type) req_arg_types = ([ "id":RXML.t_text(RXML.PEnt) ]); +  mapping(string:RXML.Type) opt_arg_types = ([ "project":RXML.t_text(RXML.PEnt), +  "variable":RXML.t_text(RXML.PEnt), +  "scope":RXML.t_text(RXML.PEnt) ]);       class Frame {    inherit RXML.Frame;       array do_return(RequestID id) {    string proj = args->project || id->misc->translation_proj;   #if constant(Locale.transtale)    string trans = Locale.translate(proj, roxen.locale->get(),    args->id,    content);