Skip to content

Commit

Permalink
modifications for pull to release-10
Browse files Browse the repository at this point in the history
  • Loading branch information
everestwitman committed Jul 3, 2017
1 parent 50da867 commit 2048608
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 80 deletions.
2 changes: 0 additions & 2 deletions app/controllers/admin/translation_keys_controller.rb
Expand Up @@ -40,7 +40,6 @@ def authorized?

def show
@skip_authorization = true

render action: :edit
end

Expand All @@ -50,7 +49,6 @@ def edit
end

def update
console
if @translation_key.update(translation_key_params)
flash[:notice] = 'Saved!'
redirect_to @translation_key
Expand Down
11 changes: 0 additions & 11 deletions app/views/admin/translation_keys/edit.html.haml

This file was deleted.

4 changes: 1 addition & 3 deletions app/views/admin/translation_keys/index.html.haml
@@ -1,7 +1,5 @@
- locales = TranslationKey.available_locales




.row.table-utilities
.col-sm-4
%p= page_entries_info @translation_keys
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/fast_gettext.rb
Expand Up @@ -10,5 +10,5 @@
:ignore_fuzzy => true,
# :report_warning => false
)
FastGettext.default_available_locales = ['en', 'fr']
FastGettext.default_available_locales = ['en']
FastGettext.default_text_domain = 'hmis_warehouse'
2 changes: 1 addition & 1 deletion config/routes.rb
Expand Up @@ -228,7 +228,7 @@ def healthcare_routes
end
resources :roles, only: [:index]
end
resources :translation_keys
resources :translation_keys, only: [:index, :update]
resources :translation_text, only: [:update]
end
resource :account, only: [:edit, :update]
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170627154145_create_translation_tables.rb
@@ -1,7 +1,7 @@
class CreateTranslationTables < ActiveRecord::Migration
def self.up
create_table :translation_keys do |t|
t.string :key, :unique=>true, :null=>false
t.string :key, :unique=>true, :null=>false, default: ''
t.timestamps
end
add_index :translation_keys, :key #I am not sure if this helps....
Expand Down
1 change: 0 additions & 1 deletion lib/tasks/sync_po_to_db.rake
Expand Up @@ -2,7 +2,6 @@ desc "synchronise po files with db, creating keys and translations that do not e
task :sync_po_to_db => :environment do
folder = ENV['FOLDER']||'locale'

gem 'grosser-pomo', '>=0.5.1'
require 'pomo'
require 'pathname'

Expand Down
2 changes: 1 addition & 1 deletion locale/en/hmis_warehouse.edit.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: hmis_warehouse 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-03 15:41-0400\n"
"POT-Creation-Date: 2017-07-03 16:24-0400\n"
"PO-Revision-Date: 2017-06-30 14:13-0400\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: English\n"
Expand Down
28 changes: 0 additions & 28 deletions locale/fr/hmis_warehouse.edit.po

This file was deleted.

27 changes: 0 additions & 27 deletions locale/fr/hmis_warehouse.po

This file was deleted.

Empty file.
4 changes: 2 additions & 2 deletions locale/hmis_warehouse.pot
Expand Up @@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: hmis_warehouse 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-03 15:41-0400\n"
"PO-Revision-Date: 2017-07-03 15:41-0400\n"
"POT-Creation-Date: 2017-07-03 16:24-0400\n"
"PO-Revision-Date: 2017-07-03 16:24-0400\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
Expand Down
3 changes: 1 addition & 2 deletions public/502.html
Expand Up @@ -78,8 +78,7 @@ <h3 class="secondary-header">Boston DND Warehouse is offline for a moment while
</div>
</main>
<footer class="footer">
<p>The Boston DND Warehouse is operated by the
Department of Neighborhood Development as the lead agency of the Boston Continuum of Care.</p>
<p>The Boston DND Warehouse is operated by the Department of Neighborhood Development as the lead agency of the Boston Continuum of Care.</p>
</footer>
</body>
</html>

0 comments on commit 2048608

Please sign in to comment.