falrc Posted February 21, 2012 Share Posted February 21, 2012 Hi all. Anyone got some tricks to my problem? The problem is that in tpl files the following characters wont show. Æ æ Ø ø Å å When i use one of these Norwegian Characters the whole text disapears. Any tips. Thanks in advance. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 Hello, This is due to character encoding. Try to convert your file to UTF-8 or use the html entities for those characters. We would recommend the latter. Check this site for the codes. Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 Hello, This is due to character encoding. Try to convert your file to UTF-8 or use the html entities for those characters. We would recommend the latter. Check this site for the codes. Thanks for a quick reply. If i use HTML entities like this: ø It will only display that, not the letter. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 You need ';' too. E.g.: Æ or Æ Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 Sorry, forget the ; in last post. But i did, wont work, not with name or number. http://bildr.no/view/1112694 Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 Please post the part of the code where you have this. Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 <input type="submit" name="submit_search" value="{l s='Søk' mod='blocksearch'}" class="button button_search" /> I cant write anything with ø or Ø If i write Hello, Search or any other word without the characters it shows. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 The character is not showing because it is processed by PHP and is output as such. You should enter your word without accents, just latin characters, then in BackOffice -> Translations replace them with the proper letter. 1 Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 Yeah, tried that also. Cant do that. The module translation wont save. All other translations save. But not Modules. All php and chmods are correct. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 Yeah, tried that also. Cant do that. The module translation wont save. All other translations save. But not Modules. All php and chmods are correct. Do you get an error message? Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 No Error. I open the translation page, write my translations and saves. " All changes saved " But when i go in again to edit, the fields are still blank. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 Are your files writable? Are you sure the values are in the $_POST array? Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 All files / folders got the right premissions, and have checked for the translations twice. Not sure what you are pointing to with $_POST Link to comment Share on other sites More sharing options...
falrc Posted February 21, 2012 Author Share Posted February 21, 2012 Ok, have now fixed this. The problem is that the modules inside /themes/yourtheme/modules/ wont accept translations through BO. I renamed the /themes/yourtheme/modules/ to /themes/yourtheme/BUGGEDmodules/ so PrestaShop wont find them. I copied all the modules from the theme to the root /module folder. After that all is working perfect. =) Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 21, 2012 Share Posted February 21, 2012 Happy you worked it out. Please mark the topic as [sOLVED] 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