Admin: Customize link to documentation to link to existing language if it exists.

pull/3567/head^2
Yannick Warnier 5 years ago
parent dfaacf5013
commit 41c8a419ba
  1. 13
      main/admin/index.php

@ -769,8 +769,19 @@ if (api_is_platform_admin()) {
'url' => 'https://chamilo.org/',
'label' => get_lang('ChamiloHomepage'),
];
// Custom linking to user guides in the existing languages
$guideLinks = [
'french' => 'v/1.11.x-fr/',
'spanish' => 'v/1.11.x-es/',
'dutch' => 'v/1.11.x-nl/',
'galician' => 'v/1.11.x-ga/',
];
$guideLink = 'https://docs.chamilo.org/';
if (!empty($guideLinks[$language_interface])) {
$guideLink .= $guideLinks[$language_interface];
}
$items[] = [
'url' => 'https://docs.chamilo.org/',
'url' => $guideLink,
'label' => get_lang('UserGuides'),
];
$items[] = [

Loading…
Cancel
Save