Branch: Tag:

2006-03-01

2006-03-01 13:53:02 by Jonas Wallden <jonasw@roxen.com>

Post-parse any RXML tags/entities part of the output string.

Rev: server/modules/tags/translation_mod.pike:1.15

11:   constant module_name = "Tags: Translation module";   constant module_doc = "This module provides an RXML API to the Pike localization system.";   constant thread_safe = 1; - constant cvs_version = "$Id: translation_mod.pike,v 1.14 2004/06/30 16:59:27 mast Exp $"; + constant cvs_version = "$Id: translation_mod.pike,v 1.15 2006/03/01 13:53:02 jonasw Exp $";         
47:    inherit RXML.Tag;    constant name = "translate";    +  array(RXML.Type) result_types = ({ RXML.t_html(RXML.PXml) }); +     mapping(string:RXML.Type) opt_arg_types = ([    "id":RXML.t_text(RXML.PEnt),    "project":RXML.t_text(RXML.PEnt),
67:    return 0;    }    -  result = trans; -  return 0; +  return ({ trans });    }    }   }