Content
I18n::InvalidPluralizationData in Projects#show
Added by Chate Kantapanit over 10 years ago
This error appears when I click project overview in Thai Language in OpenProject 3.0 Ubuntu 12.04, MySQL (not happen when choose English language)
I18n::InvalidPluralizationData in Projects#show
I18n::InvalidPluralizationData in Projects#show
Showing /home/chate/openproject/app/views/news/_news.html.erb where line #35 raised:
translation data {:other=>"มี %{count} ความคิดเห็น"} can not be used with :count => 1
Extracted source (around line #35):
32: <h4 class='overview'><%= link_to h(news.title), news_path(news) %></h4> 33: <p class="author additional-information"><%= authoring news.created_on, news.author %></p> 34: <div> 35: <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %> 36: <% unless news.summary.blank? %> 37: <div class="summary"><%=h news.summary %></div> 38: <% end %>
Trace of template inclusion: app/views/projects/show.html.erb
Rails.root: /home/chate/openproject
| Full Trace
i18n (0.6.5) lib/i18n/backend/base.rb:139:in `pluralize' i18n (0.6.5) lib/i18n/backend/base.rb:40:in `translate' i18n (0.6.5) lib/i18n/backend/fallbacks.rb:44:in `block (2 levels) in translate' i18n (0.6.5) lib/i18n/backend/fallbacks.rb:43:in `catch' i18n (0.6.5) lib/i18n/backend/fallbacks.rb:43:in `block in translate' i18n (0.6.5) lib/i18n/backend/fallbacks.rb:42:in `each' i18n (0.6.5) lib/i18n/backend/fallbacks.rb:42:in `translate' i18n (0.6.5) lib/i18n.rb:156:in `block in translate' i18n (0.6.5) lib/i18n.rb:152:in `catch' i18n (0.6.5) lib/i18n.rb:152:in `translate' lib/redmine/i18n.rb:42:in `l' app/views/news/_news.html.erb:35:in `_app_views_news__news_html_erb__1848364137494009860_83428800' actionpack (3.2.17) lib/action_view/template.rb:145:in `block in render' activesupport (3.2.17) lib/active_support/notifications.rb:125:in `instrument' actionpack (3.2.17) lib/action_view/template.rb:143:in `render' actionpack (3.2.17) lib/action_view/renderer/partial_renderer.rb:351:in `block in collection_with_template' actionpack (3.2.17) lib/action_view/renderer/partial_renderer.rb:348:in `each' actionpack (3.2.17) lib/action_view/renderer/partial_renderer.rb:348:in `collection_with_template' actionpack (3.2.17) lib/action_view/renderer/partial_renderer.rb:250:in `render_collection' actionpack (3.2.17) lib/action_view/renderer/partial_renderer.rb:234:in `block in render' actionpack (3.2.17) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (3.2.17) lib/active_support/notifications.rb:123:in `block in instrument' activesupport (3.2.17) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.2.17) lib/active_support/notifications.rb:123:in `instrument' actionpack (3.2.17) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionpack (3.2.17) lib/action_view/renderer/partial_renderer.rb:233:in `render' actionpack (3.2.17) lib/action_view/renderer/renderer.rb:41:in `render_partial' actionpack (3.2.17) lib/action_view/renderer/renderer.rb:15:in `render' actionpack (3.2.17) lib/action_view/helpers/rendering_helper.rb:24:in `render' prototype-rails (3.2.1) lib/prototype-rails/rendering.rb:8:in `render_with_update' app/views/projects/show.html.erb:92:in `_app_views_projects_show_html_erb___3489585692239171081_80521780' actionpack (3.2.17) lib/action_view/template.rb:145:in `block in render' activesupport (3.2.17) lib/active_support/notifications.rb:125:in `instrument' actionpack (3.2.17) lib/action_view/template.rb:143:in `render' actionpack (3.2.17) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' actionpack (3.2.17) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (3.2.17) lib/active_support/notifications.rb:123:in `block in instrument' activesupport (3.2.17) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.2.17) lib/active_support/notifications.rb:123:in `instrument' actionpack (3.2.17) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionpack (3.2.17) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' actionpack (3.2.17) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' actionpack (3.2.17) lib/action_view/renderer/template_renderer.rb:45:in `render_template' actionpack (3.2.17) lib/action_view/renderer/template_renderer.rb:18:in `render' actionpack (3.2.17) lib/action_view/renderer/renderer.rb:36:in `render_template' actionpack (3.2.17) lib/action_view/renderer/renderer.rb:17:in `render' actionpack (3.2.17) lib/abstract_controller/rendering.rb:110:in `_render_template' actionpack (3.2.17) lib/action_controller/metal/streaming.rb:225:in `_render_template' actionpack (3.2.17) lib/abstract_controller/rendering.rb:103:in `render_to_body' actionpack (3.2.17) lib/action_controller/metal/renderers.rb:28:in `render_to_body' actionpack (3.2.17) lib/action_controller/metal/compatibility.rb:50:in `render_to_body' actionpack (3.2.17) lib/abstract_controller/rendering.rb:88:in `render' actionpack (3.2.17) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' activesupport (3.2.17) lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /home/chate/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' activesupport (3.2.17) lib/active_support/core_ext/benchmark.rb:5:in `ms' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:40:in `block in render' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' activerecord (3.2.17) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:39:in `render' actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (3.2.17) lib/action_controller/metal/mime_responds.rb:196:in `respond_to' app/controllers/projects_controller.rb:124:in `show' actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.2.17) lib/abstract_controller/base.rb:167:in `process_action' actionpack (3.2.17) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (3.2.17) lib/abstract_controller/callbacks.rb:18:in `block in process_action' activesupport (3.2.17) lib/active_support/callbacks.rb:568:in `_run__660060016070445553__process_action__4376588316363027825__callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback' activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.2.17) lib/abstract_controller/callbacks.rb:17:in `process_action' actionpack (3.2.17) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' activesupport (3.2.17) lib/active_support/notifications.rb:123:in `block in instrument' activesupport (3.2.17) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.2.17) lib/active_support/notifications.rb:123:in `instrument' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:29:in `process_action' actionpack (3.2.17) lib/action_controller/metal/params_wrapper.rb:207:in `process_action' activerecord (3.2.17) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (3.2.17) lib/abstract_controller/base.rb:121:in `process' actionpack (3.2.17) lib/abstract_controller/rendering.rb:45:in `process' actionpack (3.2.17) lib/action_controller/metal.rb:203:in `dispatch' actionpack (3.2.17) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' actionpack (3.2.17) lib/action_controller/metal.rb:246:in `block in action' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:73:in `call' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:73:in `dispatch' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:36:in `call' journey (1.0.4) lib/journey/router.rb:68:in `block in call' journey (1.0.4) lib/journey/router.rb:56:in `each' journey (1.0.4) lib/journey/router.rb:56:in `call' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:608:in `call' request_store (1.0.5) lib/request_store/middleware.rb:9:in `call' /home/chate/.rvm/gems/ruby-2.1.1/bundler/gems/i18n-js-8801f8d17ef9/lib/i18n/js/middleware.rb:11:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' rack (1.4.5) lib/rack/etag.rb:23:in `call' rack (1.4.5) lib/rack/conditionalget.rb:25:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/head.rb:14:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/params_parser.rb:21:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/flash.rb:242:in `call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:341:in `call' activerecord (3.2.17) lib/active_record/query_cache.rb:64:in `call' activerecord (3.2.17) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `_run__282147641760979639__call__644183219417434012__callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback' activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_call_callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:27:in `call' rails-dev-tweaks (0.6.1) lib/rails_dev_tweaks/granular_autoload/middleware.rb:34:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/remote_ip.rb:31:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.17) lib/rails/rack/logger.rb:32:in `call_app' railties (3.2.17) lib/rails/rack/logger.rb:16:in `block in call' activesupport (3.2.17) lib/active_support/tagged_logging.rb:22:in `tagged' railties (3.2.17) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.5) lib/rack/methodoverride.rb:21:in `call' rack (1.4.5) lib/rack/runtime.rb:17:in `call' activesupport (3.2.17) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.5) lib/rack/lock.rb:15:in `call' actionpack (3.2.17) lib/action_dispatch/middleware/static.rb:63:in `call' railties (3.2.17) lib/rails/engine.rb:484:in `call' railties (3.2.17) lib/rails/application.rb:231:in `call' railties (3.2.17) lib/rails/railtie/configurable.rb:30:in `method_missing' /home/chate/.rvm/gems/ruby-2.1.1/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/frame_options.rb:31:in `call' /home/chate/.rvm/gems/ruby-2.1.1/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/json_csrf.rb:18:in `call' rack (1.4.5) lib/rack/content_length.rb:14:in `call' railties (3.2.17) lib/rails/rack/log_tailer.rb:17:in `call' thin (1.5.1) lib/thin/connection.rb:81:in `block in pre_process' thin (1.5.1) lib/thin/connection.rb:79:in `catch' thin (1.5.1) lib/thin/connection.rb:79:in `pre_process' thin (1.5.1) lib/thin/connection.rb:54:in `process' thin (1.5.1) lib/thin/connection.rb:39:in `receive_data' eventmachine (1.0.3) lib/eventmachine.rb:187:in `run_machine' eventmachine (1.0.3) lib/eventmachine.rb:187:in `run' thin (1.5.1) lib/thin/backends/base.rb:63:in `start' thin (1.5.1) lib/thin/server.rb:159:in `start' rack (1.4.5) lib/rack/handler/thin.rb:13:in `run' rack (1.4.5) lib/rack/server.rb:268:in `start' railties (3.2.17) lib/rails/commands/server.rb:70:in `start' railties (3.2.17) lib/rails/commands.rb:55:in `block in <top (required)>' railties (3.2.17) lib/rails/commands.rb:50:in `tap' railties (3.2.17) lib/rails/commands.rb:50:in `<top (required)>' script/rails:6:in `require' script/rails:6:in `<main>' Request Parameters: {"id"=>"project_mgnt_software"}
Show session dump
_csrf_token: "tN+inr+76q3GFG4XRCQeeFVC801jxV+dIPYrrEROTwg=" activity: ["work_packages", "changesets"] query: {:project_id=>2, :filters=>[#<Queries::WorkPackages::Filter:0x00000008fc4268
field=:status_id, operator="o",
values=[“”], validation_context=nil,
errors=#<ActiveModel::Errors:0x00000008fdfc98 base=#<Queries::WorkPackages::Filter:0x00000008fc4268 ...>,
messages={}>>], :group_by=>nil, :display_sums=>false, :column_names=>nil}
session_id: “3f6a8261854a0ab38c18e5c5d4a4ca7b”
updated_at: 2014-03-17 23:39:48 +0700
user_id: 1
work_packages_index_sort: “parent:desc”
@
Show env dump
GATEWAY_INTERFACE: "CGI/1.2" HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" HTTP_ACCEPT_ENCODING: "gzip, deflate" HTTP_ACCEPT_LANGUAGE: "en-us" REMOTE_ADDR: "10.211.55.2" SERVER_NAME: "10.211.55.10" SERVER_PROTOCOL: "HTTP/1.1"
Response
Headers:
None
Please let me know if you need more information.
THanks.
Replies (2)
Hi Chate,
please check this post it might be helpful.
https://www.openproject.org/topics/108?r=841#message-841
Best
Ratzi
Hi Ratzi,
Thank you so much for supporting, this help me to solve this issue.
Regards,
Chate