Project

General

Profile

Actions

Defect #5608

closed

broken with i18n 0.4.0

Added by Chulki Lee over 14 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Translations
Target version:
Start date:
2010-05-28
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

  • Rails 2.3.5
  • Redmine: svn/branches/0.9-stable (r3742), production mode
  • Ruby: 1.8.7, Ruby Enterprise Edition
Processing WelcomeController#index (for ####### at 2010-05-28 11:21:46) [GET]
  Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index

ActionView::TemplateError (missing interpolation argument in "%m/%{count}/%Y %I:%M %p" ({:object=>"2010-05-17 18:37:48 +0900"} given)) on line #22 of app/views/welcome/index.rhtml:
19:             <ul>
20:             <% for project in @projects %>
21:                     <li>
22:                     <%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
23:                     <%= textilizable project.short_description, :project => project %>
24:                     </li>
25:             <% end %>

    /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/i18n-0.4.0/lib/i18n/backend/base.rb:177:in `interpolate_without_deprecated_syntax'
    /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/i18n-0.4.0/lib/i18n/backend/base.rb:48:in `translate'
    /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/i18n-0.4.0/lib/i18n.rb:152:in `t'
    /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/i18n-0.4.0/lib/i18n/backend/base.rb:61:in `localize'
    /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/i18n-0.4.0/lib/i18n.rb:231:in `l'
    lib/redmine/i18n.rb:48:in `format_time'

I'm not sure it's a redmine's bug - i18n 0.3.7 works. config.gem should be more specific.


Files

locales_update.rb (212 Bytes) locales_update.rb Jean-Baptiste Barth, 2010-09-02 12:48

Related issues

Related to Redmine - Feature #6428: Interim solution for i18n >= 0.4ClosedEric Davis2010-09-17

Actions
Related to Redmine - Defect #6461: Erro no template quando tento acessar vários locais do sistemaClosed2010-09-22

Actions
Related to Redmine - Defect #6733: Error 500 after changing Date Format or Time FormatClosed2010-10-24

Actions
Has duplicate Redmine - Defect #6314: Upgrade from 0.9.6 to 1.0.1 failsClosed2010-09-06

Actions
Blocks Redmine - Feature #5518: Graceful fallback for "missing translation" neededClosed2010-05-13

Actions
Actions

Also available in: Atom PDF