pike.git / lib / modules / Tools.pmod / Standalone.pmod / extract_locale.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/extract_locale.pike:1:   // Locale Extractor Utility   //   // By Martin Nilsson and Andreas Lange   // - // $Id: extract_locale.pike,v 1.18 2004/01/21 19:01:32 grubba Exp $ + // $Id: extract_locale.pike,v 1.19 2007/06/02 14:22:20 grubba Exp $      #pike __REAL_VERSION__      constant description = "Pike locale extractor utility";      // The arguments given to the program   mapping args = ([]);   // All the files to gather strings from   array(string) files = ({});   // All ids used, id:mapping(info)
pike.git/lib/modules/Tools.pmod/Standalone.pmod/extract_locale.pike:755:    int no_of_ids = 0;    Parser.HTML xml_parser = Parser.HTML();    xml_parser->case_insensitive_tag(1);    xml_parser->add_quote_tag("!--", lambda() {return 0;}, "--");    xml_parser->    add_tag("trans-reg",    // Check the registertag for the right project    lambda(object foo, mapping m) {    if(!m->project || m->project=="") {    werror("\n * Error: Missing project in %s\n", -  m->project, filename); +  filename);    exit(1);    }    if(args->project && m->project!=args->project)    ignoretag = 1; // Tags might be from another project    else    ignoretag = 0;    if(!args->project)    args->project = m->project;    return 0;    });
pike.git/lib/modules/Tools.pmod/Standalone.pmod/extract_locale.pike:1043:    configname = args->project+".xml";    string filename = parse_config(configname);    if(!xml_name || xml_name=="")    if(filename!="")    xml_name = filename;    else if(args->xmlpath && args->baselang)    xml_name = replace(args->xmlpath, "%L", args->baselang);       if( (!(xml_name && args->sync && args->xmlpath && args->baselang)) &&    (!sizeof(files) || args->help) ) { -  sscanf("$Revision: 1.18 $", "$"+"Revision: %s $", string v); +  sscanf("$Revision: 1.19 $", "$"+"Revision: %s $", string v);    werror("\n Locale Extractor Utility "+v+"\n\n");    werror(" Syntax: pike -x extract_locale [arguments] infile(s)\n\n");    werror(" Arguments: --project=name default: first found in infile\n");    werror(" --config=file default: [project].xml\n");    werror(" --out=file default: [project]_eng.xml\n");    werror(" --nocopy update infile instead of infile.new\n");    werror(" --notime don't include dump time in xml files\n");    werror(" --wipe remove unused ids from xml\n");    werror(" --sync synchronize all locale projects\n");    werror(" --encoding=enc default: ISO-8859-1\n");