<% interpret_title "Interpret - Tools" %>

Tools for import/export locale data

<%= link_to "Download", export_interpret_tools_path %> the current translations for '<%= I18n.locale %>' language as .yml file

Upload your .yml file for '<%= I18n.locale %>' language

<%= form_tag import_interpret_tools_path, :multipart => true do %> <%= label_tag "File:" %> <%= file_field_tag :file %> <%= submit_tag "Upload" %> <% end %>

Update contents from yml locale files

Update all your application translations from the yml files.

<%= button_to "Update", run_update_interpret_tools_path %>

Dump .yml contents into database

With this option you can export all of your *.yml contents into the database backend
Be aware!! All of your current database translations will be updated to match with your current *.yml files.

<% if Rails.env == "production" %>

MY GOD!!! You're in PRODUCTION!! You're sure you wanna do this??

<% end %>

<%= button_to "Dump", dump_interpret_tools_path %>