From b150470eb60017b4ccdf56351428f9452a207fc8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Jan 2016 01:57:34 +0100 Subject: [PATCH] comment --- extension/pogen/pogen.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extension/pogen/pogen.ts b/extension/pogen/pogen.ts index 6d2977ad8..47617b04c 100644 --- 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. */ /// @@ -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);