Skip to content
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

Localized label in validation rules #2868

Merged
merged 4 commits into from
Apr 22, 2020

Conversation

michalsn
Copy link
Member

Description
This pull request allows the easy localization of labels in form validation rules.

Using a "dot notation" for a label in validation rules, like: Foo.bar will search for file en/Foo.php and line bar. If the file or line doesn't exist the usual text will be returned.

Ref: #2845

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@lonnieezell lonnieezell merged commit e3c6629 into codeigniter4:develop Apr 22, 2020
@michalsn michalsn deleted the localized_label branch July 3, 2020 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants