portagenetwork / roadmap

Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete `lib/tasks/roadmap_translation.rake` And its Generated File

aaronskiba opened this issue · comments

Please complete the following fields as applicable:

What version of the DMPRoadmap code are you running? (e.g. v2.2.0)

  • 4.0.2+portage-4.0.3

Details

  • It appears that this rake task pre-dates our customisation of the translation gem. Since we now have 'Theme' => %w[title description] included in our config/initializers/translation.rb config.db_fields hash, we should be able to delete lib/tasks/roadmap_translation.rake and the file it generates (app/views/translation_io_exports/_themes.html.erb) from the codebase.

One thing that I like about this old approach, is that enables translation.io to provide the context. Our current approach, with our customised version of the translation gem, does allow translation.io to fill in context.
Screenshot from 2024-05-09 11-35-29