Added phing based release script
[ajatus.git] / js / languages / en_GB.js
blobc89db5af87fa447cfbff8da2a329965b63da2b67
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         "delete": "Delete",
43         "deleted": "Deleted",
44         "undelete": "Undelete",
45         "view": "View",
46         "edit": "Edit",
47         "edit %s": "Edit %s",
48         "save": "Save",
49         "create": "Create",
50         "create %s": "Create %s",
51         "cancel": "Cancel",
52         "new": "New",
53         "add field": "Add field",
54         "actions": "Actions",
55                 
56         "title": "Title",
57         "description": "Description",
58         "date": "Date",
59         "firstname": "Firstname",
60         "lastname": "Lastname",
61         "email": "Email",
62         "phone": "Phone",
63         "hours": "Hours",
64         "amount": "Amount",
65         "vat": "VAT",
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",
69         "used": "Used",
70         
71         // Field types
72         "wiki": "Wiki",
73         "text": "Text",
74         "boolean": "Boolean",
75         "integer": "Integer",
76         "selection": "Selection",
77         
78         "global tag": "Global Tag",
79         "new tag created": "New tag created",
80         "created new tag '%s'": "Created new tag '%s'",
81                 
82         "related objects": "Related Objects",
83         "widget": "Widget",
84         "select one": "Select one",
85         "edit mode": "Edit",
86         "preview mode": "Preview",
87         
88         "empty results": "Empty results",
89         "no %s found": "No %s found.",
90         
91         "field %s is required": "Field %s is required",
92         
93         // Installer
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",
103         
104         // Metadata
105         "creator": "Creator",
106         "created": "Created",
107         "revisor": "Revisor",
108         "revised": "Revised",
109         "archiver": "Archiver",
110         "archived": "Archived",
111         "deleted": "Deleted",
112         
113         // System views
114         "frontpage": "Frontpage",
115         "trash": "Trash",
116         "preferences": "Preferences",
117         "tags": "Tags",
118         "view item": "View item",
119         
120         // Content types
121         "note": "Note",
122         "hour report": "Hour report",
123         "event": "Event",
124         "tag": "Tag",
125         "contact": "Contact",
126         "expense report": "Expense report",
127         
128         "hour report for": "Hour report for ",
129         "expense report for": "Expense report for ",
130         
131         // Document actions
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.",
143         
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",
149         
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"
154     };
155     
156     $.ajatus.i10n.inflections['en_GB'] = {
157         plural: [
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"],
166             [/sis$/i,                  "ses"    ],
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"   ],
173             [/s$/i,                    "s"      ],
174             [/$/,                      "s"      ]
175         ],
176         singular: [
177             [/(quiz)zes$/i,                                                    "$1"     ],
178             [/(matr)ices$/i,                                                   "$1ix"   ],
179             [/(vert|ind)ices$/i,                                               "$1ex"   ],
180             [/^(ox)en/i,                                                       "$1"     ],
181             [/(alias|status)es$/i,                                             "$1"     ],
182             [/(octop|vir)i$/i,                                                 "$1us"   ],
183             [/(cris|ax|test)es$/i,                                             "$1is"   ],
184             [/(shoe)s$/i,                                                      "$1"     ],
185             [/(o)es$/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"  ],
200             [/s$/i,                                                            ""       ]
201         ],
202         irregular: [
203             ['move',   'moves'   ],
204             ['sex',    'sexes'   ],
205             ['child',  'children'],
206             ['man',    'men'     ],
207             ['person', 'people'  ]
208         ],
209         uncountable: [
210             "of",
211             "sheep",
212             "fish",
213             "series",
214             "species",
215             "money",
216             "rice",
217             "information",
218             "equipment"
219         ],
220         ordinalize: function(number) {
221             if (11 <= parseInt(number) % 100 && parseInt(number) % 100 <= 13) {
222                 return number + "th";
223             } else {
224                 switch (parseInt(number) % 10) {
225                     case  1:
226                         return number + "st";
227                     case  2:
228                         return number + "nd";
229                     case  3:
230                         return number + "rd";
231                     default:
232                         return number + "th";
233                 }
234             }
235         }
236     };
237     
238 })(jQuery);