Feature #9541

Add new data fixtures translations to existing installations

Added by David Juhasz over 4 years ago. Updated 3 months ago.

Status:NewStart date:03/08/2016
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Sponsored:No Tested version:2.2

Description

For instance the Publication status "Published" has been translated into 29 cultures:
https://github.com/artefactual/atom/blob/qa/2.3.x/data/fixtures/taxonomyTerms.yml#L2942-L2970

But installations that have been upgraded from previous versions of AtoM may only have a fraction of these translations. For many taxonomies the terms can be manually added via the UI as a workaround, but the Publication status taxonomy is "locked" and not editable via the UI.

The ideal solution would be a general-purpose data migration or CLI script that would read the fixtures file and automatically add new translations for existing terms to the database.


Related issues

Related to Access to Memory (AtoM) - Bug #8570: Publication statuses in other languages don't import prop... New 06/17/2015
Related to AtoM Wishlist - Feature #5505: Create a process to include i18n local changes in the upg... New 08/23/2013
Related to Access to Memory (AtoM) - Bug #2792: Can't translate some user interface elements or default c... New

History

#2 Updated by David Juhasz over 4 years ago

  • Related to Bug #8570: Publication statuses in other languages don't import properly added

#3 Updated by David Juhasz over 4 years ago

  • Description updated (diff)

#4 Updated by David Juhasz about 4 years ago

  • Tracker changed from Task to Feature

#5 Updated by Dan Gillean about 4 years ago

  • Priority changed from Medium to High
  • Target version changed from Release 2.3.0 to Release 2.4.0

Bumping this forward rather than removing the milestone and bumping up priority so we try to include it in the next release - if volunteer contributed translations are not getting into our releases, we should prioritize it so as not to alienate our wonderful volunteers!

#6 Updated by Dan Gillean about 4 years ago

  • Project changed from Access to Memory (AtoM) to AtoM Wishlist
  • Category deleted (I18N)
  • Target version deleted (Release 2.4.0)

Actually, after clarification, moving this to the wishlist. It would be really nice to get this into a future release, but it is apparently a pretty big piece of work. User-submitted translations for UI elements are still getting into our releases, and new installations should have all terms translated. This affects new translations of existing terms for users who upgrade from an older version of AtoM. It would be great to see this improved, but it will require sponsorship for us to really be able to investigate and solve.

#7 Updated by Dan Gillean over 3 years ago

  • Related to Feature #5505: Create a process to include i18n local changes in the upgrade process added

#8 Updated by José Raddaoui Marín over 2 years ago

For those restricted taxonomies, which terms can't be updated through the GUI, the script attached in https://projects.artefactual.com/issues/11906#note-5 could be used from the CLI to add/modify/remove any translation to the term name.

#9 Updated by Dan Gillean 4 months ago

  • Related to Bug #2792: Can't translate some user interface elements or default content added

#10 Updated by José Raddaoui Marín 3 months ago

I just found a function (that I think was executed only in the 1.2 upgrade) to update existing resources based on the fixtures files:

https://github.com/artefactual/atom/blob/qa/2.6.x/lib/task/migrate/QubitMigrate.class.php#L792-L893

It may need some tweaks, but it shouldn't be hard to adapt it for the new versions and run it on each upgrade task call.

Also available in: Atom PDF