You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks,
I am new here, so please don't blame me if this is not the right place to submit my question/bug report.
In the ar.yml file, the format of error messages is set as:
errors:
format: "%{message}"
this works fine for most of the messages, however, for confirmation it looks like:
confirmation: محتوى %{attribute} لا يتوافق مع %{attribute}
which leads to error messages looking like "password content doesn't match password"
this is obviously a wrong error message, cause the right one should read something like: "password confirmation doesn't match password"
I checked the en.yml file, and there the code looks like:
errors:
format: "%{attribute} %{message}"
...
confirmation: doesn't match %{attribute}
which magically works fine!!! (somehow rails resolves that the %{attribute} in the format and the %{attribute} in the message are two different fields, in Arabic, %{attribute} appears twice in the message, which leads to the wrong error message.)
Is there a way to fix this issue in the ar.yml without rewriting all error messages with the format set to "%{attribute} %{message}"?
The text was updated successfully, but these errors were encountered:
digitalfrost
changed the title
error messages for confirmation in ar.yml
Arabic: error messages for confirmation in ar.yml
Sep 12, 2022
Hi folks,
I am new here, so please don't blame me if this is not the right place to submit my question/bug report.
In the ar.yml file, the format of error messages is set as:
this works fine for most of the messages, however, for confirmation it looks like:
which leads to error messages looking like
"password content doesn't match password"
this is obviously a wrong error message, cause the right one should read something like:
"password confirmation doesn't match password"
I checked the en.yml file, and there the code looks like:
which magically works fine!!! (somehow rails resolves that the %{attribute} in the format and the %{attribute} in the message are two different fields, in Arabic, %{attribute} appears twice in the message, which leads to the wrong error message.)
Is there a way to fix this issue in the ar.yml without rewriting all error messages with the format set to "%{attribute} %{message}"?
The text was updated successfully, but these errors were encountered: