diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index ac1d2363a..73cb73204 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -1052,7 +1052,15 @@ abstract class DocumentShow extends Base return $textTimelineCreateTitle; } - $default_key = 'create_' . $type; + $default_key = 'create_' . str_replace('-', '_', $type); + + $translation = $this->getTextFromConfig($type, 'timeline_create_title', $default_key); + + if (!empty($translation)) { + return $translation; + } + + $default_key = 'create_' . str_replace('-', '_', config('type.' . $type . '.alias'); $translation = $this->getTextFromConfig($type, 'timeline_create_title', $default_key);