move document statutes keys..

This commit is contained in:
Cüneyt Şentürk
2021-01-11 11:10:30 +03:00
parent 0f158cdc7e
commit 00ed7bcd49
11 changed files with 81 additions and 35 deletions

View File

@ -713,7 +713,17 @@ abstract class DocumentIndex extends Base
return $translation;
}
return $default_key;
$alias = config('type.' . $type . '.alias');
if (!empty($alias)) {
$translation = $alias . '::' . config('type.' . $type . '.translation.prefix') . '.statuses';
if (is_array(trans($$translation))) {
return $translation . '.';
}
}
return 'documents.statuses.';
}
protected function getClassStatus($type, $classStatus)