-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added inline validation strings for en, de and de-CH #1274
added inline validation strings for en, de and de-CH #1274
Conversation
Ok, thank you. Yes, it's the better idea in same branch ;) I try to review this week, and I have to update the todo.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kohlerdominik Can you fix these typos ? Thanks ;)
src/en/validation-inline.php
Outdated
'string' => 'This string must be between :min and :max characters.', | ||
'array' => 'This content must have between :min and :max items.', | ||
], | ||
'boolean' => 'This field field must be true or false.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field field
src/en/validation-inline.php
Outdated
'ends_with' => 'This must end with one of the following: :values.', | ||
'exists' => 'The selected value is invalid.', | ||
'file' => 'The content must be a file.', | ||
'filled' => 'This field field must have a value.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field field
src/en/validation-inline.php
Outdated
'numeric' => 'The value must be greater than or equal :value.', | ||
'file' => 'The file size must be greater than or equal :value kilobytes.', | ||
'string' => 'The string must be greater than or equal :value characters.', | ||
'array' => 'The Content must have :value items or more.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Content to content
src/en/validation-inline.php
Outdated
'required_with_all' => 'This field is required when :values are present.', | ||
'required_without' => 'This field is required when :values is not present.', | ||
'required_without_all' => 'This field is required when none of :values are present.', | ||
'same' => 'The Value of this field must match the one from :other.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value to value
src/de-CH/validation-inline.php
Outdated
'numeric' => 'Der Wert muss kleiner :value sein.', | ||
'file' => 'Die Datei muss kleiner :value Kilobytes gross sein.', | ||
'string' => 'Die Zeichenkette muss kleiner :value Zeichen lang sein.', | ||
'array' => ':Der Inhalt muss kleiner :value Elemente haben.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:Der ?
src/de/validation-inline.php
Outdated
'numeric' => 'Der Wert muss kleiner als :value sein.', | ||
'file' => 'Die Datei muss kleiner als :value Kilobytes sein.', | ||
'string' => 'Die Zeichenkette muss kürzer als :value Zeichen sein.', | ||
'array' => ':Der Inhalt muss weniger als :value Elemente haben.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:Der ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed typos
Thank you |
Big thanks for the intensive review and the fixes :) |
PR for #1268
As discussed the translated strings for en, de (and de-CH).
@caouecs I made separate, non overlapping files for this. I think, maintaining them in a different branch might not be optimal. However, I'm open for other inputs where to put and how to name the files.