-
Notifications
You must be signed in to change notification settings - Fork 31
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
part of a fix for https://github.com/Islandora-CLAW/CLAW/issues/1092 #23
Conversation
… fields translatable in the default configuration
@elizoller Thank you. Works as described. My only comment here is if date field should be translatable? |
Perhaps not - the thing I could think of would be if by "translating" a date, one might want to reorder like DD-MM-YYYY instead of MM-DD-YYYY - but I think that would already by covered by the Display format settings for that field (ie. /admin/structure/taxonomy/manage/corporate_body/overview/display). I can remove the translation settings for date fields and push that up. |
…ily, and person taxonomy terms
@elizoller will need your CLA signed and on file before we can merge this PR. |
Thanks @whikloj It has been delivered to higher ups for approval. |
We now have a cCLA for Arizona State University Library, so this is good to go on that front! @whikloj @Natkeeran |
@Natkeeran you did the testing on this one, so I'll leave it to you for the merge. |
@Natkeeran ^^ |
Thanks Danny, will test this soon. |
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.
Please add the content_translation and language modules as dependencies in controlled_access_terms_default_configuration.info.yml.
I pulled in the PR, imported the Feature changes, added a second language, and tried to create a new Corporate Body record. It WSOD'd and apache reported:
Did I miss a step in setup? |
I don't know of a missing step. I'll dig into it later today. |
@seth-shaw-unlv did you do |
@elizoller, I know I imported the feature updates and I checked the content translation settings. I thought I saw the fields were translatable. Perhaps I glanced too quickly and was mistaken. I'm heading out of town today but will try again on Friday. |
I did not test on a plain drupal build so I'll go that route. Thanks |
I can confirm it works on an Islandora site. We just need it to work on plain Drupal. Thanks for working on this @elizoller! |
i think that would be because drush feature import wouldn't also enable the required language module? |
Hrm, both the content translation and language modules were enabled as part of the first step, so I don't think that is it. Let me try it again on a fresh box. |
Tried it again and it worked this time. |
making taxonomy term fields translatable in the default configuration
GitHub Issue: (Islandora/documentation#1092)
What does this Pull Request do?
Make the taxonomy and taxonomy term fields translatable with the default configuration
What's new?
Add yml configuration for language.content_settings.taxonomy_term.[taxonomy_name].yml for corporate_body, family, geo_location, person, resource_types, and subject taxonomies. Add the translatable:true for the following taxonomy term fields in the field configuration: corporate_body.field_cat_date_begin, corporate_body.field_corp_alt_name, corporate_body.field_type, family.field_authority_link, family.field_cat_date_begin, geo_location.field_authority_link, geo_location.field_geo_alt_name, geo_location.field_geo_broader, geo_location.field_geo_geolocation, person.field_authority_link, person.field_cat_date_begin, person.field_cat_date_end, person.field_person_alternate_names, person.field_person_preferred_name, person.field_relationships, resource_types.field_external_authority_link, subject.field_authority_link
How should this be tested?
Copy down the updated config, import controlled_access_terms_default_configuration (ie.
drush fim controlled_access_terms_default_configuration
). Check to make sure you can translate the terms and fields: http://localhost:8000/admin/config/regional/content-language show demonstrate the taxonomies and fields are checked and able to be translated.Interested parties
@Natkeeran