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 = {
30 "pt_BR": "Brazilian Portuguese",
32 "distributed crm": "O CRM Distribuído",
33 "loading ajatus": "Carregando Ajatus",
37 "continue": "Continuar",
40 "archive": "Arquivar",
41 "archived": "Arquivado",
43 "deleted": "Excluído",
44 "undelete": "Recuperar",
47 "edit %s": "Editar %s",
50 "create %s": "Criado %s",
53 "add field": "Adicionar campo",
57 "description": "Descrição",
60 "lastname": "Sobrenome",
66 "start": "Inicio", // This is bit misleading currently (Means start date)
67 "end": "Fim", // This is bit misleading currently (Means end date)
68 "location": "Localização",
75 "selection": "Seleção",
77 "global tag": "Marcador Global",
78 "new tag created": "Novo marcador criado",
79 "created new tag '%s'": "Criado novo marcador '%s'",
81 "related objects": "Objetos Relacionados",
83 "select one": "Selecione um",
84 "edit mode": "Editar",
85 "preview mode": "Visualizar",
87 "empty results": "Vazio",
88 "no %s found": "Nenhum %s encontrado.",
90 "field %s is required": "Campo %s é obrigatório",
93 "installing": "Instalando",
94 "uninstalling": "Desinstalando",
95 "installing application database": "Instalando banco de dados da aplicação",
96 "uninstalling application database": "Desinstalando banco de dados da aplicação",
97 "preparing application database": "Preparing banco de dados da aplicação",
98 "installing application tags database": "Instalando marcadores",
99 "uninstalling application tags database": "Desinstalando marcadores",
100 "installing application content database": "Instalando conteúdo",
101 "uninstalling application content database": "Desinstalando conteúdo",
106 "revisor": "Revisor",
107 "revised": "Revisado",
108 "archiver": "Arquivador",
109 "archived": "Arquivado",
110 "deleted": "Excluído",
113 "frontpage": "Principal",
115 "preferences": "Preferências",
116 "tags": "Marcadores",
117 "view item": "Visualizar item",
121 "hour report": "Relatório de Horas",
124 "contact": "Contato",
125 "expense report": "Relatório de Despesas",
127 "hour report for": "Relatório de horas para ",
128 "expense report for": "Relatório de despesas para ",
131 "unknown document action": "Unknown document action",
132 "unknown action %s requested for object %s!": "Unknown action %s requested for object %s!",
133 "object saved": "Objeto salvo",
134 "%s saved successfully": "%s saved successfully",
135 "object deleted": "Object deleted",
136 "object %s moved to trash.": "Object %s moved to trash.",
137 "object %s removed from ajatus.": "Object %s removed from Ajatus.",
138 "object restored": "Object restored",
139 "object %s restored succesfully.": "Object %s restored succesfully.",
140 "emptying action pool": "Emptying action pool",
141 "running %s pooled actions.": "Running %s pooled actions.",
143 // Add field -widget titles and messages
144 "widget %s doesn't support dynamic creation.": "Widget %s doesn't support dynamic creation.",
145 "widget %s doesn't support dynamic settings.": "Widget %s doesn't support dynamic settings.",
146 "settings": "Settings",
147 "edit field %s": "Edit field %s",
149 // Strings used in testing
150 "test %s": "Testing %s",
151 "%d comment": "%d comment",
152 "%d comment in %d doc": "%d comment in %d doc"
155 $.ajatus.i10n.inflections['en_GB'] = {
157 [/(quiz)$/i, "$1zes" ],
158 [/^(ox)$/i, "$1en" ],
159 [/([m|l])ouse$/i, "$1ice" ],
160 [/(matr|vert|ind)ix|ex$/i, "$1ices" ],
161 [/(x|ch|ss|sh)$/i, "$1es" ],
162 [/([^aeiouy]|qu)y$/i, "$1ies" ],
163 [/(hive)$/i, "$1s" ],
164 [/(?:([^f])fe|([lr])f)$/i, "$1$2ves"],
166 [/([ti])um$/i, "$1a" ],
167 [/(buffal|tomat)o$/i, "$1oes" ],
168 [/(bu)s$/i, "$1ses" ],
169 [/(alias|status)$/i, "$1es" ],
170 [/(octop|vir)us$/i, "$1i" ],
171 [/(ax|test)is$/i, "$1es" ],
176 [/(quiz)zes$/i, "$1" ],
177 [/(matr)ices$/i, "$1ix" ],
178 [/(vert|ind)ices$/i, "$1ex" ],
180 [/(alias|status)es$/i, "$1" ],
181 [/(octop|vir)i$/i, "$1us" ],
182 [/(cris|ax|test)es$/i, "$1is" ],
183 [/(shoe)s$/i, "$1" ],
185 [/(bus)es$/i, "$1" ],
186 [/([m|l])ice$/i, "$1ouse" ],
187 [/(x|ch|ss|sh)es$/i, "$1" ],
188 [/(m)ovies$/i, "$1ovie" ],
189 [/(s)eries$/i, "$1eries"],
190 [/([^aeiouy]|qu)ies$/i, "$1y" ],
191 [/([lr])ves$/i, "$1f" ],
192 [/(tive)s$/i, "$1" ],
193 [/(hive)s$/i, "$1" ],
194 [/([^f])ves$/i, "$1fe" ],
195 [/(^analy)ses$/i, "$1sis" ],
196 [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, "$1$2sis"],
197 [/([ti])a$/i, "$1um" ],
198 [/(n)ews$/i, "$1ews" ],
204 ['child', 'children'],
206 ['person', 'people' ]
219 ordinalize: function(number) {
220 if (11 <= parseInt(number) % 100 && parseInt(number) % 100 <= 13) {
221 return number + "th";
223 switch (parseInt(number) % 10) {
225 return number + "st";
227 return number + "nd";
229 return number + "rd";
231 return number + "th";