Commit 6153710d authored by Tobias Munk's avatar Tobias Munk

Merge branch 'feature/i18n-config-for-app-category' into 'feature/php-8.2'

Add extra app category to prevent warning and ensure translatability

See merge request !19
parents d18f5dfc 31e860c1
Pipeline #81891 passed with stage
in 4 minutes and 8 seconds
......@@ -124,6 +124,16 @@ SQL;
return $event;
});
$i18nTranslation = [
'class' => DbMessageSource::class,
'db' => 'db',
'sourceLanguage' => 'xx-XX',
'sourceMessageTable' => '{{%language_source}}',
'messageTable' => '{{%language_translate}}',
'cachingDuration' => 86400,
'enableCaching' => !YII_ENV_DEV
];
// Basic configuration, used in web and console applications
return [
'id' => 'app',
......@@ -285,23 +295,9 @@ return [
],
'i18n' => [
'translations' => [
'*' => [
'class' => DbMessageSource::class,
'db' => 'db',
'sourceLanguage' => 'xx-XX',
'sourceMessageTable' => '{{%language_source}}',
'messageTable' => '{{%language_translate}}',
'cachingDuration' => 86400,
'enableCaching' => !YII_ENV_DEV
],
'noty' => [
'class' => DbMessageSource::class,
'sourceLanguage' => 'xx-XX',
'sourceMessageTable' => '{{%language_source}}',
'messageTable' => '{{%language_translate}}',
'cachingDuration' => 86400,
'enableCaching' => !YII_ENV_DEV
]
'*' => $i18nTranslation,
'app' => $i18nTranslation,
'noty' => $i18nTranslation
]
],
'log' => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment