Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / locale / ext-lang-ro.js
1 /**
2  * Romanian translations for ExtJS 2.1
3  * First released by Lucian Lature on 2007-04-24
4  * Changed locale for Romania (date formats) as suggested by keypoint
5  * on ExtJS forums: http://www.extjs.com/forum/showthread.php?p=129524#post129524
6  * Removed some useless parts
7  * Changed by: Emil Cazamir, 2008-04-24
8  * Fixed some errors left behind
9  * Changed by: Emil Cazamir, 2008-09-01
10  */
11 Ext.onReady(function() {
12     
13     if(Ext.updater) {
14         Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Încărcare...</div>';
15     }
16
17     if(Ext.grid.Panel){
18        Ext.grid.Panel.prototype.ddText = "{0} rând(uri) selectate";
19     }
20
21     if(Ext.TabPanelItem){
22        Ext.TabPanelItem.prototype.closeText = "Închide acest tab";
23     }
24
25     if(Ext.form.field.Base){
26        Ext.form.field.Base.prototype.invalidText = "Valoarea acestui câmp este invalidă";
27     }
28
29     if(Ext.LoadMask){
30         Ext.LoadMask.prototype.msg = "Încărcare...";
31     }
32
33     if(Ext.Date){
34         Ext.Date.monthNames = [
35            "Ianuarie",
36            "Februarie",
37            "Martie",
38            "Aprilie",
39            "Mai",
40            "Iunie",
41            "Iulie",
42            "August",
43            "Septembrie",
44            "Octombrie",
45            "Noiembrie",
46            "Decembrie"
47         ];
48
49         Ext.Date.getShortMonthName = function(month) {
50           return Ext.Date.monthNames[month].substring(0, 3);
51         };
52
53         Ext.Date.monthNumbers = {
54           Ian : 0,
55           Feb : 1,
56           Mar : 2,
57           Apr : 3,
58           Mai : 4,
59           Iun : 5,
60           Iul : 6,
61           Aug : 7,
62           Sep : 8,
63           Oct : 9,
64           Noi : 10,
65           Dec : 11
66         };
67
68         Ext.Date.getMonthNumber = function(name) {
69           return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
70         };
71
72         Ext.Date.dayNames = [
73            "Duminică",
74            "Luni",
75            "Marţi",
76            "Miercuri",
77            "Joi",
78            "Vineri",
79            "Sâmbătă"
80         ];
81
82         Ext.Date.getShortDayName = function(day) {
83           return Ext.Date.dayNames[day].substring(0, 3);
84         };
85     }
86
87     if(Ext.MessageBox){
88        Ext.MessageBox.buttonText = {
89           ok     : "OK",
90           cancel : "Renunţă",
91           yes    : "Da",
92           no     : "Nu"
93        };
94     }
95
96     if(Ext.util.Format){
97         Ext.apply(Ext.util.Format, {
98             thousandSeparator: '.',
99             decimalSeparator: ',',
100             currencySign: 'Lei',  // Romanian Lei
101             dateFormat: 'd.m.Y'
102         });
103     }
104
105     if(Ext.picker.Date){
106       Ext.apply(Ext.picker.Date.prototype, {
107         todayText         : "Astăzi",
108         minText           : "Această dată este anterioară datei minime",
109         maxText           : "Această dată este ulterioară datei maxime",
110         disabledDaysText  : "",
111         disabledDatesText : "",
112         monthNames        : Ext.Date.monthNames,
113         dayNames          : Ext.Date.dayNames,
114         nextText          : 'Luna următoare (Control+Dreapta)',
115         prevText          : 'Luna precedentă (Control+Stânga)',
116         monthYearText     : 'Alege o lună (Control+Sus/Jos pentru a parcurge anii)',
117         todayTip          : "{0} (Bara spațiu)",
118         format            : "d.m.Y",
119         startDay          : 0
120       });
121     }
122
123     if(Ext.picker.Month) {
124       Ext.apply(Ext.picker.Month.prototype, {
125           okText            : "&#160;OK&#160;",
126           cancelText        : "Renunță"
127       });
128     }
129
130     if(Ext.toolbar.Paging){
131       Ext.apply(Ext.PagingToolbar.prototype, {
132         beforePageText : "Pagina",
133         afterPageText  : "din {0}",
134         firstText      : "Prima pagină",
135         prevText       : "Pagina anterioară",
136         nextText       : "Pagina următoare",
137         lastText       : "Ultima pagină",
138         refreshText    : "Împrospătează",
139         displayMsg     : "Afișare înregistrările {0} - {1} din {2}",
140         emptyMsg       : 'Nu sunt date de afișat'
141       });
142     }
143
144     if(Ext.form.field.Text){
145        Ext.apply(Ext.form.field.Text.prototype, {
146           minLengthText : "Lungimea minimă pentru acest câmp este de {0}",
147           maxLengthText : "Lungimea maximă pentru acest câmp este {0}",
148           blankText     : "Acest câmp este obligatoriu",
149           regexText     : "",
150           emptyText     : null
151        });
152     }
153
154     if(Ext.form.field.Number){
155        Ext.apply(Ext.form.field.Number.prototype, {
156           minText : "Valoarea minimă permisă a acestui câmp este {0}",
157           maxText : "Valaorea maximă permisă a acestui câmp este {0}",
158           nanText : "{0} nu este un număr valid"
159        });
160     }
161
162     if(Ext.form.field.Date){
163       Ext.apply(Ext.form.field.Date.prototype, {
164         disabledDaysText  : "Indisponibil",
165         disabledDatesText : "Indisponibil",
166         minText           : "Data din această casetă trebuie să fie după {0}",
167         maxText           : "Data din această casetă trebuie să fie inainte de {0}",
168         invalidText       : "{0} nu este o dată validă, trebuie să fie în formatul {1}",
169         format            : "d.m.Y",
170         altFormats        : "d-m-Y|d.m.y|d-m-y|d.m|d-m|dm|d|Y-m-d"
171       });
172     }
173
174     if(Ext.form.field.ComboBox){
175       Ext.apply(Ext.form.field.ComboBox.prototype, {
176         loadingText       : "Încărcare...",
177         valueNotFoundText : undefined
178       });
179     }
180
181     if(Ext.form.field.VTypes){
182        Ext.apply(Ext.form.field.VTypes, {
183           emailText    : 'Acest câmp trebuie să conţină o adresă de e-mail în formatul "user@domeniu.com"',
184           urlText      : 'Acest câmp trebuie să conţină o adresă URL în formatul "http:/'+'/www.domeniu.com"',
185           alphaText    : 'Acest câmp trebuie să conţină doar litere şi _',
186           alphanumText : 'Acest câmp trebuie să conţină doar litere, cifre şi _'
187        });
188     }
189
190     if(Ext.form.field.HtmlEditor){
191       Ext.apply(Ext.form.field.HtmlEditor.prototype, {
192         createLinkText : 'Vă rugăm introduceti un URL pentru această legătură web:',
193         buttonTips : {
194           bold : {
195             title: 'Îngroşat (Ctrl+B)',
196             text: 'Îngroşati caracterele textului selectat.',
197             cls: Ext.baseCSSPrefix + 'html-editor-tip'
198           },
199           italic : {
200             title: 'Înclinat (Ctrl+I)',
201             text: 'Înclinaţi caracterele textului selectat.',
202             cls: Ext.baseCSSPrefix + 'html-editor-tip'
203           },
204           underline : {
205             title: 'Subliniat (Ctrl+U)',
206             text: 'Subliniaţi caracterele textului selectat.',
207             cls: Ext.baseCSSPrefix + 'html-editor-tip'
208           },
209           increasefontsize : {
210             title: 'Mărit',
211             text: 'Măreşte dimensiunea fontului.',
212             cls: Ext.baseCSSPrefix + 'html-editor-tip'
213           },
214           decreasefontsize : {
215             title: 'Micşorat',
216             text: 'Micşorează dimensiunea textului.',
217             cls: Ext.baseCSSPrefix + 'html-editor-tip'
218           },
219           backcolor : {
220             title: 'Culoarea fundalului',
221             text: 'Schimbă culoarea fundalului pentru textul selectat.',
222             cls: Ext.baseCSSPrefix + 'html-editor-tip'
223           },
224           forecolor : {
225             title: 'Culoarea textului',
226             text: 'Schimbă culoarea textului selectat.',
227             cls: Ext.baseCSSPrefix + 'html-editor-tip'
228           },
229           justifyleft : {
230             title: 'Aliniat la stânga',
231             text: 'Aliniază textul la stânga.',
232             cls: Ext.baseCSSPrefix + 'html-editor-tip'
233           },
234           justifycenter : {
235             title: 'Centrat',
236             text: 'Centrează textul în editor.',
237             cls: Ext.baseCSSPrefix + 'html-editor-tip'
238           },
239           justifyright : {
240             title: 'Aliniat la dreapta',
241             text: 'Aliniază textul la dreapta.',
242             cls: Ext.baseCSSPrefix + 'html-editor-tip'
243           },
244           insertunorderedlist : {
245             title: 'Listă cu puncte',
246             text: 'Inserează listă cu puncte.',
247             cls: Ext.baseCSSPrefix + 'html-editor-tip'
248           },
249           insertorderedlist : {
250             title: 'Listă numerotată',
251             text: 'Inserează o listă numerotată.',
252             cls: Ext.baseCSSPrefix + 'html-editor-tip'
253           },
254           createlink : {
255             title: 'Legătură web',
256             text: 'Transformă textul selectat în legătură web.',
257             cls: Ext.baseCSSPrefix + 'html-editor-tip'
258           },
259           sourceedit : {
260             title: 'Editare sursă',
261             text: 'Schimbă pe modul de editare al codului HTML.',
262             cls: Ext.baseCSSPrefix + 'html-editor-tip'
263           }
264         }
265       });
266     }
267
268
269     if(Ext.grid.header.Container){
270        Ext.apply(Ext.grid.header.Container.prototype, {
271           sortAscText  : "Sortare ascendentă",
272           sortDescText : "Sortare descendentă",
273           lockText     : "Blochează coloana",
274           unlockText   : "Deblochează coloana",
275           columnsText  : "Coloane"
276        });
277     }
278
279     if(Ext.grid.GroupingFeature){
280       Ext.apply(Ext.grid.GroupingFeature.prototype, {
281         emptyGroupText : '(Fără)',
282         groupByText    : 'Grupează după această coloană',
283         showGroupsText : 'Afișează grupat'
284       });
285     }
286
287     if(Ext.grid.PropertyColumnModel){
288       Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
289         nameText   : "Nume",
290         valueText  : "Valoare",
291         dateFormat : "d.m.Y"
292       });
293     }
294
295     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
296        Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
297           splitTip            : "Trage pentru redimensionare.",
298           collapsibleSplitTip : "Trage pentru redimensionare. Dublu-click pentru ascundere."
299        });
300     }
301 });