aboutsummaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/pogen/pogen.ts5
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);