JeffreyWay/Easy-WordPress-Custom-Post-Types — pull request #12 by shakyShane (2012-09-06 21:04:16+00:00)
Title: Improved Labels

Hi there.

This pull-request includes an improved way to handle the labels associated with the custom-post-types.

Problem with original :
If I wanted a 'gallery' post type, my labels would read 'gallerys'.

My implementation includes the ability to provide a separate plural version also as an argument.

`$gallery= new JW_Post_Type('Gallery', array(
'taxonomies' => array('category', 'post_tag'),
'plural_name' => 'Galleries'
);`

Also the same is true if the user would like to use a plural as the post-type name :

`$gallery= new JW_Post_Type('Galleries', array(
'taxonomies' => array('category', 'post_tag'),
'singular_name' => 'Gallery'
);`

And finally if nothing is provided, the 's' gets appended.