-
Notifications
You must be signed in to change notification settings - Fork 2
UFAL/Translation of distribution license for collection to Czech #952
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
UFAL/Translation of distribution license for collection to Czech #952
Conversation
WalkthroughA configuration file was updated to add support for the Czech locale by specifying it in the list of supported locales. Additionally, a new license file in Czech was introduced, providing a non-exclusive distribution license text for Charles University. A test was updated to expect the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
dspace-api/src/test/data/dspaceFolder/config/local.cfg(1 hunks)dspace/config/default_cs.license(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: dspace-dependencies / docker-build (linux/amd64, ubuntu-latest, true)
- GitHub Check: Run Integration Tests
- GitHub Check: Run Unit Tests
🔇 Additional comments (2)
dspace/config/default_cs.license (1)
1-31: Add Czech distribution license text
The newdefault_cs.licensefile correctly mirrors the pattern of other locale‐specific license files by providing a full Czech translation of the non‐exclusive distribution license. It fulfills the PR’s objective of localizing the license for Czech users.
Please ensure the file is saved with UTF-8 encoding and ends with a newline to maintain consistency across platforms.dspace-api/src/test/data/dspaceFolder/config/local.cfg (1)
326-326: Unrelated property change:allow.edit.metadata
Theallow.edit.metadata =line was uncommented and left blank. This override is unrelated to Czech locale support and may unintentionally impact metadata editing behavior in your tests.
Please confirm whether this change is intentional; if not, revert this line to avoid side effects.
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
dspace-server-webapp/src/test/java/org/dspace/app/rest/LanguageSupportIT.java (1)
42-42: Consider standardizing comma formatting across tests.Note that this test uses
"en,cs"(without a space after comma) while other tests in this class use"uk, it"(with a space after comma) on lines 75, 78, and 81. Consider standardizing the formatting for consistency.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
dspace-server-webapp/src/test/java/org/dspace/app/rest/LanguageSupportIT.java(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: dspace-dependencies / docker-build (linux/amd64, ubuntu-latest, true)
- GitHub Check: Run Integration Tests
- GitHub Check: Run Unit Tests
🔇 Additional comments (1)
dspace-server-webapp/src/test/java/org/dspace/app/rest/LanguageSupportIT.java (1)
42-42: Test expectation updated to include Czech language support.The test now correctly expects the
Content-Languageheader to include both English and Czech ("en,cs") which aligns with the PR's objective of adding Czech locale support for the distribution license.
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.
Pull Request Overview
This pull request adds Czech language support by including a new Czech license file, updating tests to expect the Czech locale, and modifying configuration to support Czech for the distribution license.
- Added a Czech license file in dspace/config/default_cs.license
- Updated tests in LanguageSupportIT.java to include Czech in the Content-Language header
- Updated local.cfg to support the Czech locale
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| dspace/config/default_cs.license | Added the Czech license translation |
| dspace-server-webapp/src/test/java/org/dspace/app/rest/LanguageSupportIT.java | Modified test to check for "en,cs" in the Content-Language header |
| dspace-api/src/test/data/dspaceFolder/config/local.cfg | Added configuration for Czech locale support |
dspace-server-webapp/src/test/java/org/dspace/app/rest/LanguageSupportIT.java
Show resolved
Hide resolved
* Fixed browse - the results are not lowercase (#954) * S3-CESNET direct downloads (#949) * Return headers for HEAD request - the bitstream download endpoint (#956) * The bitstream name is encoded in the URL. (#958) * SWORDv2 issues: Cannot update bitstream of archived Item. The swordv2 url is not composed correctly. Fixed deleting the workspace item when used org.dspace.sword2.WorkflowManagerDefault (#957) * The file preview process not required username and password in UI (#960) * Added translation of distribution license for collection to Czech (#952) * Added dead and deadSince to handle rest (#948) * Display community and collection handle (#961) * Embargo during submission not recorded in provenance (#950) * Allow to access File Downloader for any authorized user (ufal#1199) * allow.edit.metadata property should also work for submitters that are members of collection SUBMIT subgroup (ufal#1202) * Prevent error 500 for non admin user uploading file to bundle (ufal#1205) * Track downloads as pageviews (ufal#1209) * Loading the bitstreams - performance issue (ufal#1211)
Problem description
The distribution license is not translated when the language is switched to Czech.
Reported issues
The issue was solved based on this PR: DSpace#8966
with this translation: https://github.com/ufal/clarin-dspace/blob/clarin/dspace/config/licenses/alternative_cs.license
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Chores