Skip to content

Commit

Permalink
OXDEV-8462 Fix smarty
Browse files Browse the repository at this point in the history
  • Loading branch information
TitaKoleva committed Jul 15, 2024
1 parent 85e8ffc commit 4ed4bfd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

"tests-codeception": [
"Composer\\Config::disableProcessTimeout",
"THEME_ID=apex MODULE_IDS=oe_moduletemplate SHOP_ROOT_PATH=/var/www vendor/bin/codecept run acceptance -c tests/codeception.yml --no-redirect"
"THEME_ID=flow MODULE_IDS=oe_moduletemplate SHOP_ROOT_PATH=/var/www vendor/bin/codecept run acceptance -c tests/codeception.yml --no-redirect"
],

"tests-all": [
Expand Down
2 changes: 1 addition & 1 deletion metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
'templates' => [
'@oe_moduletemplate/templates/greetingtemplate.tpl' => 'views/smarty/templates/greetingtemplate.tpl',
'@oe_moduletemplate/templates/admin/user_greetings.tpl' => 'views/smarty/templates/admin/user_greetings.tpl',
'@oe_moduletemplate/admin/user_greetings.tpl' => 'views/smarty/admin/user_greetings.tpl',
],
'events' => [
'onActivate' => '\OxidEsales\ModuleTemplate\Core\ModuleEvents::onActivate',
Expand Down
6 changes: 3 additions & 3 deletions tests/Codeception/acceptance.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ modules:
- \OxidEsales\Codeception\Module\Translation\TranslationsModule:
shop_path: '%SHOP_SOURCE_PATH%'
paths:
- Application/views/apex
- Application/views/admin_twig
- ../vendor/oxid-esales/module-template/views/admin_twig
- Application/views/flow/translations
- Application/views/admin_smarty
- ../vendor/oxid-esales/module-template/views/admin_smarty
- ../vendor/oxid-esales/module-template/translations
- \OxidEsales\Codeception\Module\OxideshopModules
step_decorators:
Expand Down
9 changes: 9 additions & 0 deletions views/admin_smarty/de/module_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@

$aLang = [
'charset' => 'UTF-8',
'tbcluser_greetings' => 'Greetings',

'OEMODULETEMPLATE_GREETING_TITLE' => 'Admin controller example',
'OEMODULETEMPLATE_GREETING_MESSAGE_TEXT' => 'Greeting message: ',
'OEMODULETEMPLATE_NO_GREETING_TEXT' => 'No greeting message added!',
'OEMODULETEMPLATE_ALLOW_GREETING' => 'Allow user to set greeting',
'OEMODULETEMPLATE_HELP_ALLOW_GREETING' => 'Example of extending admin template',

# Module settings
'SHOP_MODULE_GROUP_oemoduletemplate_main' => 'Einstellungen',
'SHOP_MODULE_oemoduletemplate_GreetingMode' => 'Begrüßungsmodus',
'SHOP_MODULE_oemoduletemplate_GreetingMode_generic' => 'höflich',
Expand Down
9 changes: 9 additions & 0 deletions views/admin_smarty/en/module_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@

$aLang = [
'charset' => 'UTF-8',
'tbcluser_greetings' => 'Greetings',

'OEMODULETEMPLATE_GREETING_TITLE' => 'Admin controller example',
'OEMODULETEMPLATE_GREETING_MESSAGE_TEXT' => 'Greeting message: ',
'OEMODULETEMPLATE_NO_GREETING_TEXT' => 'No greeting message added!',
'OEMODULETEMPLATE_ALLOW_GREETING' => 'Allow user to set greeting',
'OEMODULETEMPLATE_HELP_ALLOW_GREETING' => 'Example of extending admin template',

# Module settings
'SHOP_MODULE_GROUP_oemoduletemplate_main' => 'Settings',
'SHOP_MODULE_oemoduletemplate_GreetingMode' => 'Greeting mode',
'SHOP_MODULE_oemoduletemplate_GreetingMode_generic' => 'generic',
Expand Down
File renamed without changes.

0 comments on commit 4ed4bfd

Please sign in to comment.