Subversion-Projekte lars-tiefland.cakephp

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/* SVN FILE: $Id: inflections.php 7945 2008-12-19 02:16:01Z gwoo $ */
3
/**
4
 * Custom Inflected Words.
5
 *
6
 * This file is used to hold words that are not matched in the normail Inflector::pluralize() and
7
 * Inflector::singularize()
8
 *
9
 * PHP versions 4 and %
10
 *
11
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
12
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
13
 *
14
 * Licensed under The MIT License
15
 * Redistributions of files must retain the above copyright notice.
16
 *
17
 * @filesource
18
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
19
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
20
 * @package       cake
21
 * @subpackage    cake.app.config
22
 * @since         CakePHP(tm) v 1.0.0.2312
23
 * @version       $Revision: 7945 $
24
 * @modifiedby    $LastChangedBy: gwoo $
25
 * @lastmodified  $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
26
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
27
 */
28
/**
29
 * This is a key => value array of regex used to match words.
30
 * If key matches then the value is returned.
31
 *
32
 *  $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice');
33
 */
34
	$pluralRules = array();
35
/**
36
 * This is a key only array of plural words that should not be inflected.
37
 * Notice the last comma
38
 *
39
 * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox');
40
 */
41
	$uninflectedPlural = array();
42
/**
43
 * This is a key => value array of plural irregular words.
44
 * If key matches then the value is returned.
45
 *
46
 *  $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers')
47
 */
48
	$irregularPlural = array();
49
/**
50
 * This is a key => value array of regex used to match words.
51
 * If key matches then the value is returned.
52
 *
53
 *  $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i')
54
 */
55
	$singularRules = array();
56
/**
57
 * This is a key only array of singular words that should not be inflected.
58
 * You should not have to change this value below if you do change it use same format
59
 * as the $uninflectedPlural above.
60
 */
61
	$uninflectedSingular = $uninflectedPlural;
62
/**
63
 * This is a key => value array of singular irregular words.
64
 * Most of the time this will be a reverse of the above $irregularPlural array
65
 * You should not have to change this value below if you do change it use same format
66
 *
67
 * $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother')
68
 */
69
	$irregularSingular = array_flip($irregularPlural);
70
?>