diff --git a/app/views/layouts/rails_i18n_manager/application.html.slim b/app/views/layouts/rails_i18n_manager/application.html.slim index 7c0eb23..533b3a6 100644 --- a/app/views/layouts/rails_i18n_manager/application.html.slim +++ b/app/views/layouts/rails_i18n_manager/application.html.slim @@ -1,4 +1,4 @@ -- @title = "Translations Manager" +- @title = "Translations Manager NB" doctype html html diff --git a/app/views/rails_i18n_manager/translations/import.html.slim b/app/views/rails_i18n_manager/translations/import.html.slim index 82d5e9a..e5fbcc9 100644 --- a/app/views/rails_i18n_manager/translations/import.html.slim +++ b/app/views/rails_i18n_manager/translations/import.html.slim @@ -4,7 +4,7 @@ h2.page-sub-title Import Translations from Source File .row .col-6 - = custom_form_for @form, as: :import_form, url: import_translations_path, method: :post, multipart: true, html: {class: "form-horizontal"} do |f| + = custom_form_for @form, as: :import_form, url: import_translations_path, method: :post, multipart: true, html: {enctype: "multipart/form-data", class: "form-horizontal"} do |f| = f.error_notification = f.field :translation_app_id, label: "App Name", type: :select, collection: RailsI18nManager::TranslationApp.order(name: :asc).pluck(:name, :id) diff --git a/db/migrate/20221001001344_add_rails_i18n_manager_tables.rb b/db/migrate/20221001001344_add_rails_i18n_manager_tables.rb index f3c12de..ea26655 100644 --- a/db/migrate/20221001001344_add_rails_i18n_manager_tables.rb +++ b/db/migrate/20221001001344_add_rails_i18n_manager_tables.rb @@ -18,7 +18,7 @@ def change create_table :rails_i18n_manager_translation_values do |t| t.references :translation_key, index: { name: 'index_translation_values_on_translation_key_id' } t.string :locale, limit: 5 - t.string :translation + t.string :translation, limit: 500 t.datetime :updated_at end