Sha256: 6a99f7550738d80ae62c299c68f2e5db64770a27bd4142005e89e78e64811990

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

<% interpret_title "Interpret - Tools" %>

<div class="header">
  <h1>Tools for import/export locale data</h1>
</div>

<p><%= link_to "Download", export_interpret_tools_path %> the current translations for '<%= I18n.locale %>' language as .yml file</p>
<p>Upload your .yml file for '<%= I18n.locale %>' language</p>
<p>
<%= form_tag import_interpret_tools_path, :multipart => true do %>
  <%= label_tag "File:" %>
  <%= file_field_tag :file %>
  <%= submit_tag "Upload" %>
<% end %>


<div class="header">
  <h1>Update contents from yml locale files</h1>
</div>

<p>Update all your application translations from the yml files.<br/>
</p>
<%= button_to "Update", run_update_interpret_tools_path %>


<div class="header">
  <h1>Dump .yml contents into database</h1>
</div>

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

<% if Rails.env == "production" %>
  <p><b>MY GOD!!! You're in PRODUCTION!! You're sure you wanna do this??</b></p>
<% end %>

<p>
<%= button_to "Dump", dump_interpret_tools_path %>
</p>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
interpret-0.2.0 app/views/interpret/tools/index.html.erb
interpret-0.1.5 app/views/interpret/tools/index.html.erb