You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As $config['locales'] is already set just above this line, my $options are not taken into account. I have found this to work if I change $config += $options; to $config = array_merge($config, $options);.
But I am not sure if I need to do this because I have called correctly UV from my theme (then, some more documentation would be welcome) or if there is an actual code that my small change can fix (then feel free to integrate it).
The text was updated successfully, but these errors were encountered:
According to #2 there should now be no issue using French to display the UV but either there is still a bug, either I have not understood how to do.
What I am doing right now in my custom theme is:
But UV won't display in French. I have found that it is because of the
$config += $options;
that is used at https://github.com/Daniel-KM/Omeka-S-module-UniversalViewer/blob/master/src/View/Helper/UniversalViewer.php#L217As
$config['locales']
is already set just above this line, my $options are not taken into account. I have found this to work if I change$config += $options;
to$config = array_merge($config, $options);
.But I am not sure if I need to do this because I have called correctly UV from my theme (then, some more documentation would be welcome) or if there is an actual code that my small change can fix (then feel free to integrate it).
The text was updated successfully, but these errors were encountered: