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