Skip to content

Commit

Permalink
Update translation overrides path to use absolute directory in NL, EN…
Browse files Browse the repository at this point in the history
…, and PT files
  • Loading branch information
parijke committed Apr 23, 2024
1 parent efb0195 commit fea082e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion translations/messages.en.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$overrides = [];
$overridesFile = '../config/openconext/translationoverrides/overrides.en.php';
$overridesFile = __DIR__ . '/../config/openconext/translationoverrides/overrides.en.php';
if (file_exists($overridesFile)) {
$overrides = require $overridesFile;
}
Expand Down
4 changes: 3 additions & 1 deletion translations/messages.nl.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

$overrides = [];
$overridesFile = '../config/openconext/translationoverrides/overrides.nl.php';
$overridesFile = __DIR__ . '/../config/openconext/translationoverrides/overrides.nl.php';

//dd($overridesFile);
if (file_exists($overridesFile)) {
$overrides = require $overridesFile;
}
Expand Down
2 changes: 1 addition & 1 deletion translations/messages.pt.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$overrides = [];
$overridesFile = '../config/openconext/translationoverrides/overrides.pt.php';
$overridesFile = __DIR__ . '/../config/openconext/translationoverrides/overrides.pt.php';
if (file_exists($overridesFile)) {
$overrides = require $overridesFile;
}
Expand Down

0 comments on commit fea082e

Please sign in to comment.