diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-01-27 01:57:34 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-01-27 01:57:34 +0100 |
commit | b150470eb60017b4ccdf56351428f9452a207fc8 (patch) | |
tree | 73b51fde0a0e2ae6daf9ccc72ea760c81c609332 | |
parent | 5caa4f45b28af712bd86f5381c0ab4ac4abb372f (diff) |
comment
-rw-r--r-- | extension/pogen/pogen.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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. */ /// <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); |