Skip to content

make qualifiers translatable#157

Merged
seth-shaw-asu merged 1 commit into2.xfrom
edtf_translation
Feb 12, 2026
Merged

make qualifiers translatable#157
seth-shaw-asu merged 1 commit into2.xfrom
edtf_translation

Conversation

@Natkeeran
Copy link
Copy Markdown
Contributor

GitHub Issue: (link)
The EDTF Field formatter terms such as uncertain and approximate are currently cannot be translated via Drupal UI.

  • Other Relevant Links (Google Groups discussion, related pull requests,
    Release pull requests, etc.)

What does this Pull Request do?

This PR makes the qualifier terms related to EDTF Field formatter translatable.

What's new?

Makes the qualifier terms as translatable variables.

How should this be tested?

  • Add a language to the Drupal (admin/config/regional/language) if it only has one language. Also enable User interface translation.
  • Create repository items with values such as 2000~, 2000?, 2000-01~, 2000-01?, 2000-01-22~, 2000-01-22? in the source language
  • Switch the language, the qualifier terms such as approximate and uncertain will be in the source language
  • Pull the PR, cache clear
  • Go to the target language. This will register the terms that need to be translated.
  • Go to User interface translation (admin/config/regional/translate), search for the term, and provide the translated terms.
  • Go back to the item in the target language. It should show the translated field formatter label.
  • Alternatively, you can export the po file containing the current translation ids and strings and add the required translations (year, month, day, uncertain, approximate)

Additional Notes:

Any additional information that you think would be helpful when reviewing this
PR.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora/committers

@seth-shaw-asu seth-shaw-asu self-assigned this Feb 12, 2026
Copy link
Copy Markdown
Member

@seth-shaw-asu seth-shaw-asu left a comment

Choose a reason for hiding this comment

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

This is great, @Natkeeran. Thanks!

@seth-shaw-asu seth-shaw-asu merged commit ae1a6a8 into 2.x Feb 12, 2026
8 checks passed
@seth-shaw-asu seth-shaw-asu deleted the edtf_translation branch February 12, 2026 18:37
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.

2 participants