From afb868b700101d5510833caa47cd2438b923ea68 Mon Sep 17 00:00:00 2001 From: Florin-Ciprian Bodin Date: Sun, 9 Feb 2020 04:05:42 +0200 Subject: [PATCH] Update Item.php var extend_description added for auto translation --- classes/Item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Item.php b/classes/Item.php index 9ef8236..11bbfbb 100644 --- a/classes/Item.php +++ b/classes/Item.php @@ -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) {