CMXX - Language based manual url

This commit is contained in:
“VeLiTi”
2024-11-11 19:34:46 +01:00
parent 5d79c325ee
commit a20e9440d0

View File

@@ -12,6 +12,37 @@ $software_download_url = 'https://'.$_SERVER['SERVER_NAME'].'/firmware'.'/';
//getSoftware (legacy)
$software_url = ($latest_version !='') ? $latest_version['source'] : 'https://'.$_SERVER['SERVER_NAME'].'/firmware'.'/'.$service_tool_current_filename;
//=================================================================
//SERVICE Tool manual ===================================
//=================================================================
switch ($language) {
case 'NL':
$manual_url = "https://lms.tss-learning.com/course/view.php?id=60";
break;
case 'US':
$manual_url = "https://lms.tss-learning.com/course/view.php?id=10";
break;
case 'DE':
$manual_url = "https://lms.tss-learning.com/course/view.php?id=60";
break;
case 'ES':
$manual_url = "https://lms.tss-learning.com/course/view.php?id=60";
break;
case 'PT':
$manual_url = "https://lms.tss-learning.com/course/view.php?id=60";
break;
default:
$manual_url = "https://lms.tss-learning.com/course/view.php?id=60";
break;
}
//=================================================================
//SERVICE Tool initialize ===================================
//=================================================================
@@ -56,7 +87,7 @@ $init = array(
"AnalogVoltagePP_EP_Off_Max"=>0.3,
"AnalogVoltagePP_EP_Off_Min"=>-0.5
),
"ManualURL"=> "https://lms.tss-learning.com/course/view.php?id=60",
"ManualURL"=> $manual_url,
"termsURL"=> "https://emergency-plug.com/en/terms-and-conditions",
"Application" => array(
"current_version" => $service_tool_current_version,