Project

General

Profile

Actions

Defect #33426

closed

Error messages for Wiki macros are not internationalized

Defect #33426: Error messages for Wiki macros are not internationalized

Added by Go MAEDA over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
I18n
Target version:
Resolution:
Fixed
Affected version:

Description

Error messages of Wiki macros are always displayed in English regardless of the current user's language setting. In the screenshot below, the user's language is Japanese.


Files

en-error-message-on-ja-page.png (21.8 KB) en-error-message-on-ja-page.png Go MAEDA, 2020-05-10 10:03
33426.patch (5.39 KB) 33426.patch Go MAEDA, 2020-05-10 15:29
fix-r20013.patch (35.7 KB) fix-r20013.patch Go MAEDA, 2020-09-10 12:02

Related issues 1 (0 open — 1 closed)

Related to Redmine - Patch #37668: Fix bad I18n `t` call in macro error handlerClosedGo MAEDAActions

Updated by Go MAEDA over 6 years ago Actions #1

Here is a patch to fix the issue.

Updated by Go MAEDA over 6 years ago Actions #2

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

Updated by Go MAEDA about 6 years ago Actions #3

  • Subject changed from Error messages of Wiki macros are not internationalized to Error messages for Wiki macros are not internationalized
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch.

Updated by Go MAEDA about 6 years ago Actions #4

Error messages in macro method that is used when making a macro should not be internationalized for the following reasons:

  • Macros are defined during the startup process of Redmine. At that point, I18n strings are not available yet
  • The error messages appear only in logs, not UI

The attached patch partially reverts the change.

Updated by Go MAEDA about 6 years ago Actions #5

  • Status changed from Reopened to Closed

Go MAEDA wrote:

Error messages in macro method that is used when making a macro should not be internationalized for the following reasons:

  • Macros are defined during the startup process of Redmine. At that point, I18n strings are not available yet
  • The error messages appear only in logs, not UI

The attached patch partially reverts the change.

Fixed in r20015.

Updated by Go MAEDA about 4 years ago Actions #6

  • Related to Patch #37668: Fix bad I18n `t` call in macro error handler added
Actions

Also available in: PDF Atom