X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FPacker.js;fp=JSDOC%2FPacker.js;h=851a45ad97df553c9de873cbf19620ba01c0c2c1;hb=d4d0b1f7dc259c71f587595e471bcf1cf228189d;hp=d177630daf80473fc59613f146461e170908480d;hpb=e85755d71fd77419bc0de7201ce4ab7a6af85485;p=gnome.introspection-doc-generator diff --git a/JSDOC/Packer.js b/JSDOC/Packer.js index d177630..851a45a 100644 --- a/JSDOC/Packer.js +++ b/JSDOC/Packer.js @@ -446,19 +446,24 @@ Packer.prototype = { * -> this file will need inserting at the start of the application.... * -> we need to generate 2 files, * -> a reference used to do the translation, and the _T file.. + * + * + * We store the trsum on the token... * */ writeTranslateFile : function(fn, minfile, toks) { - var map = {}; + var map = {}; // 'string=> md5sum' var _this = this; toks.forEach(function (t) { if (t.type == 'STRN' && t.name == 'DOUBLE_QUOTE') { var sval = t.data.substring(1,t.data.length-1); var ffn = fn.substring(_this.prefix.length); - map[sval] = _this.md5(ffn + '-' + sval); + + t.trsum = _this.md5(ffn + '-' + sval); + map[sval] = t.trsum; } })