1
0
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:
Ruben Calvo
2024-11-30 01:25:17 +01:00
parent be3966c0cb
commit a44295a1ba
6 changed files with 118 additions and 24 deletions

View File

@@ -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',
],
],
];
}