mrjasongorman Posted February 23, 2016 Share Posted February 23, 2016 I've added __('text') to my template files, but for some reason when i go to add translations in the site translations section it's only detecting header.php, footer.php and home.php as template files that can have translation. Not sure why the other template aren't showing up :/ Link to comment Share on other sites More sharing options...
justb3a Posted February 23, 2016 Share Posted February 23, 2016 What's the extension of your template files? PHP as well? Link to comment Share on other sites More sharing options...
mrjasongorman Posted February 23, 2016 Author Share Posted February 23, 2016 Yeah all of my template files are .php for example it's not picking up about.php which has similar __('text') strings. Link to comment Share on other sites More sharing options...
mrjasongorman Posted February 23, 2016 Author Share Posted February 23, 2016 Is there a way i can override the CMS in code, as to what the translation should be? i've noticed it gives an options to upload JSON files Link to comment Share on other sites More sharing options...
mrjasongorman Posted February 23, 2016 Author Share Posted February 23, 2016 Figured out i can just manually enter the path to my template file at the bottom of the file select page. It then scans the file and picks up the translatable strings. 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