Project

General

Profile

Actions

Feature #5716

closed

I18n module should fall back to English if a translation string was not found

Added by Holger Just almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Translations
Target version:
-
Start date:
2010-06-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

Most of the time, a developer is able to contribute translations for her native tongue and English. It is also rather cumbersome to always having to update the translations files.

The I18n module should therefore directly search for a matching English translation before reporting a missing translation. This would allow to update translation files only when there are really new contributions. it would also prevent the language files getting "soiled" with English texts.


Related issues

Is duplicate of Redmine - Feature #5518: Graceful fallback for "missing translation" neededClosed2010-05-13

Actions
Actions #1

Updated by Felix Schäfer almost 14 years ago

  • Assignee deleted (Azamat Hackimov)

How I many times have I wondered why that wasn't the case already!

(oh, and not sure how much Azamat can do about it, so I removed the auto-assigned-to)

Actions #2

Updated by Azamat Hackimov almost 14 years ago

Yes, this would be very useful. There already opened ticket #5518 about that.

Actions #3

Updated by Azamat Hackimov almost 14 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate
Actions #4

Updated by Jean-Philippe Lang over 13 years ago

Felix Schäfer wrote:

How I many times have I wondered why that wasn't the case already!

Running a rake task to update the locales is not a big deal and people who want to update a translation file can easily see what is not translated yet. Fallbacks can be usefull for plugins that won't provide translations for all/future supported locales but we don't need to make the core slower:

>> Benchmark.ms { 1000.times { I18n.t(:test) } } # 1-level fallback
=> 93.75
>> Benchmark.ms { 1000.times { I18n.t(:test) } } # no fallback
=> 31.25

Fallbacks will be added in 1.2 (see #5518) but we'll keep updating core locales with english strings.

Actions

Also available in: Atom PDF