Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27 jpm 1
/**
2
 * Catalonian Translation by halkon_polako 6-12-2007
3
 * December correction halkon_polako 11-12-2007
4
 */
5
 
6
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregant...</div>';
7
 
8
if(Ext.View){
9
  Ext.View.prototype.emptyText = "";
10
}
11
 
12
if(Ext.grid.Grid){
13
  Ext.grid.Grid.prototype.ddText = "{0} fila(es) seleccionada(es)";
14
}
15
 
16
if(Ext.TabPanelItem){
17
  Ext.TabPanelItem.prototype.closeText = "Tancar aquesta pestanya";
18
}
19
 
20
if(Ext.form.Field){
21
  Ext.form.Field.prototype.invalidText = "El valor d&#39;aquest camp &#233;s inv&#224;lid";
22
}
23
 
24
if(Ext.LoadMask){
25
  Ext.LoadMask.prototype.msg = "Carregant...";
26
}
27
 
28
Date.monthNames = [
29
  "Gener",
30
  "Febrer",
31
  "Mar&#231;",
32
  "Abril",
33
  "Maig",
34
  "Juny",
35
  "Juliol",
36
  "Agost",
37
  "Setembre",
38
  "Octubre",
39
  "Novembre",
40
  "Desembre"
41
];
42
 
43
Date.getShortMonthName = function(month) {
44
  return Date.monthNames[month].substring(0, 3);
45
};
46
 
47
Date.monthNumbers = {
48
  Gen : 0,
49
  Feb : 1,
50
  Mar : 2,
51
  Abr : 3,
52
  Mai : 4,
53
  Jun : 5,
54
  Jul : 6,
55
  Ago : 7,
56
  Set : 8,
57
  Oct : 9,
58
  Nov : 10,
59
  Dec : 11
60
};
61
 
62
Date.getMonthNumber = function(name) {
63
  return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
64
};
65
 
66
Date.dayNames = [
67
  "Diumenge",
68
  "Dilluns",
69
  "Dimarts",
70
  "Dimecres",
71
  "Dijous",
72
  "Divendres",
73
  "Dissabte"
74
];
75
 
76
Date.getShortDayName = function(day) {
77
  return Date.dayNames[day].substring(0, 3);
78
};
79
 
80
if(Ext.MessageBox){
81
  Ext.MessageBox.buttonText = {
82
    ok     : "Acceptar",
83
    cancel : "Cancel&#183;lar",
84
    yes    : "S&#237;",
85
    no     : "No"
86
  };
87
}
88
 
89
if(Ext.util.Format){
90
  Ext.util.Format.date = function(v, format){
91
    if(!v) return "";
92
    if(!(v instanceof Date)) v = new Date(Date.parse(v));
93
    return v.dateFormat(format || "d/m/Y");
94
  };
95
}
96
 
97
if(Ext.DatePicker){
98
  Ext.apply(Ext.DatePicker.prototype, {
99
    todayText         : "Avui",
100
    minText           : "Aquesta data &#233;s anterior a la data m&#237;nima",
101
    maxText           : "Aquesta data &#233;s posterior a la data m&#224;xima",
102
    disabledDaysText  : "",
103
    disabledDatesText : "",
104
    monthNames        : Date.monthNames,
105
    dayNames          : Date.dayNames,
106
    nextText          : 'Mes Seg&#252;ent (Control+Fletxa Dreta)',
107
    prevText          : 'Mes Anterior (Control+Fletxa Esquerra)',
108
    monthYearText     : 'Seleccioni un mes (Control+Fletxa a Dalt o Abaix per canviar els anys)',
109
    todayTip          : "{0} (Barra d&#39;espai)",
110
    format            : "d/m/Y",
111
    okText            : "&#160;Acceptar&#160;",
112
    cancelText        : "Cancel&#183;lar",
113
    startDay          : 1
114
  });
115
}
116
 
117
if(Ext.PagingToolbar){
118
  Ext.apply(Ext.PagingToolbar.prototype, {
119
    beforePageText : "P&#224;gina",
120
    afterPageText  : "de {0}",
121
    firstText      : "Primera P&#224;gina",
122
    prevText       : "P&#224;gina Anterior",
123
    nextText       : "P&#224;gina Seg&#252;ent",
124
    lastText       : "Darrera P&#224;gina",
125
    refreshText    : "Refrescar",
126
    displayMsg     : "Mostrant {0} - {1} de {2}",
127
    emptyMsg       : 'Sense dades per mostrar'
128
  });
129
}
130
 
131
if(Ext.form.TextField){
132
  Ext.apply(Ext.form.TextField.prototype, {
133
    minLengthText : "El tamany m&#237;nim per aquest camp &#233;s {0}",
134
    maxLengthText : "El tamany m&#224;xim per aquest camp &#233;s {0}",
135
    blankText     : "Aquest camp &#233;s obligatori",
136
    regexText     : "",
137
    emptyText     : null
138
  });
139
}
140
 
141
if(Ext.form.NumberField){
142
  Ext.apply(Ext.form.NumberField.prototype, {
143
    minText : "El valor m&#237;nim per aquest camp &#233;s {0}",
144
    maxText : "El valor m&#224;xim per aquest camp &#233;s {0}",
145
    nanText : "{0} no &#233;s un nombre v&#224;lid"
146
  });
147
}
148
 
