Fixed and enhanced creation and updating
[ajatus.git] / js / languages / en_GB.js
blobd4ccdd538d5c21eea0a66e1a297563fb301313e9
1 /*
2  * This file is part of
3  *
4  * Ajatus - Distributed CRM
5  * @requires jQuery v1.2.1
6  * 
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
12  * 
13  */
15 (function($){
16     $.ajatus = $.ajatus || {};
17     $.ajatus.i10n = $.ajatus.i10n || {};
18     
19     $.ajatus.i10n.currency = {
20         name: 'US Dollar',
21         symbol: '$'
22     };
23     
24     $.ajatus.i10n.datetime = {
25         date: 'MDY/',
26         time: 'HMS:'
27     };
28     
29     $.ajatus.i10n.dict = {
30         "en_GB": "English",
31         
32         "distributed crm": "Distributed CRM",
33         "loading ajatus": "Loading Ajatus",
34         
35         "failed": "failed",
36         "ok": "ok",
37         "continue": "Continue",
38         "type": "Type",
39         "undo": "Undo",
40         "archive": "Archive",
41         "archived": "Archived",
42         "archived item": "Archived item",
43         "archived %": "Archived %s",
44         "unarchive": "Unarchive",
45         "delete": "Delete",
46         "deleted": "Deleted",
47         "undelete": "Undelete",
48         "restore": "Restore",
49         "view": "View",
50         "view %s": "View %s",
51         "edit": "Edit",
52         "edit %s": "Edit %s",
53         "save": "Save",
54         "create": "Create",
55         "create %s": "Create %s",
56         "cancel": "Cancel",
57         "new": "New",
58         "new %s": "New %s",
59         "add field": "Add field",
60         "actions": "Actions",
61         "settings": "Settings",
62         "enabled": "Enabled",
63         "interval": "Interval",
64         "label": "Label",
65         "default value": "default value",
66         "required": "required",
67         "auto saving in": "Auto saving in",
68         "first": "First",
69         "next": "Next",
70         "previous": "Previous",
71         "last": "Last",
72         "%d of %d": "%d of %d",
73         "duplicate": "Duplicate",
74         "broken": "Broken",
75         "related objects": "Related objects",
76                 
77         "title": "Title",
78         "description": "Description",
79         "date": "Date",
80         "firstname": "Firstname",
81         "lastname": "Lastname",
82         "name": "Name",
83         "email": "Email",
84         "phone": "Phone",
85         "hours": "Hours",
86         "amount": "Amount",
87         "vat": "VAT",
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",
91         "used": "Used",
92         
93         // Field types
94         "wiki": "Wiki",
95         "text": "Text",
96         "boolean": "Boolean",
97         "integer": "Integer",
98         "selection": "Selection",
99         
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",
112                 
113         "related objects": "Related Objects",
114         "widget": "Widget",
115         "select one": "Select one",
116         "edit mode": "Edit",
117         "preview mode": "Preview",
118         
119         "empty results": "Empty results",
120         "no %s found": "No %s found",
121         "nothing to export": "Nothing to export",
122         "export %s": "Export %s",
123         
124         "field %s is required": "Field %s is required",
125         
126         // Installer
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",
134         
135         // Metadata
136         "metadata": "Metadata",
137         "creator": "Creator",
138         "created": "Created",
139         "revisor": "Revisor",
140         "revised": "Revised",
141         "archiver": "Archiver",
142         "archived": "Archived",
143         "deleted": "Deleted",
144         
145         // System views
146         "frontpage": "Frontpage",
147         "trash": "Trash",
148         "preferences": "Preferences",
149         "archive": "Archive",
150         "tags": "Tags",
151         "view item": "View item",
152         
153         // Content types
154         "note": "Note",
155         "hour report": "Hour report",
156         "event": "Event",
157         "tag": "Tag",
158         "contact": "Contact",
159         "expense report": "Expense report",
160         
161         "hour report for": "Hour report for ",
162         "expense report for": "Expense report for ",
163         
164         // Document actions
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?",
179         
180         "empty trash": "Empty trash",
181         "deleting all items in trash. are you sure?": "Deleting all items in trash. Are you sure?",
182         
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.",
187         
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",
196         
197         //Preferences
198         "theme": "Theme",
199         "language": "Language",
200         "user": "User",
201         "localization": "Localization",
202         "layout": "Layout",
203         "replication": "Replication",
204         "backups": "Backups",
205         "expansions": "Expansions",
206         "auto save": "Auto save",
207         
208         "generated doc title (%s)": "generated doc title (%s)",
209         
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"
214     };
215     
216     $.ajatus.i10n.inflections['en_GB'] = {
217         plural: [
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"],
226             [/sis$/i,                  "ses"    ],
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"   ],
233             [/s$/i,                    "s"      ],
234             [/$/,                      "s"      ]
235         ],
236         singular: [
237             [/(quiz)zes$/i,                                                    "$1"     ],
238             [/(matr)ices$/i,                                                   "$1ix"   ],
239             [/(vert|ind)ices$/i,                                               "$1ex"   ],
240             [/^(ox)en/i,                                                       "$1"     ],
241             [/(alias|status)es$/i,                                             "$1"     ],
242             [/(octop|vir)i$/i,                                                 "$1us"   ],
243             [/(cris|ax|test)es$/i,                                             "$1is"   ],
244             [/(shoe)s$/i,                                                      "$1"     ],
245             [/(o)es$/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"  ],
260             [/s$/i,                                                            ""       ]
261         ],
262         irregular: [
263             ['move',   'moves'   ],
264             ['sex',    'sexes'   ],
265             ['child',  'children'],
266             ['man',    'men'     ],
267             ['person', 'people'  ]
268         ],
269         uncountable: [
270             "of",
271             "sheep",
272             "fish",
273             "series",
274             "species",
275             "money",
276             "rice",
277             "information",
278             "equipment"
279         ],
280         ordinalize: function(number) {
281             if (11 <= parseInt(number) % 100 && parseInt(number) % 100 <= 13) {
282                 return number + "th";
283             } else {
284                 switch (parseInt(number) % 10) {
285                     case  1:
286                         return number + "st";
287                     case  2:
288                         return number + "nd";
289                     case  3:
290                         return number + "rd";
291                     default:
292                         return number + "th";
293                 }
294             }
295         }
296     };
297     
298 })(jQuery);