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
.datetime
= {
29 $.ajatus
.i10n
.dict
= {
32 "distributed crm": "Distributed CRM",
33 "loading ajatus": "Loading Ajatus",
37 "continue": "Continue",
41 "archived": "Archived",
42 "archived item": "Archived item",
43 "archived %": "Archived %s",
44 "unarchive": "Unarchive",
47 "undelete": "Undelete",
55 "create %s": "Create %s",
59 "add field": "Add field",
61 "settings": "Settings",
63 "interval": "Interval",
65 "default value": "default value",
66 "required": "required",
67 "auto saving in": "Auto saving in",
70 "previous": "Previous",
72 "%d of %d": "%d of %d",
73 "duplicate": "Duplicate",
75 "related objects": "Related objects",
78 "description": "Description",
80 "firstname": "Firstname",
81 "lastname": "Lastname",
88 "start": "Start", // This is bit misleading currently (Means start date)
89 "end": "End", // This is bit misleading currently (Means end date)
90 "location": "Location",
98 "selection": "Selection",
100 "global tag": "Global Tag",
101 "new tag created": "New tag created",
102 "created new tag '%s'": "Created new tag '%s'",
103 "tag %s removed from ajatus": "Tag %s removed from Ajatus",
104 "merge selected": "Merge selected",
105 "merging tag %s": "Merging tag %s",
106 "merging &d tag": "Merging %d tag",
107 "fix all broken tags": "Fix all broken tags",
108 "tag fixed": "Tag fixed",
109 "%s fixed successfully": "%s fixed successfully",
110 "missing tags": "Missing tags",
111 "object has missing tags": "Object has missing tags",
113 "related objects": "Related Objects",
115 "select one": "Select one",
117 "preview mode": "Preview",
119 "empty results": "Empty results",
120 "no %s found": "No %s found",
121 "nothing to export": "Nothing to export",
122 "export %s": "Export %s",
124 "field %s is required": "Field %s is required",
127 "installing": "Installing",
128 "uninstalling": "Uninstalling",
129 "installing application database": "Installing application database",
130 "uninstalling application database": "Uninstalling application database",
131 "preparing application database": "Preparing application database",
132 "installing application content database": "Installing application content database",
133 "uninstalling application content database": "Uninstalling application content database",
136 "metadata": "Metadata",
137 "creator": "Creator",
138 "created": "Created",
139 "revisor": "Revisor",
140 "revised": "Revised",
141 "archiver": "Archiver",
142 "archived": "Archived",
143 "deleted": "Deleted",
146 "frontpage": "Frontpage",
148 "preferences": "Preferences",
149 "archive": "Archive",
151 "view item": "View item",
155 "hour report": "Hour report",
158 "contact": "Contact",
159 "expense report": "Expense report",
161 "hour report for": "Hour report for ",
162 "expense report for": "Expense report for ",
165 "unknown document action": "Unknown document action",
166 "unknown action %s requested for object %s!": "Unknown action %s requested for object %s!",
167 "object saved": "Object saved",
168 "%s saved successfully": "%s saved successfully",
169 "object deleted": "Object deleted",
170 "object %s moved to trash.": "Object %s moved to trash.",
171 "object %s removed from ajatus.": "Object %s removed from Ajatus.",
172 "object restored": "Object restored",
173 "object %s restored succesfully.": "Object %s restored succesfully.",
174 "emptying action pool": "Emptying action pool",
175 "running %s pooled actions.": "Running %s pooled actions.",
177 "archive visible": "Archive visible",
178 "archiving all items in view. are you sure?": "Archiving all items in view. Are you sure?",
180 "empty trash": "Empty trash",
181 "deleting all items in trash. are you sure?": "Deleting all items in trash. Are you sure?",
183 "nothing to update": "Nothing to update",
184 "object saved": "Object saved",
185 "%s saved successfully": "%s saved successfully",
186 "you have unsaved changes.": "You have unsaved changes.",
188 // Add field -widget titles and messages
189 "widget %s doesn't support dynamic creation.": "Widget %s doesn't support dynamic creation.",
190 "widget %s doesn't support dynamic settings.": "Widget %s doesn't support dynamic settings.",
191 "edit field %s": "Edit field %s",
192 "add field": "Add field",
193 "select one": "Select one",
194 "configure widget %s": "Configure widget %s",
195 "do you really want to delete item %s": "Do you really want to delete item %s",
199 "language": "Language",
201 "localization": "Localization",
203 "replication": "Replication",
204 "backups": "Backups",
205 "expansions": "Expansions",
206 "auto save": "Auto save",
208 "generated doc title (%s)": "generated doc title (%s)",
210 // Strings used in testing
211 "test %s": "Testing %s",
212 "%d comment": "%d comment",
213 "%d comment in %d doc": "%d comment in %d doc"
216 $.ajatus
.i10n
.inflections
['en_GB'] = {
218 [/(quiz)$/i, "$1zes" ],
219 [/^(ox)$/i, "$1en" ],
220 [/([m|l])ouse$/i, "$1ice" ],
221 [/(matr|vert|ind)ix|ex$/i, "$1ices" ],
222 [/(x|ch|ss|sh)$/i, "$1es" ],
223 [/([^aeiouy]|qu)y$/i, "$1ies" ],
224 [/(hive)$/i, "$1s" ],
225 [/(?:([^f])fe|([lr])f)$/i, "$1$2ves"],
227 [/([ti])um$/i, "$1a" ],
228 [/(buffal|tomat)o$/i, "$1oes" ],
229 [/(bu)s$/i, "$1ses" ],
230 [/(alias|status)$/i, "$1es" ],
231 [/(octop|vir)us$/i, "$1i" ],
232 [/(ax|test)is$/i, "$1es" ],
237 [/(quiz)zes$/i, "$1" ],
238 [/(matr)ices$/i, "$1ix" ],
239 [/(vert|ind)ices$/i, "$1ex" ],
241 [/(alias|status)es$/i, "$1" ],
242 [/(octop|vir)i$/i, "$1us" ],
243 [/(cris|ax|test)es$/i, "$1is" ],
244 [/(shoe)s$/i, "$1" ],
246 [/(bus)es$/i, "$1" ],
247 [/([m|l])ice$/i, "$1ouse" ],
248 [/(x|ch|ss|sh)es$/i, "$1" ],
249 [/(m)ovies$/i, "$1ovie" ],
250 [/(s)eries$/i, "$1eries"],
251 [/([^aeiouy]|qu)ies$/i, "$1y" ],
252 [/([lr])ves$/i, "$1f" ],
253 [/(tive)s$/i, "$1" ],
254 [/(hive)s$/i, "$1" ],
255 [/([^f])ves$/i, "$1fe" ],
256 [/(^analy)ses$/i, "$1sis" ],
257 [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, "$1$2sis"],
258 [/([ti])a$/i, "$1um" ],
259 [/(n)ews$/i, "$1ews" ],
265 ['child', 'children'],
267 ['person', 'people' ]
280 ordinalize: function(number
) {
281 if (11 <= parseInt(number
) % 100 && parseInt(number
) % 100 <= 13) {
282 return number
+ "th";
284 switch (parseInt(number
) % 10) {
286 return number
+ "st";
288 return number
+ "nd";
290 return number
+ "rd";
292 return number
+ "th";