In PHP we have sprintf / printf to properly format language strings, but do we got any equivalent for javascript? There's nothing documented about it on the wiki.
On Wed, 2011-07-06 at 12:34 +0200, Tyron Madlener wrote:
In PHP we have sprintf / printf to properly format language strings, but do we got any equivalent for javascript? There's nothing documented about it on the wiki.
Please try looking in ./phpmyadmin/js/jquery/jquery.sprintf.js Never used it or even looked at it, but it sounds like what you want.
Rouslan
On Wed, Jul 6, 2011 at 12:37 PM, Rouslan Placella rouslan@placella.com wrote:
On Wed, 2011-07-06 at 12:34 +0200, Tyron Madlener wrote:
In PHP we have sprintf / printf to properly format language strings, but do we got any equivalent for javascript? There's nothing documented about it on the wiki.
Please try looking in ./phpmyadmin/js/jquery/jquery.sprintf.js Never used it or even looked at it, but it sounds like what you want.
Oh nice, thanks.
Rouslan
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
On Wed, Jul 6, 2011 at 12:47 PM, Tyron Madlener tyronx@gmail.com wrote:
On Wed, Jul 6, 2011 at 12:37 PM, Rouslan Placella rouslan@placella.com wrote:
On Wed, 2011-07-06 at 12:34 +0200, Tyron Madlener wrote:
In PHP we have sprintf / printf to properly format language strings, but do we got any equivalent for javascript? There's nothing documented about it on the wiki.
Please try looking in ./phpmyadmin/js/jquery/jquery.sprintf.js Never used it or even looked at it, but it sounds like what you want.
Oh nice, thanks.
Just tried creating an account on the pma wiki to add a note about $.sprintf(), but this captcha is horribly hard to read (and every time i mistype i have to reenter the password) - can't we replace it with recaptcha or something?
Rouslan
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Hi
Dne Wed, 6 Jul 2011 12:59:43 +0200 Tyron Madlener tyronx@gmail.com napsal(a):
Just tried creating an account on the pma wiki to add a note about $.sprintf(), but this captcha is horribly hard to read (and every time i mistype i have to reenter the password) - can't we replace it with recaptcha or something?
It should be possible to replace it with recaptcha, any strong opinions against it?
Hi
Dne Thu, 7 Jul 2011 16:12:31 +0200 Michal Čihař michal@cihar.com napsal(a):
Dne Wed, 6 Jul 2011 12:59:43 +0200 Tyron Madlener tyronx@gmail.com napsal(a):
Just tried creating an account on the pma wiki to add a note about $.sprintf(), but this captcha is horribly hard to read (and every time i mistype i have to reenter the password) - can't we replace it with recaptcha or something?
It should be possible to replace it with recaptcha, any strong opinions against it?
Actually looking at http://www.mediawiki.org/wiki/Extension:ConfirmEdit#ReCaptcha it might not be the best idea:
Unfortunately, reCAPTCHA might be a victim of its own success - as of 2011, some spammers appear to have figured out a way to bypass it, either through character recognition or by using humans. For that reason, it is not necessarily recommended.
Though I'm still open to other opinions.
On Thu, Jul 7, 2011 at 5:15 PM, Michal Čihař michal@cihar.com wrote:
Hi
Dne Thu, 7 Jul 2011 16:12:31 +0200 Michal Čihař michal@cihar.com napsal(a):
Dne Wed, 6 Jul 2011 12:59:43 +0200 Tyron Madlener tyronx@gmail.com napsal(a):
Just tried creating an account on the pma wiki to add a note about $.sprintf(), but this captcha is horribly hard to read (and every time i mistype i have to reenter the password) - can't we replace it with recaptcha or something?
It should be possible to replace it with recaptcha, any strong opinions against it?
Actually looking at http://www.mediawiki.org/wiki/Extension:ConfirmEdit#ReCaptcha it might not be the best idea:
Unfortunately, reCAPTCHA might be a victim of its own success - as of 2011, some spammers appear to have figured out a way to bypass it, either through character recognition or by using humans. For that reason, it is not necessarily recommended.
Though I'm still open to other opinions.
How about some own anti-spam solution ala http://www.90percentofeverything.com/2011/03/25/fk-captcha/
Let me know if I can assist with anything. Maybe there's some honeypot / timestamp analysis thingy for mediawiki somewhere?
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
2011/7/7 Tyron Madlener tyronx@gmail.com:
On Thu, Jul 7, 2011 at 5:15 PM, Michal Čihař michal@cihar.com wrote:
Hi
Dne Thu, 7 Jul 2011 16:12:31 +0200 Michal Čihař michal@cihar.com napsal(a):
Dne Wed, 6 Jul 2011 12:59:43 +0200 Tyron Madlener tyronx@gmail.com napsal(a):
Just tried creating an account on the pma wiki to add a note about $.sprintf(), but this captcha is horribly hard to read (and every time i mistype i have to reenter the password) - can't we replace it with recaptcha or something?
It should be possible to replace it with recaptcha, any strong opinions against it?
Actually looking at http://www.mediawiki.org/wiki/Extension:ConfirmEdit#ReCaptcha it might not be the best idea:
Unfortunately, reCAPTCHA might be a victim of its own success - as of 2011, some spammers appear to have figured out a way to bypass it, either through character recognition or by using humans. For that reason, it is not necessarily recommended.
Though I'm still open to other opinions.
How about some own anti-spam solution ala http://www.90percentofeverything.com/2011/03/25/fk-captcha/
Let me know if I can assist with anything. Maybe there's some honeypot / timestamp analysis thingy for mediawiki somewhere?
There's also seems other solutions than using a captcha on the mediawiki site: http://www.mediawiki.org/wiki/Manual:Combating_spam
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Hi
Dne Thu, 7 Jul 2011 17:35:14 +0300 Tyron Madlener tyronx@gmail.com napsal(a):
2011/7/7 Tyron Madlener tyronx@gmail.com:
How about some own anti-spam solution ala http://www.90percentofeverything.com/2011/03/25/fk-captcha/
Let me know if I can assist with anything. Maybe there's some honeypot / timestamp analysis thingy for mediawiki somewhere?
I have not found any so far. Also I don't know much of MediaWiki internals to implement such solution.
There's also seems other solutions than using a captcha on the mediawiki site: http://www.mediawiki.org/wiki/Manual:Combating_spam
Well, we were using most of them. I've added using DNS blacklist and changed captcha to SimpleCaptcha, which should be quite easy to solve. Let's see how it will work with spammers.
On Thu, Jul 7, 2011 at 5:57 PM, Michal Čihař michal@cihar.com wrote:
Hi
Dne Thu, 7 Jul 2011 17:35:14 +0300 Tyron Madlener tyronx@gmail.com napsal(a):
2011/7/7 Tyron Madlener tyronx@gmail.com:
How about some own anti-spam solution ala http://www.90percentofeverything.com/2011/03/25/fk-captcha/
Let me know if I can assist with anything. Maybe there's some honeypot / timestamp analysis thingy for mediawiki somewhere?
I have not found any so far. Also I don't know much of MediaWiki internals to implement such solution.
There's also seems other solutions than using a captcha on the mediawiki site: http://www.mediawiki.org/wiki/Manual:Combating_spam
Well, we were using most of them. I've added using DNS blacklist and changed captcha to SimpleCaptcha, which should be quite easy to solve. Let's see how it will work with spammers.
Cool thanks, signing up now :D
If too many spammers get through, I'll look into the mediawiki code and see if I can implement something quick.
-- Michal Čihař | http://cihar.com | http://blog.cihar.com
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Another l10n related question. Can language strings contain simple html formatting such as <p>, <b> and <br>?
If not, I will need to split up one language string into 5 seperate ones.
On Wed, Jul 6, 2011 at 1:34 PM, Tyron Madlener tyronx@gmail.com wrote:
In PHP we have sprintf / printf to properly format language strings, but do we got any equivalent for javascript? There's nothing documented about it on the wiki.
Another question: What about date formats? Just make it a regular l10n string?
On Mon, Jul 11, 2011 at 1:38 PM, Tyron Madlener tyronx@gmail.com wrote:
Another l10n related question. Can language strings contain simple html formatting such as <p>, <b> and <br>?
If not, I will need to split up one language string into 5 seperate ones.
On Wed, Jul 6, 2011 at 1:34 PM, Tyron Madlener tyronx@gmail.com wrote:
In PHP we have sprintf / printf to properly format language strings, but do we got any equivalent for javascript? There's nothing documented about it on the wiki.
Hi
Dne Mon, 11 Jul 2011 19:20:42 +0300 Tyron Madlener tyronx@gmail.com napsal(a):
Another question: What about date formats? Just make it a regular l10n string?
There is already strftime based l10n string for datetime, so same should be used for date as well.
Hi
Dne Mon, 11 Jul 2011 13:38:40 +0300 Tyron Madlener tyronx@gmail.com napsal(a):
Another l10n related question. Can language strings contain simple html formatting such as <p>, <b> and <br>?
If not, I will need to split up one language string into 5 seperate ones.
They can, but sometimes it is better to split up the message. I'd do it at lest for separate paragraphs.