Upgrade to ExtJS 4.0.7 - Released 10/19/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             valueNotFoundText : undefined
200         });
201         Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
202             loadingText       : "Ladataan..."
203         });
204     }
205
206     if(Ext.form.field.VTypes){
207         Ext.apply(Ext.form.field.VTypes, {
208             emailText    : 'Syötä tähän kenttään sähköpostiosoite, esim. "etunimi.sukunimi@osoite.fi"',
209             urlText      : 'Syötä tähän kenttään URL-osoite, esim. "http:/'+'/www.osoite.fi"',
210             alphaText    : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z) ja alaviivoja (_)',
211             alphanumText : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z), numeroita (0-9) ja alaviivoja (_)'
212         });
213     }
214
215     if(Ext.form.field.HtmlEditor){
216         Ext.apply(Ext.form.field.HtmlEditor.prototype, {
217             createLinkText : 'Anna linkin URL-osoite:',
218             buttonTips : {
219                 bold : {
220                     title: 'Lihavoi (Ctrl+B)',
221                     text: 'Lihavoi valittu teksti.',
222                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
223                 },
224                 italic : {
225                     title: 'Kursivoi (Ctrl+I)',
226                     text: 'Kursivoi valittu teksti.',
227                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
228                 },
229                 underline : {
230                     title: 'Alleviivaa (Ctrl+U)',
231                     text: 'Alleviivaa valittu teksti.',
232                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
233                 },
234                 increasefontsize : {
235                     title: 'Suurenna tekstiä',
236                     text: 'Kasvata tekstin kirjasinkokoa.',
237                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
238                 },
239                 decreasefontsize : {
240                     title: 'Pienennä tekstiä',
241                     text: 'Pienennä tekstin kirjasinkokoa.',
242                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
243                 },
244                 backcolor : {
245                     title: 'Tekstin korostusväri',
246                     text: 'Vaihda valitun tekstin taustaväriä.',
247                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
248                 },
249                 forecolor : {
250                     title: 'Tekstin väri',
251                     text: 'Vaihda valitun tekstin väriä.',
252                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
253                 },
254                 justifyleft : {
255                     title: 'Tasaa vasemmalle',
256                     text: 'Tasaa teksti vasempaan reunaan.',
257                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
258                 },
259                 justifycenter : {
260                     title: 'Keskitä',
261                     text: 'Keskitä teksti.',
262                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
263                 },
264                 justifyright : {
265                     title: 'Tasaa oikealle',
266                     text: 'Tasaa teksti oikeaan reunaan.',
267                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
268                 },
269                 insertunorderedlist : {
270                     title: 'Luettelo',
271                     text: 'Luo luettelo.',
272                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
273                 },
274                 insertorderedlist : {
275                     title: 'Numeroitu luettelo',
276                     text: 'Luo numeroitu luettelo.',
277                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
278                 },
279                 createlink : {
280                     title: 'Linkki',
281                     text: 'Tee valitusta tekstistä hyperlinkki.',
282                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
283                 },
284                 sourceedit : {
285                     title: 'Lähdekoodin muokkaus',
286                     text: 'Vaihda lähdekoodin muokkausnäkymään.',
287                     cls: Ext.baseCSSPrefix + 'html-editor-tip'
288                 }
289             }
290         });
291     }
292
293     if(Ext.form.Basic){
294         Ext.form.Basic.prototype.waitTitle = "Odota...";
295     }
296
297     if(Ext.grid.header.Container){
298         Ext.apply(Ext.grid.header.Container.prototype, {
299             sortAscText  : "Järjestä A-Ö",
300             sortDescText : "Järjestä Ö-A",
301             lockText     : "Lukitse sarake",
302             unlockText   : "Vapauta sarakkeen lukitus",
303             columnsText  : "Sarakkeet"
304         });
305     }
306
307     if(Ext.grid.GroupingFeature){
308         Ext.apply(Ext.grid.GroupingFeature.prototype, {
309             emptyGroupText : '(ei mitään)',
310             groupByText    : 'Ryhmittele tämän kentän mukaan',
311             showGroupsText : 'Näytä ryhmissä'
312         });
313     }
314
315     if(Ext.grid.PropertyColumnModel){
316         Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
317             nameText   : "Nimi",
318             valueText  : "Arvo",
319             dateFormat : "j.m.Y"
320         });
321     }
322
323     if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
324         Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
325             splitTip            : "Muuta kokoa vetämällä.",
326             collapsibleSplitTip : "Muuta kokoa vetämällä. Piilota kaksoisklikkauksella."
327         });
328     }
329 });