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

Fixed translation configuration #237

Merged

Conversation

mikadamczyk
Copy link
Contributor

@mikadamczyk mikadamczyk commented May 17, 2023

Question Answer
JIRA issue N/A
Type feature
Target Ibexa version v4.5
BC breaks no

Fixes a path from which translations will be extracted and an extension of generated files.

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly (main for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review (ping @ibexa/engineering).

@mikadamczyk mikadamczyk self-assigned this May 17, 2023
@mikadamczyk mikadamczyk force-pushed the fixed_translation_configuration branch from f1efc5d to ff08a72 Compare May 17, 2023 10:19
@mikadamczyk mikadamczyk marked this pull request as ready for review May 17, 2023 12:48
@mikadamczyk mikadamczyk requested a review from a team May 17, 2023 12:48
@alongosz alongosz requested a review from a team May 18, 2023 07:29
@sonarcloud
Copy link

sonarcloud bot commented May 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

],
'output_dir' => __DIR__ . '/../Resources/translations/',
'output_format' => 'xliff',
'output_format' => 'xlf',
Copy link
Member

Choose a reason for hiding this comment

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

Why we are changing output format to xlf ?

],
'output_dir' => __DIR__ . '/../Resources/translations/',
'output_format' => 'xliff',
'output_format' => 'xlf',
Copy link
Contributor

Choose a reason for hiding this comment

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

xliff

@mikadamczyk
Copy link
Contributor Author

@adamwojs , @kisztof This pull request tries to revert/cleanup changes introduced in #184. All existing translations before this pull request were in *.xlf https://github.com/ibexa/core/tree/main/src/bundle/Core/Resources/translations. The proposed configuration does not extract/cover existing translations. I recommend going back to the old extension.

@mikadamczyk mikadamczyk force-pushed the fixed_translation_configuration branch from f19d065 to 9201602 Compare August 22, 2023 09:26
@sonarcloud
Copy link

sonarcloud bot commented Aug 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mikadamczyk mikadamczyk merged commit 7e6d742 into fixed_translation_visitor Aug 24, 2023
22 checks passed
@mikadamczyk mikadamczyk deleted the fixed_translation_configuration branch August 24, 2023 06:42
mikadamczyk added a commit that referenced this pull request Aug 24, 2023
* Fixed file visitor for extracting exception messages

* Fixed translation configuration (#237)
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