Skip to content
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

Merged
merged 53 commits into from
Aug 2, 2024

Conversation

marpesia
Copy link
Contributor

@marpesia marpesia commented Jun 21, 2024

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

  • Check Solar theme enabled
  • try to run commands:
php tao/scripts/taoTranslate.php -v -a=compile -e=tao -l=en-US-S
php tao/scripts/taoUpdate.php

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```

Copy link

github-actions bot commented Jun 21, 2024

Front-end summary Node 18

💯 Total ✅ Passed ⏭️ Skipped ❌ Failed
161 161 0 0

@marpesia marpesia requested a review from SultanSagi June 21, 2024 12:27
@pribi pribi self-requested a review July 11, 2024 09:08
test/unit/helpers/SolarThemeHelperTest.php Outdated Show resolved Hide resolved
test/unit/helpers/SolarThemeHelperTest.php Outdated Show resolved Hide resolved
test/unit/helpers/SolarThemeHelperTest.php Outdated Show resolved Hide resolved
test/unit/helpers/LocaleFilesHelperTest.php Show resolved Hide resolved
Copy link
Contributor

@bartlomiejmarszal bartlomiejmarszal left a 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
Copy link
Contributor

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

@bartlomiejmarszal bartlomiejmarszal requested a review from pnal July 12, 2024 11:47
Comment on lines 383 to 386
private function isDirectory(string $path, array $localeDir): bool
{
return $localeDir[0] != '.' && @is_dir($path);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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;
}

@Karol-Stelmaczonek Karol-Stelmaczonek self-requested a review July 12, 2024 12:35
Copy link
Contributor

@Karol-Stelmaczonek Karol-Stelmaczonek left a 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

SultanSagi and others added 5 commits July 16, 2024 18:51
…-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
Copy link

github-actions bot commented Aug 1, 2024

Version

❕ Some commits are not using the conventional commits formats. They will be ignored in version management.

Target Version 54.18.0
Last version 54.17.2

There are 0 BREAKING CHANGE, 11 features, 6 fixes

@marpesia marpesia merged commit b2c3e4c into develop Aug 2, 2024
6 checks passed
@marpesia marpesia deleted the feat/AUT-3675/add-support-to-SolarUI-locales branch August 2, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants