Translation missing for some locales and not others

Added by Daniel Dehennin over 3 years ago

Hello,

After upgrading a redmine 1.4.4 to 2.3.4 I have some translation missing: en.XXXXX in place of labels for the en locale, see http://dev-eole.ac-dijon.fr

For example, in /my/account, if I want to change the local I have in the list Translation missing: en.general_lang_name instead of en.

It looks like the english local is not used but I have nothing in the logs for errors in local handling, even in debug mode.

The en.yml file is in place and readable:

redmine@redmine:~/redmine-2.3.4/$ md5sum config/locales/en.yml 
5b9555ba04cee05233a57daa83f6b23a  config/locales/en.yml

Sometimes, anonymous users in english local got error 500 when displaying issues, resulting in the following logs:

Started GET "/issues/7701" for 194.167.18.244 at 2014-03-20 11:15:55 +0100
Processing by IssuesController#show as HTML
  Parameters: {"id"=>"7701"}
  Current user: dad (id=17)
  Rendered issues/_action_menu.html.erb (8.7ms)
  Rendered issue_relations/_form.html.erb (2.5ms)
  Rendered issues/_relations.html.erb (4.4ms)
  Rendered issues/_changesets.html.erb (15.3ms)
  Rendered issues/_history.html.erb (21.2ms)
  Rendered issues/_action_menu.html.erb (4.5ms)
  Rendered issues/_form_custom_fields.html.erb (5.1ms)
  Rendered issues/_attributes.html.erb (88.4ms)
  Rendered issues/_form.html.erb (182.9ms)
  Rendered attachments/_form.html.erb (3.3ms)
  Rendered issues/_edit.html.erb (202.5ms)
  Rendered issues/show.html.erb within layouts/base (435.0ms)
Completed 500 Internal Server Error in 555ms

ActionView::Template::Error (translation missing: en.number.human.storage_units.format):
    18:       :onchange => 'addInputFiles(this);',
    19:       :data => {
    20:         :max_file_size => Setting.attachment_max_size.to_i.kilobytes,
    21:         :max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
    22:         :max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
    23:         :upload_path => uploads_path(:format => 'js'),
    24:         :description_placeholder => l(:label_optional_description)
  app/views/attachments/_form.html.erb:21:in `_app_views_attachments__form_html_erb___2281076377660499952_51663740'
  app/views/issues/_edit.html.erb:41:in `block in _app_views_issues__edit_html_erb___3122375321613530505_59692380'
  app/helpers/application_helper.rb:948:in `labelled_form_for'
  app/views/issues/_edit.html.erb:1:in `_app_views_issues__edit_html_erb___3122375321613530505_59692380'
  app/views/issues/show.html.erb:132:in `_app_views_issues_show_html_erb__697445413843165699_36823880'
  app/controllers/issues_controller.rb:119:in `block (2 levels) in show'
  app/controllers/issues_controller.rb:116:in `show'

Is there a way to debug this?

Regards.

RAILS_ENV=production script/about

Environment:
  Redmine version                2.3.4.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  redmine_banner                 0.0.9
  redmine_git_hosting            0.6.2
  redmine_improved_searchbox     0.0.3
  redmine_plugin_views_revisions 0.0.1