diff --git a/app/controllers/public/search_controller.rb b/app/controllers/public/search_controller.rb index 0becfc6..55046ab 100644 --- a/app/controllers/public/search_controller.rb +++ b/app/controllers/public/search_controller.rb @@ -29,7 +29,7 @@ class SearchController < PublicController @asset = key send(key) @order << key - @names[key] = getterm(description) + @names[key] = _(description) end @asset = nil diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a26170e..6022d2f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -796,7 +796,7 @@ module ApplicationHelper end } html += "
\n".html_safe if line_size == 0 || ( values.size % line_size ) > 0 - column = object.class.columns_hash[method.to_s] + column = object.class.columns_hash[method.to_s] if object text = ( column ? column.human_name : @@ -1425,7 +1425,7 @@ module ApplicationHelper object = instance_variable_get("@#{name}") object.errors.full_messages.each do |msg| errors << msg - end + end if object end return '' if errors.empty? @@ -1437,11 +1437,6 @@ module ApplicationHelper end end - # FIXME - def observe_field(*args) - '' - end - def private_profile_partial_parameters if profile.person? @action = :add_friend diff --git a/app/helpers/forum_helper.rb b/app/helpers/forum_helper.rb index 858cb27..7d8bd24 100644 --- a/app/helpers/forum_helper.rb +++ b/app/helpers/forum_helper.rb @@ -36,7 +36,7 @@ module ForumHelper :id => "post-#{art.id}" ) } - content_tag('table', content) + (pagination or '') + content_tag('table', content.join) + (pagination or '') end def last_topic_update(article) diff --git a/app/helpers/language_helper.rb b/app/helpers/language_helper.rb index 0d6ea24..081b637 100644 --- a/app/helpers/language_helper.rb +++ b/app/helpers/language_helper.rb @@ -22,7 +22,7 @@ module LanguageHelper if options[:element] == 'dropdown' select_tag('lang', options_for_select(locales.map{|code,name| [name, code]}, current), - :onchange => "document.location.href= #{url_for(params.merge(:lang => 'LANGUAGE')).inspect}.replace(/LANGUAGE/, this.value) ;", + :onchange => "document.location.href= #{url_for(params.merge(:lang => 'LANGUAGE'))}.replace(/LANGUAGE/, this.value) ;", :help => _('The language you choose here is the language used for options, buttons, etc. It does not affect the language of the content created by other users.') ) else diff --git a/app/models/link_list_block.rb b/app/models/link_list_block.rb index f40174e..900b719 100644 --- a/app/models/link_list_block.rb +++ b/app/models/link_list_block.rb @@ -58,7 +58,7 @@ class LinkListBlock < Block def content(args={}) block_title(title) + content_tag('ul', - links.select{|i| !i[:name].blank? and !i[:address].blank?}.map{|i| content_tag('li', link_html(i))}.join(',') + links.select{|i| !i[:name].blank? and !i[:address].blank?}.map{|i| content_tag('li', link_html(i))}.join ) end diff --git a/app/views/cms/select_article_type.html.erb b/app/views/cms/select_article_type.html.erb index 058f471..ed84cdf 100644 --- a/app/views/cms/select_article_type.html.erb +++ b/app/views/cms/select_article_type.html.erb @@ -5,7 +5,7 @@