From 2ba16774404d5e0671b26b5db8a39ae8590de195 Mon Sep 17 00:00:00 2001 From: Chris Hokamp Date: Wed, 8 Feb 2017 18:36:59 +0000 Subject: [PATCH] added whitespace to bottom of project, bugfixes for indexing into qe scores --- .../documents/qe_score_experiment_config.json | 400 +++++++----------- app/scripts/editArea/editArea.js | 12 +- .../editArea/segmentArea/segmentArea.js | 1 + app/scripts/navigation/catNav.html | 12 +- app/scripts/navigation/catNav.js | 8 + app/views/translate.html | 6 +- 6 files changed, 187 insertions(+), 252 deletions(-) diff --git a/app/data/qe_score_experiments/documents/qe_score_experiment_config.json b/app/data/qe_score_experiments/documents/qe_score_experiment_config.json index 6fb0b9a..0d18207 100644 --- a/app/data/qe_score_experiments/documents/qe_score_experiment_config.json +++ b/app/data/qe_score_experiments/documents/qe_score_experiment_config.json @@ -4,7 +4,7 @@ "sampleFiles": [ { "name": "Translator 1: task: 0 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -20,12 +20,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 1: task: 1 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -41,12 +40,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 1: task: 2 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -62,12 +60,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 1: task: 3 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -83,8 +80,7 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ3" + } } ] }, @@ -93,7 +89,7 @@ "sampleFiles": [ { "name": "Translator 2: task: 0 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -109,12 +105,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 2: task: 1 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -130,12 +125,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 2: task: 2 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -151,12 +145,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 2: task: 3 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -172,8 +165,7 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ0" + } } ] }, @@ -182,7 +174,7 @@ "sampleFiles": [ { "name": "Translator 3: task: 0 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -198,12 +190,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 3: task: 1 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -219,12 +210,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 3: task: 2 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -240,12 +230,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 3: task: 3 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -261,8 +250,7 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ1" + } } ] }, @@ -271,7 +259,7 @@ "sampleFiles": [ { "name": "Translator 4: task: 0 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -287,12 +275,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 4: task: 1 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -308,12 +295,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 4: task: 2 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -329,12 +315,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 4: task: 3 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -350,8 +335,7 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ2" + } } ] }, @@ -360,7 +344,7 @@ "sampleFiles": [ { "name": "Translator 5: task: 0 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -376,12 +360,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 5: task: 1 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -397,12 +380,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 5: task: 2 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -418,12 +400,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 5: task: 3 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -439,8 +420,7 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ0" + } } ] }, @@ -449,7 +429,7 @@ "sampleFiles": [ { "name": "Translator 6: task: 0 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -465,12 +445,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 6: task: 1 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -486,12 +465,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 6: task: 2 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -507,12 +485,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 6: task: 3 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -528,8 +505,7 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ3" + } } ] }, @@ -538,7 +514,7 @@ "sampleFiles": [ { "name": "Translator 7: task: 0 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -554,12 +530,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 7: task: 1 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -575,12 +550,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 7: task: 2 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -596,12 +570,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 7: task: 3 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -617,8 +590,7 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ0" + } } ] }, @@ -627,7 +599,7 @@ "sampleFiles": [ { "name": "Translator 8: task: 0 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -643,12 +615,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 8: task: 1 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -664,12 +635,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 8: task: 2 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -685,12 +655,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 8: task: 3 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -706,8 +675,7 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ1" + } } ] }, @@ -716,7 +684,7 @@ "sampleFiles": [ { "name": "Translator 9: task: 0 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -732,12 +700,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 9: task: 1 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -753,12 +720,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 9: task: 2 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -774,12 +740,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 9: task: 3 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -795,8 +760,7 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ2" + } } ] }, @@ -805,7 +769,7 @@ "sampleFiles": [ { "name": "Translator 10: task: 0 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -821,12 +785,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 10: task: 1 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -842,12 +805,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 10: task: 2 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -863,12 +825,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 10: task: 3 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -884,8 +845,7 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ1" + } } ] }, @@ -894,7 +854,7 @@ "sampleFiles": [ { "name": "Translator 11: task: 0 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -910,12 +870,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 11: task: 1 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -931,12 +890,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 11: task: 2 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -952,12 +910,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 11: task: 3 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -973,8 +930,7 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ3" + } } ] }, @@ -983,7 +939,7 @@ "sampleFiles": [ { "name": "Translator 12: task: 0 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -999,12 +955,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 12: task: 1 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1020,12 +975,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 12: task: 2 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1041,12 +995,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 12: task: 3 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1062,8 +1015,7 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ0" + } } ] }, @@ -1072,7 +1024,7 @@ "sampleFiles": [ { "name": "Translator 13: task: 0 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1088,12 +1040,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 13: task: 1 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1109,12 +1060,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 13: task: 2 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1130,12 +1080,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 13: task: 3 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1151,8 +1100,7 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ1" + } } ] }, @@ -1161,7 +1109,7 @@ "sampleFiles": [ { "name": "Translator 14: task: 0 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1177,12 +1125,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 14: task: 1 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1198,12 +1145,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 14: task: 2 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1219,12 +1165,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 14: task: 3 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1240,8 +1185,7 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ2" + } } ] }, @@ -1250,7 +1194,7 @@ "sampleFiles": [ { "name": "Translator 15: task: 0 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1266,12 +1210,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 15: task: 1 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1287,12 +1230,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 15: task: 2 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1308,12 +1250,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 15: task: 3 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1329,8 +1270,7 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ3" + } } ] }, @@ -1339,7 +1279,7 @@ "sampleFiles": [ { "name": "Translator 16: task: 0 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1355,12 +1295,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 16: task: 1 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1376,12 +1315,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 16: task: 2 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1397,12 +1335,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 16: task: 3 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1418,8 +1355,7 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ3" + } } ] }, @@ -1428,7 +1364,7 @@ "sampleFiles": [ { "name": "Translator 17: task: 0 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1444,12 +1380,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 17: task: 1 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1465,12 +1400,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 17: task: 2 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1486,12 +1420,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 17: task: 3 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1507,8 +1440,7 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ0" + } } ] }, @@ -1517,7 +1449,7 @@ "sampleFiles": [ { "name": "Translator 18: task: 0 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1533,12 +1465,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 18: task: 1 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1554,12 +1485,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 18: task: 2 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1575,12 +1505,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 18: task: 3 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1596,8 +1525,7 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ1" + } } ] }, @@ -1606,7 +1534,7 @@ "sampleFiles": [ { "name": "Translator 19: task: 0 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1622,12 +1550,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 19: task: 1 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1643,12 +1570,11 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ0" + } }, { "name": "Translator 19: task: 2 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1664,12 +1590,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 19: task: 3 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1685,8 +1610,7 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ2" + } } ] }, @@ -1695,7 +1619,7 @@ "sampleFiles": [ { "name": "Translator 20: task: 0 project name: PRJ1", - "internalName": "", + "internalName": "PRJ1", "url": "data/qe_score_experiments/documents/PRJ1.xliff", "configuration": { "target": { @@ -1711,12 +1635,11 @@ "qeScoreConfig": { "scoreIndex": 0 } - }, - "internal_name": "PRJ1" + } }, { "name": "Translator 20: task: 1 project name: PRJ2", - "internalName": "", + "internalName": "PRJ2", "url": "data/qe_score_experiments/documents/PRJ2.xliff", "configuration": { "target": { @@ -1732,12 +1655,11 @@ "qeScoreConfig": { "scoreIndex": 1 } - }, - "internal_name": "PRJ2" + } }, { "name": "Translator 20: task: 2 project name: PRJ3", - "internalName": "", + "internalName": "PRJ3", "url": "data/qe_score_experiments/documents/PRJ3.xliff", "configuration": { "target": { @@ -1753,12 +1675,11 @@ "qeScoreConfig": { "scoreIndex": 2 } - }, - "internal_name": "PRJ3" + } }, { "name": "Translator 20: task: 3 project name: PRJ0", - "internalName": "", + "internalName": "PRJ0", "url": "data/qe_score_experiments/documents/PRJ0.xliff", "configuration": { "target": { @@ -1774,8 +1695,7 @@ "qeScoreConfig": { "scoreIndex": 3 } - }, - "internal_name": "PRJ0" + } } ] } diff --git a/app/scripts/editArea/editArea.js b/app/scripts/editArea/editArea.js index d0b738e..85923c5 100644 --- a/app/scripts/editArea/editArea.js +++ b/app/scripts/editArea/editArea.js @@ -27,8 +27,9 @@ angular.module('controllers').controller('EditAreaCtrl', ['$scope', '$location', projectId: $stateParams.projectId }, function(projectResource) { $scope.projectResource = projectResource; - // hack $state.current to expose the project resource to the rest of the app - $state.current.projectResource = projectResource; + + // hack rootScope to expose the project resource to the rest of the app + // $rootScope.projectResource = projectResource; XliffParser.parseXML(projectResource.content).then( function(documentObj) { @@ -185,15 +186,16 @@ angular.module('controllers').controller('EditAreaCtrl', ['$scope', '$location', saveAs(blob, "edit-log.json"); }; + // remember that this is available + //$mdBottomSheet.hide(clickedItem); + $scope.bottomItems = [ {name: 'Log', icon: 'ion-ios7-cloud-download', action: $scope.saveJSON}, {name: 'Xliff', icon: 'ion-ios7-cloud-download', action: $scope.saveXliff}, {name: 'Text', icon: 'ion-ios7-cloud-download-outline', action: $scope.saveTarget}, - {name: 'Projects', icon: 'ion-ios7-arrow-back'}, + {name: 'Projects', icon: 'ion-ios7-arrow-back', action: function() {$state.go('projects.list'); $mdBottomSheet.hide()}}, ]; - // remember that this is available - //$mdBottomSheet.hide(clickedItem); } } diff --git a/app/scripts/editArea/segmentArea/segmentArea.js b/app/scripts/editArea/segmentArea/segmentArea.js index 02c1c62..5ab226e 100644 --- a/app/scripts/editArea/segmentArea/segmentArea.js +++ b/app/scripts/editArea/segmentArea/segmentArea.js @@ -74,6 +74,7 @@ angular.module('controllers') } else { qeScoreIdx = -1 } + $scope.segment.qeScoreIdx = qeScoreIdx; if (qeScoreIdx >= 0) { $scope.segment.qeScore = $scope.configuration['tsvData'][parseInt($scope.id.index)][qeScoreIdx]; diff --git a/app/scripts/navigation/catNav.html b/app/scripts/navigation/catNav.html index 7aee850..b1da16b 100644 --- a/app/scripts/navigation/catNav.html +++ b/app/scripts/navigation/catNav.html @@ -46,12 +46,12 @@ -
- {{$state.current.projectResource.name}} -
+ + + + + +
diff --git a/app/scripts/navigation/catNav.js b/app/scripts/navigation/catNav.js index 67bd2cf..ed3b557 100644 --- a/app/scripts/navigation/catNav.js +++ b/app/scripts/navigation/catNav.js @@ -7,6 +7,14 @@ angular.module('directives').directive('catNav', ['Logger', 'Auth', '$location', link: function($scope,el){ $log.log('inside cat tool navigation directive'); + // $scope.$watch(function() { + // return $rootScope.projectResource; + // }, function(projectResource) { + // if (projectResource) { + // $scope.projectName = projectResource.name; + // } + // }); + $scope.outputLog = function () { Logger.exportJSON(); } diff --git a/app/views/translate.html b/app/views/translate.html index a9628cf..958ceac 100644 --- a/app/views/translate.html +++ b/app/views/translate.html @@ -77,7 +77,7 @@

Project Loading...

{{segment.qeScore}}
@@ -177,6 +177,10 @@

Project Loading...

+ + +
+