diff --git a/author/project/system/controllers/core.php b/author/project/system/controllers/core.php index 2eeed11..2e3f3eb 100755 --- a/author/project/system/controllers/core.php +++ b/author/project/system/controllers/core.php @@ -6,8 +6,10 @@ namespace ${REPO_OWNER}\${REPO_NAME}\controllers; // Files of the project use ${REPO_OWNER}\${REPO_NAME}\views\templater, - ${REPO_OWNER}\${REPO_NAME}\models\core as models, - ${REPO_OWNER}\${REPO_NAME}\models\enumerations\language; + ${REPO_OWNER}\${REPO_NAME}\models\core as models; + +// Library for languages support +use mirzaev\languages\language; // Framework for PHP use mirzaev\minimal\core as minimal, @@ -28,7 +30,6 @@ use mirzaev\minimal\core as minimal, * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich - * @author ${REPO_OWNER} */ class core extends controller { diff --git a/author/project/system/controllers/index.php b/author/project/system/controllers/index.php index 0b1d706..ac29f02 100755 --- a/author/project/system/controllers/index.php +++ b/author/project/system/controllers/index.php @@ -22,7 +22,6 @@ use mirzaev\minimal\http\enumerations\content, * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich - * @author ${REPO_OWNER} */ final class index extends core { diff --git a/author/project/system/models/core.php b/author/project/system/models/core.php index 8cc51b7..f961891 100755 --- a/author/project/system/models/core.php +++ b/author/project/system/models/core.php @@ -20,7 +20,6 @@ use exception; * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich - * @author ${REPO_OWNER} */ class core extends model { diff --git a/author/project/system/models/enumerations/language.php b/author/project/system/models/enumerations/language.php deleted file mode 100755 index 6d0593a..0000000 --- a/author/project/system/models/enumerations/language.php +++ /dev/null @@ -1,62 +0,0 @@ - - * @author ${REPO_OWNER} - */ -enum language -{ - case en; - case ru; - - /** - * Label - * - * Initialize label of the language - * - * @param language|null $language Language into which to translate - * - * @return string Translated label of the language - */ - public function label(?language $$language = language::en): string - { - // Exit (success) - return match ($$this) { - language::en => match ($$language) { - language::en => 'English', - language::ru => 'Английский' - }, - language::ru => match ($$language) { - language::en => 'Russian', - language::ru => 'Русский' - } - }; - } - - /** - * Flag - * - * Initialize the flag emoji of the language - * - * @return string The flag emoji of the language - */ - public function flag(): string - { - // Exit (success) - return match ($$this) { - language::en => '🇺🇸', - language::ru => '🇷🇺' - }; - } -} diff --git a/author/project/system/models/traits/files.php b/author/project/system/models/traits/files.php index 6e72b73..fab633e 100755 --- a/author/project/system/models/traits/files.php +++ b/author/project/system/models/traits/files.php @@ -18,7 +18,6 @@ use exception; * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich - * @author ${REPO_OWNER} */ trait files { diff --git a/author/project/system/views/templater.php b/author/project/system/views/templater.php index 756c99b..97018ff 100755 --- a/author/project/system/views/templater.php +++ b/author/project/system/views/templater.php @@ -4,8 +4,8 @@ declare(strict_types=1); namespace ${REPO_OWNER}\${REPO_NAME}\views; -// Files of the project -use ${REPO_OWNER}\${REPO_NAME}\models\enumerations\language; +// Library for languages support +use mirzaev\languages\language; // Framework for PHP use mirzaev\minimal\controller; @@ -34,7 +34,6 @@ use ArrayAccess as array_access, * * @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License * @author Arsen Mirzaev Tatyano-Muradovich - * @author ${REPO_OWNER} */ final class templater extends controller implements array_access {