4 * Ajatus - Distributed CRM
5 * @requires jQuery v1.2.1
7 * Copyright (c) 2007 Jerry Jalava <jerry.jalava@gmail.com>
8 * Copyright (c) 2007 Nemein Oy <http://nemein.com>
9 * Website: http://ajatus.info
10 * Licensed under the GPL license
11 * http://www.gnu.org/licenses/gpl.html
16 $.ajatus
= $.ajatus
|| {};
17 $.ajatus
.i10n
= $.ajatus
.i10n
|| {};
19 $.ajatus
.i10n
.currency
= {
24 $.ajatus
.i10n
.dict
= {
27 "distributed crm": "Distributed CRM",
28 "loading ajatus": "Loading Ajatus",
32 "continue": "Continue",
36 "archived": "Archived",
39 "undelete": "Undelete",
45 "create %s": "Create %s",
48 "add field": "Add field",
52 "description": "Description",
54 "firstname": "Firstname",
55 "lastname": "Lastname",
67 "selection": "Selection",
69 "global tag": "Global Tag",
70 "related objects": "Related Objects",
72 "select one": "Select one",
74 "preview mode": "Preview",
76 "empty results": "Empty results",
77 "no %s found": "No %s found.",
80 "installing": "Installing",
81 "uninstalling": "Uninstalling",
82 "installing application database": "Installing application database",
83 "uninstalling application database": "Uninstalling application database",
84 "preparing application database": "Preparing application database",
85 "installing application tags database": "Installing application tags database",
86 "uninstalling application tags database": "Uninstalling application tags database",
87 "installing application content database": "Installing application content database",
88 "uninstalling application content database": "Uninstalling application content database",
95 "archiver": "Archiver",
96 "archived": "Archived",
100 "frontpage": "Frontpage",
102 "preferences": "Preferences",
106 "view item": "View item",
110 "hour report": "Hour report",
113 "contact": "Contact",
114 "expense": "Expense report",
117 "unknown document action": "Unknown document action",
118 "unknown action %s requested for object %s!": "Unknown action %s requested for object %s!",
119 "object deleted": "Object deleted",
120 "object %s moved to trash.": "Object %s moved to trash.",
121 "object %s removed from ajatus.": "Object %s removed from Ajatus.",
122 "object restored": "Object restored",
123 "object %s restored succesfully.": "Object %s restored succesfully.",
124 "emptying action pool": "Emptying action pool",
125 "running %s pooled actions.": "Running %s pooled actions.",
128 "test %s": "Testing %s",
129 "%d comment": "%d comment",
130 "%d comment in %d doc": "%d comment in %d doc",
136 $.ajatus
.i10n
.inflections
['en_GB'] = {
138 [/(quiz)$/i, "$1zes" ],
139 [/^(ox)$/i, "$1en" ],
140 [/([m|l])ouse$/i, "$1ice" ],
141 [/(matr|vert|ind)ix|ex$/i, "$1ices" ],
142 [/(x|ch|ss|sh)$/i, "$1es" ],
143 [/([^aeiouy]|qu)y$/i, "$1ies" ],
144 [/(hive)$/i, "$1s" ],
145 [/(?:([^f])fe|([lr])f)$/i, "$1$2ves"],
147 [/([ti])um$/i, "$1a" ],
148 [/(buffal|tomat)o$/i, "$1oes" ],
149 [/(bu)s$/i, "$1ses" ],
150 [/(alias|status)$/i, "$1es" ],
151 [/(octop|vir)us$/i, "$1i" ],
152 [/(ax|test)is$/i, "$1es" ],
157 [/(quiz)zes$/i, "$1" ],
158 [/(matr)ices$/i, "$1ix" ],
159 [/(vert|ind)ices$/i, "$1ex" ],
161 [/(alias|status)es$/i, "$1" ],
162 [/(octop|vir)i$/i, "$1us" ],
163 [/(cris|ax|test)es$/i, "$1is" ],
164 [/(shoe)s$/i, "$1" ],
166 [/(bus)es$/i, "$1" ],
167 [/([m|l])ice$/i, "$1ouse" ],
168 [/(x|ch|ss|sh)es$/i, "$1" ],
169 [/(m)ovies$/i, "$1ovie" ],
170 [/(s)eries$/i, "$1eries"],
171 [/([^aeiouy]|qu)ies$/i, "$1y" ],
172 [/([lr])ves$/i, "$1f" ],
173 [/(tive)s$/i, "$1" ],
174 [/(hive)s$/i, "$1" ],
175 [/([^f])ves$/i, "$1fe" ],
176 [/(^analy)ses$/i, "$1sis" ],
177 [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, "$1$2sis"],
178 [/([ti])a$/i, "$1um" ],
179 [/(n)ews$/i, "$1ews" ],
185 ['child', 'children'],
187 ['person', 'people' ]
199 ordinalize: function(number
) {
200 if (11 <= parseInt(number
) % 100 && parseInt(number
) % 100 <= 13) {
201 return number
+ "th";
203 switch (parseInt(number
) % 10) {
205 return number
+ "st";
207 return number
+ "nd";
209 return number
+ "rd";
211 return number
+ "th";