Gideon So Posted June 20, 2018 Share Posted June 20, 2018 I have this error when I put __("some string") to a repeater matrix template file. Error: Call to undefined function __() (line 17 of /path/to/site/site/templates/fields/contents/staff.php) Is it not possible to use __( ) function in repeater matrix field?? Gideon Link to comment Share on other sites More sharing options...
Gideon So Posted June 21, 2018 Author Share Posted June 21, 2018 No one? If this is a bus then I will open an issue in github. If not allow to use __( ) function then how can I do the translation?? Gideon Link to comment Share on other sites More sharing options...
tpr Posted June 21, 2018 Share Posted June 21, 2018 Do you have namespace in that repeater template file? Link to comment Share on other sites More sharing options...
Gideon So Posted June 21, 2018 Author Share Posted June 21, 2018 Oh. No. Let me try and see. But I think the template file is compiled if I don't add Processwire namespace to it? Gideon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now