Skip to content

Commit b55f831

Browse files
authored
assignsubmission_collabora: add simple multi lang support (#7)
1 parent de22970 commit b55f831

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cache:
88
- $HOME/.npm
99

1010
addons:
11-
postgresql: "9.5"
11+
postgresql: "9.6"
1212

1313
services:
1414
- mysql

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ moodle-assignsubmission_collabora
44
Changes
55
-------
66

7+
### v3.9-r4
8+
9+
* 2020-10-03 - add simple multi lang support (#7)
10+
711
### v3.9-r1
812

913
* 2020-06-24 - updated version.php, CHANGES.md & README.md

locallib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ public function get_view_url(stdClass $submission, stored_file $submissionfile,
228228

229229
$params = http_build_query(array(
230230
'WOPISrc' => $callbackurl->out(),
231-
'access_token' => $usertoken
231+
'access_token' => $usertoken,
232+
'lang' => collabora::get_collabora_lang(),
232233
));
233234

234235
$viewurl = $collaboraurl . $params;

tests/test-collabora.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
$getfileinfolink = $wopisrc ."?$callbackparam";
8383
$params = http_build_query(array(
8484
'WOPISrc' => $wopisrc,
85-
'access_token' => $userid
85+
'access_token' => $userid,
86+
'lang' => \mod_collabora\collabora::get_collabora_lang(),
8687
));
8788
$doccollaboraurl = $urlsrc . $params;
8889
break;

version.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424
defined ( 'MOODLE_INTERNAL' ) || die ();
2525

26-
$plugin->version = 2020062400;
26+
$plugin->version = 2020092900;
2727
$plugin->requires = 2018051700; // M3.5.
2828
$plugin->component = 'assignsubmission_collabora';
29-
$plugin->dependencies = array('mod_collabora' => 2019042800);
30-
$plugin->release = 'v3.9-r1';
29+
$plugin->dependencies = array('mod_collabora' => 2020092900);
30+
$plugin->release = 'v3.9-r4';
3131
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)