1 | /** |
---|
2 | * Finnish Translations |
---|
3 | * <tuomas.salo (at) iki.fi> |
---|
4 | * 'ä' should read as lowercase 'a' with two dots on top (ä) |
---|
5 | */ |
---|
6 | |
---|
7 | Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Ladataan...</div>'; |
---|
8 | |
---|
9 | if(Ext.View){ |
---|
10 | Ext.View.prototype.emptyText = ""; |
---|
11 | } |
---|
12 | |
---|
13 | if(Ext.grid.GridPanel){ |
---|
14 | Ext.grid.GridPanel.prototype.ddText = "{0} rivi(ä) valittu"; |
---|
15 | } |
---|
16 | |
---|
17 | if(Ext.TabPanelItem){ |
---|
18 | Ext.TabPanelItem.prototype.closeText = "Sulje tämä välilehti"; |
---|
19 | } |
---|
20 | |
---|
21 | if(Ext.LoadMask){ |
---|
22 | Ext.LoadMask.prototype.msg = "Ladataan..."; |
---|
23 | } |
---|
24 | |
---|
25 | Date.monthNames = [ |
---|
26 | "tammikuu", |
---|
27 | "helmikuu", |
---|
28 | "maaliskuu", |
---|
29 | "huhtikuu", |
---|
30 | "toukokuu", |
---|
31 | "kesäkuu", |
---|
32 | "heinäkuu", |
---|
33 | "elokuu", |
---|
34 | "syyskuu", |
---|
35 | "lokakuu", |
---|
36 | "marraskuu", |
---|
37 | "joulukuu" |
---|
38 | ]; |
---|
39 | |
---|
40 | Date.getShortMonthName = function(month) { |
---|
41 | //return Date.monthNames[month].substring(0, 3); |
---|
42 | return (month+1) + "."; |
---|
43 | }; |
---|
44 | |
---|
45 | Date.monthNumbers = { |
---|
46 | Jan : 0, |
---|
47 | Feb : 1, |
---|
48 | Mar : 2, |
---|
49 | Apr : 3, |
---|
50 | May : 4, |
---|
51 | Jun : 5, |
---|
52 | Jul : 6, |
---|
53 | Aug : 7, |
---|
54 | Sep : 8, |
---|
55 | Oct : 9, |
---|
56 | Nov : 10, |
---|
57 | Dec : 11 |
---|
58 | }; |
---|
59 | |
---|
60 | Date.getMonthNumber = function(name) { |
---|
61 | if(name.match(/^(1?\d)\./)) { |
---|
62 | return -1+RegExp.$1; |
---|
63 | } else { |
---|
64 | return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; |
---|
65 | } |
---|
66 | }; |
---|
67 | |
---|
68 | Date.dayNames = [ |
---|
69 | "sunnuntai", |
---|
70 | "maanantai", |
---|
71 | "tiistai", |
---|
72 | "keskiviikko", |
---|
73 | "torstai", |
---|
74 | "perjantai", |
---|
75 | "lauantai" |
---|
76 | ]; |
---|
77 | |
---|
78 | Date.getShortDayName = function(day) { |
---|
79 | return Date.dayNames[day].substring(0, 2); |
---|
80 | }; |
---|
81 | |
---|
82 | if(Ext.MessageBox){ |
---|
83 | Ext.MessageBox.buttonText = { |
---|
84 | ok : "OK", |
---|
85 | cancel : "Peruuta", |
---|
86 | yes : "Kyllä", |
---|
87 | no : "Ei" |
---|
88 | }; |
---|
89 | } |
---|
90 | |
---|
91 | if(Ext.util.Format){ |
---|
92 | Ext.util.Format.date = function(v, format){ |
---|
93 | if(!v) return ""; |
---|
94 | if(!(v instanceof Date)) v = new Date(Date.parse(v)); |
---|
95 | return v.dateFormat(format || "j.n.Y"); |
---|
96 | }; |
---|
97 | } |
---|
98 | |
---|
99 | if(Ext.DatePicker){ |
---|
100 | Ext.apply(Ext.DatePicker.prototype, { |
---|
101 | todayText : "Tänään", |
---|
102 | minText : "Tämä päivämäärä on aikaisempi kuin ensimmäinen sallittu", |
---|
103 | maxText : "Tämä päivämäärä on myöhäisempi kuin viimeinen sallittu", |
---|
104 | disabledDaysText : "", |
---|
105 | disabledDatesText : "", |
---|
106 | monthNames : Date.monthNames, |
---|
107 | dayNames : Date.dayNames, |
---|
108 | nextText : 'Seuraava kuukausi (Control+oikealle)', |
---|
109 | prevText : 'Edellinen kuukausi (Control+vasemmalle)', |
---|
110 | monthYearText : 'Valitse kuukausi (vaihda vuotta painamalla Control+ylös/alas)', |
---|
111 | todayTip : "{0} (välilyönti)", |
---|
112 | format : "j.n.Y", |
---|
113 | okText : " OK ", |
---|
114 | cancelText : "Peruuta", |
---|
115 | startDay : 1 // viikko alkaa maanantaista |
---|
116 | }); |
---|
117 | } |
---|
118 | |
---|
119 | if(Ext.PagingToolbar){ |
---|
120 | Ext.apply(Ext.PagingToolbar.prototype, { |
---|
121 | beforePageText : "Sivu", |
---|
122 | afterPageText : "/ {0}", |
---|
123 | firstText : "Ensimmäinen sivu", |
---|
124 | prevText : "Edellinen sivu", |
---|
125 | nextText : "Seuraava sivu", |
---|
126 | lastText : "Viimeinen sivu", |
---|
127 | refreshText : "Päivitä", |
---|
128 | displayMsg : "Näytetään {0} - {1} / {2}", |
---|
129 | emptyMsg : 'Ei tietoja' |
---|
130 | }); |
---|
131 | } |
---|
132 | |
---|
133 | if(Ext.form.Field){ |
---|
134 | Ext.form.Field.prototype.invalidText = "Tämän kentän arvo ei kelpaa"; |
---|
135 | } |
---|
136 | |
---|
137 | if(Ext.form.TextField){ |
---|
138 | Ext.apply(Ext.form.TextField.prototype, { |
---|
139 | minLengthText : "Tämän kentän minimipituus on {0}", |
---|
140 | maxLengthText : "Tämän kentän maksimipituus on {0}", |
---|
141 | blankText : "Tämä kenttä on pakollinen", |
---|
142 | regexText : "", |
---|
143 | emptyText : null |
---|
144 | }); |
---|
145 | } |
---|
146 | |
---|
147 | if(Ext.form.NumberField){ |
---|
148 | Ext.apply(Ext.form.NumberField.prototype, { |
---|
149 | minText : "Tämän kentän pienin sallittu arvo on {0}", |
---|
150 | maxText : "Tämän kentän suurin sallittu arvo on {0}", |
---|
151 | nanText : "{0} ei ole numero" |
---|
152 | }); |
---|
153 | } |
---|
154 | |
---|
155 | if(Ext.form.DateField){ |
---|
156 | Ext.apply(Ext.form.DateField.prototype, { |
---|
157 | disabledDaysText : "Ei käytössä", |
---|
158 | disabledDatesText : "Ei käytössä", |
---|
159 | minText : "Tämän kentän päivämäärän tulee olla {0} jälkeen", |
---|
160 | maxText : "Tämän kentän päivämäärän tulee olla ennen {0}", |
---|
161 | invalidText : "Päivämäärä {0} ei ole oikeassa muodossa - kirjoita päivämäärä muodossa {1}", |
---|
162 | format : "j.n.Y", |
---|
163 | altFormats : "j.n.|d.m.|mdy|mdY|d|Y-m-d|Y/m/d" |
---|
164 | }); |
---|
165 | } |
---|
166 | |
---|
167 | if(Ext.form.ComboBox){ |
---|
168 | Ext.apply(Ext.form.ComboBox.prototype, { |
---|
169 | loadingText : "Ladataan...", |
---|
170 | valueNotFoundText : undefined |
---|
171 | }); |
---|
172 | } |
---|
173 | |
---|
174 | if(Ext.form.VTypes){ |
---|
175 | Ext.apply(Ext.form.VTypes, { |
---|
176 | emailText : 'Syötä tähän kenttään sähköpostiosoite, esim. "etunimi.sukunimi@osoite.fi"', |
---|
177 | urlText : 'Syötä tähän kenttään URL-osoite, esim. "http:/'+'/www.osoite.fi"', |
---|
178 | alphaText : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z) ja alaviivoja (_)', |
---|
179 | alphanumText : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z), numeroita (0-9) ja alaviivoja (_)' |
---|
180 | }); |
---|
181 | } |
---|
182 | |
---|
183 | if(Ext.form.HtmlEditor){ |
---|
184 | Ext.apply(Ext.form.HtmlEditor.prototype, { |
---|
185 | createLinkText : 'Anna linkin URL-osoite:', |
---|
186 | buttonTips : { |
---|
187 | bold : { |
---|
188 | title: 'Lihavoi (Ctrl+B)', |
---|
189 | text: 'Lihavoi valittu teksti.', |
---|
190 | cls: 'x-html-editor-tip' |
---|
191 | }, |
---|
192 | italic : { |
---|
193 | title: 'Kursivoi (Ctrl+I)', |
---|
194 | text: 'Kursivoi valittu teksti.', |
---|
195 | cls: 'x-html-editor-tip' |
---|
196 | }, |
---|
197 | underline : { |
---|
198 | title: 'Alleviivaa (Ctrl+U)', |
---|
199 | text: 'Alleviivaa valittu teksti.', |
---|
200 | cls: 'x-html-editor-tip' |
---|
201 | }, |
---|
202 | increasefontsize : { |
---|
203 | title: 'Suurenna tekstiä', |
---|
204 | text: 'Kasvata tekstin kirjasinkokoa.', |
---|
205 | cls: 'x-html-editor-tip' |
---|
206 | }, |
---|
207 | decreasefontsize : { |
---|
208 | title: 'Pienennä tekstiä', |
---|
209 | text: 'Pienennä tekstin kirjasinkokoa.', |
---|
210 | cls: 'x-html-editor-tip' |
---|
211 | }, |
---|
212 | backcolor : { |
---|
213 | title: 'Tekstin korostusväri', |
---|
214 | text: 'Vaihda valitun tekstin taustaväriä.', |
---|
215 | cls: 'x-html-editor-tip' |
---|
216 | }, |
---|
217 | forecolor : { |
---|
218 | title: 'Tekstin väri', |
---|
219 | text: 'Vaihda valitun tekstin väriä.', |
---|
220 | cls: 'x-html-editor-tip' |
---|
221 | }, |
---|
222 | justifyleft : { |
---|
223 | title: 'Tasaa vasemmalle', |
---|
224 | text: 'Tasaa teksti vasempaan reunaan.', |
---|
225 | cls: 'x-html-editor-tip' |
---|
226 | }, |
---|
227 | justifycenter : { |
---|
228 | title: 'Keskitä', |
---|
229 | text: 'Keskitä teksti.', |
---|
230 | cls: 'x-html-editor-tip' |
---|
231 | }, |
---|
232 | justifyright : { |
---|
233 | title: 'Tasaa oikealle', |
---|
234 | text: 'Tasaa teksti oikeaan reunaan.', |
---|
235 | cls: 'x-html-editor-tip' |
---|
236 | }, |
---|
237 | insertunorderedlist : { |
---|
238 | title: 'Luettelo', |
---|
239 | text: 'Luo luettelo.', |
---|
240 | cls: 'x-html-editor-tip' |
---|
241 | }, |
---|
242 | insertorderedlist : { |
---|
243 | title: 'Numeroitu luettelo', |
---|
244 | text: 'Luo numeroitu luettelo.', |
---|
245 | cls: 'x-html-editor-tip' |
---|
246 | }, |
---|
247 | createlink : { |
---|
248 | title: 'Linkki', |
---|
249 | text: 'Tee valitusta tekstistä hyperlinkki.', |
---|
250 | cls: 'x-html-editor-tip' |
---|
251 | }, |
---|
252 | sourceedit : { |
---|
253 | title: 'Lähdekoodin muokkaus', |
---|
254 | text: 'Vaihda lähdekoodin muokkausnäkymään.', |
---|
255 | cls: 'x-html-editor-tip' |
---|
256 | } |
---|
257 | } |
---|
258 | }); |
---|
259 | } |
---|
260 | |
---|
261 | if(Ext.form.BasicForm){ |
---|
262 | Ext.form.BasicForm.prototype.waitTitle = "Odota..."; |
---|
263 | } |
---|
264 | |
---|
265 | if(Ext.grid.GridView){ |
---|
266 | Ext.apply(Ext.grid.GridView.prototype, { |
---|
267 | sortAscText : "Järjestä A-Ö", |
---|
268 | sortDescText : "Järjestä Ö-A", |
---|
269 | lockText : "Lukitse sarake", |
---|
270 | unlockText : "Vapauta sarakkeen lukitus", |
---|
271 | columnsText : "Sarakkeet" |
---|
272 | }); |
---|
273 | } |
---|
274 | |
---|
275 | if(Ext.grid.GroupingView){ |
---|
276 | Ext.apply(Ext.grid.GroupingView.prototype, { |
---|
277 | emptyGroupText : '(ei mitään)', |
---|
278 | groupByText : 'Ryhmittele tämän kentän mukaan', |
---|
279 | showGroupsText : 'Näytä ryhmissä' |
---|
280 | }); |
---|
281 | } |
---|
282 | |
---|
283 | if(Ext.grid.PropertyColumnModel){ |
---|
284 | Ext.apply(Ext.grid.PropertyColumnModel.prototype, { |
---|
285 | nameText : "Nimi", |
---|
286 | valueText : "Arvo", |
---|
287 | dateFormat : "j.m.Y" |
---|
288 | }); |
---|
289 | } |
---|
290 | |
---|
291 | if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ |
---|
292 | Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { |
---|
293 | splitTip : "Muuta kokoa vetämällä.", |
---|
294 | collapsibleSplitTip : "Muuta kokoa vetämällä. Piilota kaksoisklikkauksella." |
---|
295 | }); |
---|
296 | } |
---|