Hi YOP Team,
It took me more than I was expecting, mostly because I had to do some other things simultaneously, but I managed to find out what I had to change, so as if someone uses the QTranslate plugin and not WPML for translation, then he/she will be able to insert The qtranslate quicktags (eg. [:en]english text[:de]Deutsch text ).
You said that you do not use __(), but you use it for all your text messages. The problem for me was that I had to use different language text, not for the messages themselves, but for the input texts that you have in backend options of the plugin.
You can see my txt file
for the changes that I made to the code and if you want you can integrate them to your code, because it does not alter the behavior of your plugin, (at least I think so), but it gives someone the opportunity to use the quicktags of the so popular QTranslate wordpress plugin.
Now I have to say that I faced a few problems running your plugin in my
localhost server, so I decided to setup a partial duplicate of my site online, so as to find out if these problems keep on bothering me. Some of them were gone but a few still bother me.
You can visit this test site of mine that I have set up with real content and if you think that you must have login credentials to find out more for helping me to solve the problems that I face, please tell me where to send you this info.
The address of the test site is http://www.redheadillusion.com/testred
If you omit the word testred you will visit the actual site.
In the test site you will see that I have set up both your plugin and the WP-Polls plugin. If you play a little with the WP-Polls plugin you will find out that its behavior according to the chosen language that is being displayed, is correct to all the actions that you decide to follow using it. (for example voting, seeing the results and return
back to vote again). With your plugin I couldn't manage to achieve
For simple polls WP-Polls plugin fits my needs, but I would like
to have polls that voters should put their answers as well and here comes your plugin which is the right and only I think solution for such a behavior.
So my problems are, trying to list them starting with the most important:
1st. If I push the vote button or click on the view results link the
ajax script does not recognize the language of the site. It uses always the default english language. In WP-Polls plugin I solved it by
adding ?lang='.qtrans_getLanguage() to the end of admin-ajax.php,
so as I had admin-ajax.php?lang='.qtrans_getLanguage() and with
this I managed to pass the correct language to the ajax script.
In file yop_poll_model.php there are three occurrences of the word
admin=ajap.php which I converted them to
admin-ajax.php?lang='.qtrans_getLanguage() but I couldn't get
the result that I wanted to.
2nd. I would like to have other answer as well, but to have the
opportunity to limit this to a number that I would decide, for example to 50. I do not want to have more than the number that I choose to have, because let's say that 1000 voters want to have their opinion, you can easily imagine what would happen to the design of the site, not to mention if your plugin has the ability to manage such a large number of other answers.
and 3rd. The plugin looks nice in sidebar but in archives page does not look the same till the time that you push the button Vote or you click the link View results, then everything become ok.
Thank you very much for your time that you spent on all us to help us to find solutions to our problems.