プロジェクト

全般

プロフィール

Vote #80864

未完了

Parent wrongly translated to "subproject of"

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

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Translations_12
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
12
version_id:
0
issue_org_id:
33420
author_id:
30483
assigned_to_id:
0
comments:
4
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
127
ステータス-->[Needs feedback]


journals

I don't see what's wrong with this. It expresses exactly what it is supposed to do. See the following ASCII:

<pre>
===========================================================
Two root projects, X and Y:
===========================================================

/-------\ /-------\
| X | | Y |
\-------/ \-------/

X and Y have no parent = both are not sub-projects of
(an)other project(s)

===========================================================
One root project, X, and one subproject, Y
===========================================================

/-------\
| X |
\-------/
|
v
/-------\
| Y |
\-------/

X has no parent = is not a sub-project of another project
Y has parent, X = is a sub-project of (parent) project, X

</pre>

--------------------------------------------------------------------------------
Well, I've tried to override the validate_issue at issue.rb. I was trying to force the presence of parent issue. I used the validates prsence of parent , and then when it failed, instead of telling "parent issue is blank", the message was "subproject of is blank".

Maybe the translation is ok, but then the validation is raising

errors.add :field_parent, :blank

instead of

errors.add :parent_issue_id, :blank

Regards
--------------------------------------------------------------------------------
https://github.com/cosmoBots/cosmosys_req_rm/blob/c7ca1a5b309df0985dd50d8d15249b738cdfcbb8/lib/issue_patch.rb#L32

That wss the line. Now I am doing it in another way and it works for me, but when I put this here, the message was not "parent issue is blank", the message was "Subproject of is blank" when no parent issue is set. When I fixed the parent issue, the error dissapeared as expected. The only strange behaviour is the message displayed on that error, because I am not handling projects, just issues.

So, from my opinion, if there is no translation error, then the validates presence of is calling to the wrong message when validation fails.
I've tried to sniff the code to see when the error is raised, but my Rails knowledge is not so strong.
--------------------------------------------------------------------------------
Mischa The Evil wrote:
> Y has parent, X = is a sub-project of (parent) project, X
Typo, correct is:
> Y has parent, Y = is a sub-project of (parent) project, X
--------------------------------------------------------------------------------

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

  • カテゴリTranslations_12 にセット

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

いいね!0
いいね!0