149
if(Ext.form.DateField){
150
  Ext.apply(Ext.form.DateField.prototype, {
151
    disabledDaysText  : "Deshabilitat",
152
    disabledDatesText : "Deshabilitat",
153
    minText           : "La data en aquest camp ha de ser posterior a {0}",
154
    maxText           : "La data en aquest camp ha de ser inferior a {0}",
155
    invalidText       : "{0} no &#233;s una data v&#224;lida - ha de tenir el format {1}",
156
    format            : "d/m/Y",
157
    altFormats        : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
158
  });
159
}
160
 
161
if(Ext.form.ComboBox){
162
  Ext.apply(Ext.form.ComboBox.prototype, {
163
    loadingText       : "Carregant...",
164
    valueNotFoundText : undefined
165
  });
166
}
167
 
168
if(Ext.form.VTypes){
169
  Ext.apply(Ext.form.VTypes, {
170
    emailText    : 'Aquest camp ha de ser una adre&#231;a de e-mail amb el format "user@domain.com"',
171
    urlText      : 'Aquest camp ha de ser una URL amb el format "http:/'+'/www.domain.com"',
172
    alphaText    : 'Aquest camp nom&#233;s pot contenir lletres i _',
173
    alphanumText : 'Aquest camp nom&#233;s por contenir lletres, nombres i _'
174
  });
175
}
176
 
177
if(Ext.form.HtmlEditor){
178
  Ext.apply(Ext.form.HtmlEditor.prototype, {
179
    createLinkText : 'Si us plau, tecleixi la URL per l\'enlla&#231;:',
180
    buttonTips : {
181
      bold : {
182
        title: 'Negreta (Ctrl+B)',
183
        text: 'Posa el text seleccionat en negreta.',
184
        cls: 'x-html-editor-tip'
185
      },
186
      italic : {
187
        title: 'It&#224;lica (Ctrl+I)',
188
        text: 'Posa el text seleccionat en it&#224;lica.',
189
        cls: 'x-html-editor-tip'
190
      },
191
      underline : {
192
        title: 'Subratllat (Ctrl+U)',
193
        text: 'Subratlla el text seleccionat.',
194
        cls: 'x-html-editor-tip'
195
      },
196
      increasefontsize : {
197
        title: 'Augmentar Text',
198
        text: 'Augmenta el tamany de la font de text.',
199
        cls: 'x-html-editor-tip'
200
      },
201
      decreasefontsize : {
202
        title: 'Disminuir Text',
203
        text: 'Disminueix el tamany de la font de text.',
204
        cls: 'x-html-editor-tip'
205
      },
206
      backcolor : {
207
        title: 'Color de fons',
208
        text: 'Canvia el color de fons del text seleccionat.',
209
        cls: 'x-html-editor-tip'
210
      },
211
      forecolor : {
212
        title: 'Color de la font de text',
213
        text: 'Canvia el color del text seleccionat.',
214
        cls: 'x-html-editor-tip'
215
      },
216
      justifyleft : {
217
        title: 'Alinear a la esquerra',
218
        text: 'Alinea el text a la esquerra.',
219
        cls: 'x-html-editor-tip'
220
      },
221
      justifycenter : {
222
        title: 'Centrar el text',
223
        text: 'Centra el text a l\'editor',
224
        cls: 'x-html-editor-tip'
225
      },
226
      justifyright : {
227
        title: 'Alinear a la dreta',
228
        text: 'Alinea el text a la dreta.',
229
        cls: 'x-html-editor-tip'
230
      },
231
      insertunorderedlist : {
232
        title: 'Llista amb vinyetes',
233
        text: 'Comen&#231;a una llista amb vinyetes.',
234
        cls: 'x-html-editor-tip'
235
      },
236
      insertorderedlist : {
237
        title: 'Llista numerada',
238
        text: 'Comen&#231;a una llista numerada.',
239
        cls: 'x-html-editor-tip'
240
      },
241
      createlink : {
242
        title: 'Enlla&#231;',
243
        text: 'Transforma el text seleccionat en un enlla&#231;.',
244
        cls: 'x-html-editor-tip'
245
      },
246
      sourceedit : {
247
        title: 'Editar Codi',
248
        text: 'Canvia al mode d\'edici&#243; de codi.',
249
        cls: 'x-html-editor-tip'
250
      }
251
    }
252
  });
253
}
254
 
255
if(Ext.grid.GridView){
256
  Ext.apply(Ext.grid.GridView.prototype, {
257
    sortAscText  : "Ordenaci&#243; Ascendent",
258
    sortDescText : "Ordenaci&#243; Descendent",
259
    lockText     : "Bloquejar Columna",
260
    unlockText   : "Desbloquejar Columna",
261
    columnsText  : "Columnes"
262
  });
263
}
264
 
265
if(Ext.grid.GroupingView){
266
  Ext.apply(Ext.grid.GroupingView.prototype, {
267
    emptyGroupText : '(Buit)',
268
    groupByText    : 'Agrupar Per Aquest Camp',
269
    showGroupsText : 'Mostrar en Grups'
270
  });
271
}
272
 
273
if(Ext.grid.PropertyColumnModel){
274
  Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
275
    nameText   : "Nom",
276
    valueText  : "Valor",
277
    dateFormat : "d/m/Y"
278
  });
279
}
280
 
281
if(Ext.layout.BorderLayout.SplitRegion){
282
  Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
283
    splitTip            : "Cliqueu i arrossegueu per canviar el tamany del panell.",
284
    collapsibleSplitTip : "Cliqueu i arrossegueu per canviar el tamany del panell. Doble clic per ocultar-ho."
285
  });
286
}