Extension talk:Validator

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Short description of this extension please119:00, 22 May 2012
Parameter manipulation622:26, 21 March 2012
Undefined index error520:22, 29 February 2012
Describe lists parsemag as alias313:54, 2 October 2011
4.10?111:31, 24 August 2011

Short description of this extension please

Hello,

would somebody please tell me the functionality of this extension in a few words? The extension description doesn't make sense for me. Maybe I'm too silly for that. But many extensions require validator, so it has to be important. Thanks for your help.

Cheers

137.193.68.23912:03, 22 May 2012

It's a kind of library that can be used by other extension. It does not provide functionality on it's own.S

Jeroen De Dauw (talk)19:00, 22 May 2012
 

Parameter manipulation

The reason for manipulating data is to enter "yes" instead of "true"? Please remind that we don't want change any sense! You know that all here is text and you also know that this is not about converting or encoding. Drop it!

217.92.144.16613:37, 16 March 2012

Validator allows a bunch of values for boolean parameters, for example yes/no, on/off, but not true/false actually, might make sense to include this as well. Perhaps also show/hide while we're at it.

Danwe (talk)13:53, 16 March 2012

Yeah, we can add those. The boolean type was never fully implemented so far anyway - if you have on/off, you ought to consider internationalizing these as well :)

One more todo for 0.5.

Jeroen De Dauw (talk)15:02, 16 March 2012

I want to suggest to keep it simple! The attribute can be named SwitchOn the values are true/false.

| SwitchOn=true}}

Furthermore you could handle it with 1 and 0 but than there were no new datatype - Ooh

Anyway you can implement what you want, but if there is no additional benefit it is just absurd...

217.92.144.16614:46, 20 March 2012

So you are saying i18n is absurd? I know some people that might eat you alive for that :)

Jeroen De Dauw (talk)17:30, 20 March 2012

LOL we had learned english and can understand each other, or not?

You want an artificial language in several versions!

I know some people that might eat you alive for that :)

217.92.144.16615:36, 21 March 2012
 
 
 
 
 

Undefined index error

I'm getting the following error on my form pages "Notice: Undefined index: original-value in /extensions/Validator/includes/Validator.php on line 168" Any hints on how I can resolve this? Thanks!

208.127.139.15501:15, 11 February 2011

What version are you using? I suspect this issue has already been fixed. When are you getting it? Using Semantic Forms?

Jeroen De Dauw12:18, 11 February 2011

Hi Jeroen,
I'm getting this notice when using sparql inline query e.g.

{{#sparql: SELECT ?person ?income WHERE { ?person <http://mywiki/property/Income> ?income . } }}

I have:

MediaWiki 1.17.0

Semantic Forms (Version 2.3.2)

Semantic MediaWiki (Version 1.7.0.2)

Any ideas?

Ridmi (talk)08:39, 28 February 2012

Where is this #sparql parser function coming from? It's not part of SMW AFAIK. Also, what version of Validator are you using?

Jeroen De Dauw (talk)17:44, 28 February 2012

It's Version 0.4.13.
But I've just realized the sparql parser function is a part of SMWHalo extension.
So I guess I have to dig in different direction.
Thanks Jeroen.

Ridmi08:18, 29 February 2012

Do note that Halo is probably not compatible with the latest SMW yet. I suggest you look at what requirements it has.

Jeroen De Dauw (talk)20:22, 29 February 2012
 
 
 
 
 

Describe lists parsemag as alias

I have a parserfunction that has 1 alias. The describe parserfunction says: Aliases: parsemag

The error is in line 173 of Validator_Describe.php in Validator 0.4.11:

$description .= $this->msg( 'validator-describe-aliases', 'parsemag', $wgLang->listToText( $aliases ), count( $aliases ) );

Changing $this->msg to wfMsgExt fixes the problem.

-- Nx / talk11:40, 1 October 2011

Thanks for pointing this out. I just removed the parsemag argument. Using wfMsgExt might fix the issue, but will break the behavior of the language parameter.

Jeroen De Dauw23:24, 1 October 2011

Then just change it to:

$description .= wfMsgExt( 'validator-describe-aliases', array( 'parsemag', 'language' => $this->language ), $wgLang->listToText( $aliases ), count( $aliases ) );
-- Nx / talk04:36, 2 October 2011

Awesome - I didn't know you could pass it along like that :)

Jeroen De Dauw13:54, 2 October 2011
 
 
 

Just letting you know that the version for download (e.g. here) is still 4.9 rather than 4.10. Regards,

Cavila MW 1.17, MySQL 5.1.57, Php 5.2.1709:55, 24 August 2011

Indeed. Thanks for notifying me! Fixed now :)

Jeroen De Dauw11:31, 24 August 2011
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox