aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-18 12:30:45 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-18 12:30:45 -0700
commita306d731181e27ebec12b3aad6edcb69b3f166f2 (patch)
tree599bc36d9d357246b07662dac068fc0b78d80c57 /ext/bg/js/translator.js
parent85015b17766c7279d9efbbcd1dff2e1776bc0da2 (diff)
Revert "Fixing certain definitions not showing up"
This reverts commit 85015b17766c7279d9efbbcd1dff2e1776bc0da2.
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index c2b92357..1c397780 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -151,10 +151,9 @@ class Translator {
return definitions;
}
- processTerm(groups, source, tags, rules=[], root) {
+ processTerm(groups, source, tags, rules=[], root='') {
for (const entry of this.dictionary.findTerm(root)) {
- const groupId = `${source}_${entry.id}`;
- if (groupId in groups) {
+ if (entry.id in groups) {
continue;
}
@@ -209,7 +208,7 @@ class Translator {
});
if (matched) {
- groups[groupId] = {
+ groups[entry.id] = {
expression: entry.expression,
reading: entry.reading,
glossary: entry.glossary,