Zhivko Posted January 13, 2008 Share Posted January 13, 2008 Hi, I started to translate PrestaShop to Bulgarian and I find some problems with character encoding. My database is created with character set UTF-8 and collation utf8_general_ci. Any text in cyrillic which goes to IE titlebar is shown as ?? ?? ?? ?? but it is displayed correctly on the page. Take a look at this picture: I marked with black the cathegory name on the page and with red the page title. How could I solve this problem? I tried to add mysql_query("SET NAMES UTF8"); mysql_query("SET CHARACTER SET UTF8"); in MySQL class, function connect but it doesn't help. I suspect that all files should be saved as utf-8 encoded files instead of ansi. The problem is that saving files using Notepad adds a special characters in the beginning of the file and php header() function fails after that. Link to comment Share on other sites More sharing options...
Matthieu Biart Posted January 18, 2008 Share Posted January 18, 2008 Hi Zhivko ! It was completly our fault, we "un-utf-8-ed" the page title and even transformed it to html special chars before display it ??? Thanks to you for your report. This bug is now fixed and will disappear for the next release But do not worry about it, your datas are corretly inserted on the database, it is just the display which was wrong Link to comment Share on other sites More sharing options...
Zhivko Posted February 9, 2008 Author Share Posted February 9, 2008 Hi, I can't find where to translate the main category 'Accueil'. Could you help me, please? Thank you in advance. Link to comment Share on other sites More sharing options...
Peter Wilson Posted February 11, 2008 Share Posted February 11, 2008 Hello, 'Home' / 'Accueil' exists in numerous places throughout PrestaShop. Which incidence of the word are you looking for? Can you post a screenshot please? Link to comment Share on other sites More sharing options...
Zhivko Posted February 11, 2008 Author Share Posted February 11, 2008 Hi, I see this Accueil only in the site map at the top of categories tree. In the back office it appears in several places but they are not so important. The important place is the front office. Link to comment Share on other sites More sharing options...
Peter Wilson Posted February 13, 2008 Share Posted February 13, 2008 Hi Zhivko, All incidents of 'Home'/'Accueil' in the Front Office should be translatable in the Front Office section of the Translations (Back Office >> Tools >> Translations). When you say 'sitemap', do you mean the Sitemap as seen on the PrestaShop demo here : http://www.prestashop.com/demo/sitemap.php ? If so, that seems to be translatable according to our tests. If you are referring to a different part of the Front Office, can you post a screenshot please? Thanks UPDATE: Please export your Bulgarian translation using PrestaShop v0.9.7, otherwise the file will be incomplete. Link to comment Share on other sites More sharing options...
Zhivko Posted February 14, 2008 Author Share Posted February 14, 2008 Hi Peter, Yes, it is the same page. I translated most of the sitemap file but I don't find where to translate 'Home'. I looked at the code in sitemap.php and I see that all categories names are read from database, not from file. The name for category 1 (Home) in ps_category_lang for lang_id = 2 (bulgarian in my database) is 'Accueil' and it is displayed on the sitemap page. Link to comment Share on other sites More sharing options...
Peter Wilson Posted March 6, 2008 Share Posted March 6, 2008 Hi all, As we prepare the next release of PrestaShop, we are trying to integrate as many translations as possible into the default solution. If someone has a Bulgarian translation ready to share, please post it as soon as possible, we would love to include it! Thank you in advance. 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