Skip to content

Commit 5287ada

Browse files
authored
Merge pull request #3843 from crazyserver/MOBILE-4362
MOBILE-4368 lang: Fix missing lang files on gulp lang override
2 parents dafce79 + 6a6189e commit 5287ada

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

gulp/task-override-lang.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class OverrideLangTask {
5252
plainid = exp.join('.');
5353
}
5454

55-
const component_slashes = component.replace('_', '/');
55+
const component_slashes = component.replace(/_/g, '/');
5656

5757
switch (type) {
5858
case 'core':
@@ -82,15 +82,15 @@ class OverrideLangTask {
8282
}
8383

8484
const paths = Object.keys(files);
85-
gulp.src(paths, { allowEmpty: true })
85+
gulp.src(paths)
8686
.pipe(slash())
87-
.pipe(through(function(destFile) {
87+
.pipe(through(function (destFile) {
8888
const oldContents = self.readFile(destFile);
8989
destFile.contents = self.jsonFile(oldContents, files[destFile.path]);
9090

9191
this.emit('data', destFile);
9292
}))
93-
.pipe(gulp.dest((data) => data.base, { overwrite: true}))
93+
.pipe(gulp.dest((data) => data.base, { overwrite: true }))
9494
.on('end', done);
9595
}
9696

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"pluginname": "Feedback comments"
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"pluginname": "Annotate PDF"
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"pluginname": "File feedback"
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"pluginname": "Submission comments"
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"pluginname": "File submissions"
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"pluginname": "Online text submissions",
33
"wordlimitexceeded": "The word limit for this assignment is {{$a.limit}} words and you are attempting to submit {{$a.count}} words. Please review your submission and try again."
4-
}
4+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"dimensionnumber": "Criterion {{$a}}",
33
"mustchooseone": "You have to select one of these items"
4-
}
4+
}

0 commit comments

Comments
 (0)