|
Posts Tagged ‘star’
Aug
30
2008
Using POEdit for translating plugin or themeAll plugin and theme authors that added multilanguage support to their plugins and themes, should provide valid POT file with all needed translation strings. This is not required, but it saves a lot of time for the translators. Translation process needs to produce two files, one with extension MO and the other PO. MO file is the file with actual translation, and the PO is more of a template file that looks like POT but has translation string in it. This PO file is needed if you later need to change and update translation. There are different tools you can use to translate POT file in PO/MO files, and this post will be about POEdit. This is free and multi platform program that works on Windows, Linux and MacOS. I have noticed that POEdit is not working with plural translations as it should, at least with the ones used by WordPress. All my plugins have multi language support. With each plugin you will find POT file that contains base strings for translation. It’s very important to name translated files according to specification for i18n used by WordPress. After you translate them be sure to check if the translation is working! I can’t test it with every langauge, and I will provide translation as is. If someone reports it as bad, I will remove it until something better comes along. Finally, new version is released. The list of changes and new features is very extensive, and you can read it on plugins changelog page. And again, important notice, this is still beta version, and bugs are to be expected. Some parts of the control panel are not fully tested, and there are some things still missing there. Translation POT file is included. If you translate plugin to your language, please sent translation files (both DO and MO) to me, and I will include it with next version. Expect POT file to be updateded with every new version. Some more important changes will follow. But I wanted to point out whatyou can expect to follow with next releases. I will improve on widget(s), control panel and most important, new rating stars rendering that should solve all the problems with different themes and browsers. And for the stable 1.0.0 release there will be ajax support and updated user guide, and I expect a lot bug fixes. New GD Star Rating will be released tomorrow, but now I want to talk about the only big problem that rating plugin has right now. Some users were (are) getting the following error on their blog(s) after rating: Warning: Cannot modify header information - headers already sent by... Problem is not plugin related, but theme related. Plugin uses get_header() WordPress call to save cookies. Cookies must be set before any HTML output to the browser. This get_header() call is ment to load page header. Before this function there should be NO HTML output. All Header elements should go in header.php that is loaded with get_header() method (default case). Another day, and another release. I made mostly cosmetic chaneges to control panel and to the display of stars so I decided to release it right away. You can now control aligment of the rating block and the position of the text for the rating blog. Also, I have added one more text row with some sort of title or message that will be placed above the rating for all 3 types of ratings. For now only text is allowed, but I will work on adding the html in that header. Control panel settings page is a reorganized because the number of options is grown and I like it more if I don’t need to scroll much to see most of the options.
Comments and suggests are welcome as always. |