-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/aut 3675/add support to solar UI locales #4053
Feat/aut 3675/add support to solar UI locales #4053
Conversation
Front-end summary Node 18
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just having issue with empty abstract class. Maybe you could change it into interface instead?
|
||
namespace oat\tao\helpers\translation; | ||
|
||
abstract class AbstractSolarThemeHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Abstract class without some implementation is useless. You may want to create interface instead
private function isDirectory(string $path, array $localeDir): bool | ||
{ | ||
return $localeDir[0] != '.' && @is_dir($path); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private function isDirectory(string $path, array $localeDir): bool | |
{ | |
return $localeDir[0] != '.' && @is_dir($path); | |
} | |
private function isDirectory(string $path, array $localeDir): bool | |
{ | |
if (!isset($localeDir[0])) { | |
return false; | |
} | |
if ($localeDir[0] == '.') { | |
return false; | |
} | |
if (!is_dir($path)) { | |
return false; | |
} | |
return true; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
Feature/aut 3624/fix css solar UI
…-to-FE-Labels Feature/aut 3624/add translation to fe labels
Conflicts: views/css/tao-main-style.css views/css/tao-main-style.css.map views/js/lib/jsTree/themes/css/style.css.map views/js/loader/vendor.es5.min.js views/js/loader/vendor.es5.min.js.map views/js/loader/vendor.min.js.map
Conflicts: views/css/tao-main-style.css views/css/tao-main-style.css.map
Version❕ Some commits are not using the conventional commits formats. They will be ignored in version management.
There are 0 BREAKING CHANGE, 11 features, 6 fixes |
Related to: https://oat-sa.atlassian.net/browse/AUT-3675
Installation
Need to use tao-community with the June release
Then enable Solar theme https://oat-sa.atlassian.net/wiki/spaces/OAT/pages/2406350936/RFE-1147+Implementation+documentation
What to test
Summary
It makes translations with new prefix
Business logic
To create and update new local files:
// from Docker container php tao/scripts/taoTranslate.php -v -a=create -e=taoQtiItem -l=en-us```