プロジェクト

全般

プロフィール

Vote #65527

完了

Missing translation (or incorrect translation reference) in r2825

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2009/07/27
期日:
進捗率:

100%

予定工数:
category_id:
2
version_id:
6
issue_org_id:
3678
author_id:
3125
assigned_to_id:
5
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I get, when setting a related issue to an issue, and selecting 'blocks', the following message

"Translation missing, en, field_issue_to"

I added field_issue_to: Related issue to config/locales/en.yml
and it worked.

I don't know if this is the proper solution, or is there somewhere in code that must be changed to field_issue_to_id (because it has the same text).

rails --version

Rails 2.2.2

ruby --version

ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

Last Changed Author: edavis10
Last Changed Rev: 2825
Last Changed Date: 2009-07-27 02:55:43 +0200 (Mon, 27 Jul 2009)


journals

Someway I'm not able to reproduce this error using a clean checkout of the current trunk. @field_issue_to@ seems not to be used by the relations at all AFAICT.
Did you modified your Redmine in some way? Maybe some plugins installed?
--------------------------------------------------------------------------------
Found the real culprit.

Put a non existing issue number and it shows the message. (pic1.png)

If I add the field_issue_to to en.yml then it shows the proper error message. (pic2.png)

Sorry for the misreport.
--------------------------------------------------------------------------------
Happy to see that your problem is solved.

Closing!
--------------------------------------------------------------------------------
Should I open a new issue for this?

It's clearly still a problem.

The message when using a non existing issue (imagine a typo or a similar mistake) shows an error of translation instead of the proper error.

This seems to point at the error handler pointing to a non existing translation item.
--------------------------------------------------------------------------------
Yes, It's still an issue. "translation missing: en, field_issue_to can't be blank"

I can reproduce it by adding non existing issue # or non-numeric values.

--------------------------------------------------------------------------------
Confirmed, entering an invalid issue number or a blank issue number will show a missing translation. Reproduced on http://demo.redmine.org, http://www.redmine.org, and a few other sites.

Should be a simple fix plus some translations.
--------------------------------------------------------------------------------
Fixed in r2835. It looks like the @field_issue_to_id@ was the older translation but in trunk (with Rails 2.2.2), it was looking for @field_issue_to@ instead. Thank you for the bug report and the steps to reproduce.

0.8.x wasn't affected by this.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0