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.19 2007/06/02 14:22:20 grubba Exp $ + // $Id: extract_locale.pike,v 1.20 2008/06/20 16:24:19 srb 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: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.19 $", "$"+"Revision: %s $", string v); -  werror("\n Locale Extractor Utility "+v+"\n\n"); +  werror("\n Locale Extractor Utility %d.%d.%d\n\n", +  (int)__REAL_VERSION__,__REAL_MINOR__,__REAL_BUILD__);    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");    werror(" --verbose more informative text in xml\n");