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",
44 "undelete": "Undelete",
50 "create %s": "Create %s",
53 "add field": "Add field",
57 "description": "Description",
59 "firstname": "Firstname",
60 "lastname": "Lastname",
66 "start": "Start", // This is bit misleading currently (Means start date)
67 "end": "End", // This is bit misleading currently (Means end date)
68 "location": "Location",
76 "selection": "Selection",
78 "global tag": "Global Tag",
79 "new tag created": "New tag created",
80 "created new tag '%s'": "Created new tag '%s'",
82 "related objects": "Related Objects",
84 "select one": "Select one",
86 "preview mode": "Preview",
88 "empty results": "Empty results",
89 "no %s found": "No %s found.",
91 "field %s is required": "Field %s is required",
94 "installing": "Installing",
95 "uninstalling": "Uninstalling",
96 "installing application database": "Installing application database",
97 "uninstalling application database": "Uninstalling application database",
98 "preparing application database": "Preparing application database",
99 "installing application tags database": "Installing application tags database",
100 "uninstalling application tags database": "Uninstalling application tags database",
101 "installing application content database": "Installing application content database",
102 "uninstalling application content database": "Uninstalling application content database",
105 "creator": "Creator",
106 "created": "Created",
107 "revisor": "Revisor",
108 "revised": "Revised",
109 "archiver": "Archiver",
110 "archived": "Archived",
111 "deleted": "Deleted",
114 "frontpage": "Frontpage",
116 "preferences": "Preferences",
118 "view item": "View item",
122 "hour report": "Hour report",
125 "contact": "Contact",
126 "expense report": "Expense report",
128 "hour report for": "Hour report for ",
129 "expense report for": "Expense report for ",
132 "unknown document action": "Unknown document action",
133 "unknown action %s requested for object %s!": "Unknown action %s requested for object %s!",
134 "object saved": "Object saved",
135 "%s saved successfully": "%s saved successfully",
136 "object deleted": "Object deleted",
137 "object %s moved to trash.": "Object %s moved to trash.",
138 "object %s removed from ajatus.": "Object %s removed from Ajatus.",
139 "object restored": "Object restored",
140 "object %s restored succesfully.": "Object %s restored succesfully.",
141 "emptying action pool": "Emptying action pool",
142 "running %s pooled actions.": "Running %s pooled actions.",
144 // Add field -widget titles and messages
145 "widget %s doesn't support dynamic creation.": "Widget %s doesn't support dynamic creation.",
146 "widget %s doesn't support dynamic settings.": "Widget %s doesn't support dynamic settings.",
147 "settings": "Settings",
148 "edit field %s": "Edit field %s",
150 // Strings used in testing
151 "test %s": "Testing %s",
152 "%d comment": "%d comment",
153 "%d comment in %d doc": "%d comment in %d doc"
156 $.ajatus.i10n.inflections['en_GB'] = {
158 [/(quiz)$/i, "$1zes" ],
159 [/^(ox)$/i, "$1en" ],
160 [/([m|l])ouse$/i, "$1ice" ],
161 [/(matr|vert|ind)ix|ex$/i, "$1ices" ],
162 [/(x|ch|ss|sh)$/i, "$1es" ],
163 [/([^aeiouy]|qu)y$/i, "$1ies" ],
164 [/(hive)$/i, "$1s" ],
165 [/(?:([^f])fe|([lr])f)$/i, "$1$2ves"],
167 [/([ti])um$/i, "$1a" ],
168 [/(buffal|tomat)o$/i, "$1oes" ],
169 [/(bu)s$/i, "$1ses" ],
170 [/(alias|status)$/i, "$1es" ],
171 [/(octop|vir)us$/i, "$1i" ],
172 [/(ax|test)is$/i, "$1es" ],
177 [/(quiz)zes$/i, "$1" ],
178 [/(matr)ices$/i, "$1ix" ],
179 [/(vert|ind)ices$/i, "$1ex" ],
181 [/(alias|status)es$/i, "$1" ],
182 [/(octop|vir)i$/i, "$1us" ],
183 [/(cris|ax|test)es$/i, "$1is" ],
184 [/(shoe)s$/i, "$1" ],
186 [/(bus)es$/i, "$1" ],
187 [/([m|l])ice$/i, "$1ouse" ],
188 [/(x|ch|ss|sh)es$/i, "$1" ],
189 [/(m)ovies$/i, "$1ovie" ],
190 [/(s)eries$/i, "$1eries"],
191 [/([^aeiouy]|qu)ies$/i, "$1y" ],
192 [/([lr])ves$/i, "$1f" ],
193 [/(tive)s$/i, "$1" ],
194 [/(hive)s$/i, "$1" ],
195 [/([^f])ves$/i, "$1fe" ],
196 [/(^analy)ses$/i, "$1sis" ],
197 [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, "$1$2sis"],
198 [/([ti])a$/i, "$1um" ],
199 [/(n)ews$/i, "$1ews" ],
205 ['child', 'children'],
207 ['person', 'people' ]
220 ordinalize: function(number) {
221 if (11 <= parseInt(number) % 100 && parseInt(number) % 100 <= 13) {
222 return number + "th";
224 switch (parseInt(number) % 10) {
226 return number + "st";
228 return number + "nd";
230 return number + "rd";
232 return number + "th";