mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 06:20:46 +02:00
[ticket/17361] Move language keys to storage adapters
PHPBB-17361
This commit is contained in:
@@ -13,8 +13,25 @@
|
||||
|
||||
namespace phpbb\storage\provider;
|
||||
|
||||
use phpbb\language\language;
|
||||
|
||||
class local implements provider_interface
|
||||
{
|
||||
/**
|
||||
* @var language
|
||||
*/
|
||||
protected $language;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param language $language
|
||||
*/
|
||||
public function __construct(language $language)
|
||||
{
|
||||
$this->language = $language;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@@ -23,6 +40,11 @@ class local implements provider_interface
|
||||
return 'local';
|
||||
}
|
||||
|
||||
public function get_title(): string
|
||||
{
|
||||
return $this->language->lang('STORAGE_ADAPTER_LOCAL_NAME');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@@ -38,8 +60,12 @@ class local implements provider_interface
|
||||
{
|
||||
return [
|
||||
'path' => [
|
||||
'tag' => 'input',
|
||||
'type' => 'text',
|
||||
'title' => $this->language->lang('STORAGE_ADAPTER_LOCAL_OPTION_PATH'),
|
||||
'description' => $this->language->lang('STORAGE_ADAPTER_LOCAL_OPTION_PATH_EXPLAIN'),
|
||||
'form_macro' => [
|
||||
'tag' => 'input',
|
||||
'type' => 'text',
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user