Update Item.php

var extend_description added for auto translation
This commit is contained in:
Florin-Ciprian Bodin
2020-02-09 04:05:42 +02:00
committed by GitHub
parent 3e3ce2b86c
commit afb868b700

View File

@@ -177,7 +177,8 @@ abstract class Item
$this -> icon = $this -> new_icon = $this -> md5_link = $this -> thumb_link = '';
global $descriptions, $words;
$description = ((DESCRIPTION_FILE && $descriptions -> is_set($full_name)) ? $descriptions -> __get($full_name) : strtoupper(substr($filename, 0, strrpos($filename, '.'))));
$this -> description = ($words -> is_set($description) ? $words -> __get($description) : $description);
$extend_description = (($words -> is_set('CHAP') && $words -> is_set(strtoupper(substr($description, 0, strrpos($description, '_'))))) ? $words -> __get(strtoupper(substr($description, 0, strrpos($description, '_')))) . ' ' . $words -> __get('CHAP') . ' ' . substr(strrchr($description, '_'), 1) : $description);
$this -> description = ($words -> is_set($description) ? $words -> __get($description) : $extend_description );
$this -> parent_dir = $parent_dir;
if (DAYS_NEW)
{