Quokka Web Posted August 15, 2016 Share Posted August 15, 2016 Hi, I try to display a message in my theme (in footer.tpl) using sprintf {l s='%s %s - My Company. All rights reserved.' sprintf=['©', 'Y'|date]} but it displays nothing. If i don't use sprintf it works. Example: {l s='© 2016 - My Company. All rights reserved.'} Am i missing something? Link to comment Share on other sites More sharing options...
vekia Posted August 15, 2016 Share Posted August 15, 2016 can you try with: %1$s %2$s %3$s variables instead just %s ? Link to comment Share on other sites More sharing options...
Quokka Web Posted August 15, 2016 Author Share Posted August 15, 2016 Actually, it is what I had before so I tried putting %s instead of %1$s. Maybe there is a debug file or a cache file where I can get more information about this problem? Link to comment Share on other sites More sharing options...
Quokka Web Posted August 15, 2016 Author Share Posted August 15, 2016 I answer in case someone else has the same problem. It was a problem of file encoding. The footer.tpl file was encoded in ANSI. I encoded it in UTF-8 and it works now. 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