-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAbstractLanguagePlugin.php
More file actions
41 lines (35 loc) · 978 Bytes
/
AbstractLanguagePlugin.php
File metadata and controls
41 lines (35 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php declare(strict_types=1);
namespace App\Domain\Plugin;
use App\Application\i18n;
use App\Domain\AbstractPlugin;
abstract class AbstractLanguagePlugin extends AbstractPlugin
{
/**
* Add new line in current locale table
*/
public function addLocale(string $code, array $strings = []): void
{
i18n::addLocale($code, $strings);
}
/**
* Add new array of lines in current locale table
*/
public function addLocaleFromFile(string $code, string $path): void
{
i18n::addLocaleFromFile($code, $path);
}
/**
* Add locale editor words
*/
public function addLocaleEditor(string $code, array $translate): void
{
i18n::addLocaleEditor($code, $translate);
}
/**
* Add translate letters
*/
public function addLocaleTranslateLetters(string $code, array $original, array $latin): void
{
i18n::addLocaleTranslateLetters($code, $original, $latin);
}
}