Added license header
[ajatus.git] / js / languages / pt_BR.js
blob21cef98f6dbbe0a5f09e9a7d00bca347bb7be379
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: 'Real',
21         symbol: 'R$'
22     };
23     
24     $.ajatus.i10n.datetime = {
25         date: 'MDY/',
26         time: 'HMS:'
27     };
28     
29     $.ajatus.i10n.dict = {
30         "pt_BR": "Brazilian Portuguese",
31         
32         "distributed crm": "O CRM Distribuído",
33         "loading ajatus": "Carregando Ajatus",
34         
35         "failed": "falhou",
36         "ok": "ok",
37         "continue": "Continuar",
38         "type": "Tipo",
39         "undo": "Desfazer",
40         "archive": "Arquivar",
41         "archived": "Arquivado",
42         "delete": "Excluir",
43         "deleted": "Excluído",
44         "undelete": "Recuperar",
45         "view": "Visualizar",
46         "edit": "Editar",
47         "edit %s": "Editar %s",
48         "save": "Salvar",
49         "create": "Criar",
50         "create %s": "Criado %s",
51         "cancel": "Cancelar",
52         "new": "Novo",
53         "add field": "Adicionar campo",
54         "actions": "Ações",
55                 
56         "title": "Título",
57         "description": "Descrição",
58         "date": "Data",
59         "firstname": "Nome",
60         "lastname": "Sobrenome",
61         "email": "Email",
62         "phone": "Telefone",
63         "hours": "Hours",
64         "amount": "Valor",
65         "vat": "VAT",
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",
69         
70         // Field types
71         "wiki": "Wiki",
72         "text": "Texto",
73         "boolean": "Boleano",
74         "integer": "Inteiro",
75         "selection": "Seleção",
76         
77         "global tag": "Marcador Global",
78         "new tag created": "Novo marcador criado",
79         "created new tag '%s'": "Criado novo marcador '%s'",
80                 
81         "related objects": "Objetos Relacionados",
82         "widget": "Widget",
83         "select one": "Selecione um",
84         "edit mode": "Editar",
85         "preview mode": "Visualizar",
86         
87         "empty results": "Vazio",
88         "no %s found": "Nenhum %s encontrado.",
89         
90         "field %s is required": "Campo %s é obrigatório",
91         
92         // Installer
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",
102         
103         // Metadata
104         "creator": "Autor",
105         "created": "Criado",
106         "revisor": "Revisor",
107         "revised": "Revisado",
108         "archiver": "Arquivador",
109         "archived": "Arquivado",
110         "deleted": "Excluído",
111         
112         // System views
113         "frontpage": "Principal",
114         "trash": "Lixeira",
115         "preferences": "Preferências",
116         "tags": "Marcadores",
117         "view item": "Visualizar item",
118         
119         // Content types
120         "note": "Anotações",
121         "hour report": "Relatório de Horas",
122         "event": "Evento",
123         "tag": "Marcador",
124         "contact": "Contato",
125         "expense report": "Relatório de Despesas",
126         
127         "hour report for": "Relatório de horas para ",
128         "expense report for": "Relatório de despesas para ",
129         
130         // Document actions
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.",
142         
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",
148         
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"
153     };
154     
155     $.ajatus.i10n.inflections['en_GB'] = {
156         plural: [
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"],
165             [/sis$/i,                  "ses"    ],
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"   ],
172             [/s$/i,                    "s"      ],
173             [/$/,                      "s"      ]
174         ],
175         singular: [
176             [/(quiz)zes$/i,                                                    "$1"     ],
177             [/(matr)ices$/i,                                                   "$1ix"   ],
178             [/(vert|ind)ices$/i,                                               "$1ex"   ],
179             [/^(ox)en/i,                                                       "$1"     ],
180             [/(alias|status)es$/i,                                             "$1"     ],
181             [/(octop|vir)i$/i,                                                 "$1us"   ],
182             [/(cris|ax|test)es$/i,                                             "$1is"   ],
183             [/(shoe)s$/i,                                                      "$1"     ],
184             [/(o)es$/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"  ],
199             [/s$/i,                                                            ""       ]
200         ],
201         irregular: [
202             ['move',   'moves'   ],
203             ['sex',    'sexes'   ],
204             ['child',  'children'],
205             ['man',    'men'     ],
206             ['person', 'people'  ]
207         ],
208         uncountable: [
209             "of",
210             "sheep",
211             "fish",
212             "series",
213             "species",
214             "money",
215             "rice",
216             "information",
217             "equipment"
218         ],
219         ordinalize: function(number) {
220             if (11 <= parseInt(number) % 100 && parseInt(number) % 100 <= 13) {
221                 return number + "th";
222             } else {
223                 switch (parseInt(number) % 10) {
224                     case  1:
225                         return number + "st";
226                     case  2:
227                         return number + "nd";
228                     case  3:
229                         return number + "rd";
230                     default:
231                         return number + "th";
232                 }
233             }
234         }
235     };
236     
237 })(jQuery);