KITAITI Makoto
null+****@clear*****
Sun Feb 15 04:36:54 JST 2015
KITAITI Makoto 2015-02-15 04:36:54 +0900 (Sun, 15 Feb 2015) New Revision: 9d16ac8226de3f1e1749f65cc528e4d5ebd3b1d4 https://github.com/ranguba/epub-searcher/commit/9d16ac8226de3f1e1749f65cc528e4d5ebd3b1d4 Message: Introduce i18n Modified files: app/views/_book.haml app/views/_form_search.haml app/views/books.haml Modified: app/views/_book.haml (+1 -1) =================================================================== --- app/views/_book.haml 2015-02-15 03:57:36 +0900 (7612cb8) +++ app/views/_book.haml 2015-02-15 04:36:54 +0900 (c5717a8) @@ -3,4 +3,4 @@ %h4{:class => 'media-heading'}== #{book['title']} - #{book['author']} = book['file_path'] = form_for :books, url_for(:books, :id => book['_id']), :method => 'delete', :class => 'form_delete_book' do |f| - = f.submit 'Delete', :class => 'btn btn-danger' + = f.submit t('form_delete_book.button'), :class => 'btn btn-danger' Modified: app/views/_form_search.haml (+1 -1) =================================================================== --- app/views/_form_search.haml 2015-02-15 03:57:36 +0900 (e16d330) +++ app/views/_form_search.haml 2015-02-15 04:36:54 +0900 (c3dae98) @@ -3,5 +3,5 @@ %div{:class => 'col-md-6 col-md-offset-2'} %input{:type => 'search', :class => 'form-control', :name => 'q', :value => @query_words, :required => true} %div{:class => 'col-md-2'} - %button{:class => 'form-control btn btn-default'} Search + %button{:class => 'form-control btn btn-default'}== #{t 'form_search.button'} Modified: app/views/books.haml (+2 -2) =================================================================== --- app/views/books.haml 2015-02-15 03:57:36 +0900 (72539fa) +++ app/views/books.haml 2015-02-15 04:36:54 +0900 (deb3da5) @@ -1,8 +1,8 @@ -- content_for(:title) {'Registered books'} +- content_for(:title) {t('books.title')} %div{:class => 'container'} %div{:class => 'page-header'} - %h1= link_to 'Registered books', url_for(:books) + %h1= link_to t('books.title'), url_for(:books) = partial 'form_search' -------------- next part -------------- HTML����������������������������...Download