commit b150470eb60017b4ccdf56351428f9452a207fc8
parent 5caa4f45b28af712bd86f5381c0ab4ac4abb372f
Author: Florian Dold <florian.dold@gmail.com>
Date: Wed, 27 Jan 2016 01:57:34 +0100
comment
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/extension/pogen/pogen.ts b/extension/pogen/pogen.ts
@@ -17,6 +17,9 @@
/**
* Generate .po file from list of source files.
+ *
+ * Note that duplicate message IDs are NOT merged, to get the same output as
+ * you would from xgettext, just run msguniq.
*/
/// <reference path="../lib/decl/node.d.ts" />
@@ -79,7 +82,7 @@ export function processFile(sourceFile: ts.SourceFile) {
}
let candidate = lastComments[lastComments.length-1];
let candidateEndLine = ts.getLineAndCharacterOfPosition(sourceFile, candidate.end).line;
- if (candidateEndLine != lc.line -1) {
+ if (candidateEndLine != lc.line - 1) {
return;
}
let text = sourceFile.text.slice(candidate.pos, candidate.end);