3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
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.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 * Finnish Translations
17 * <tuomas.salo (at) iki.fi>
18 * 'ä' should read as lowercase 'a' with two dots on top (ä)
20 Ext.onReady(function() {
22 Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Ladataan...</div>';
25 Ext.view.View.prototype.emptyText = "";
29 Ext.grid.Panel.prototype.ddText = "{0} rivi(ä) valittu";
33 Ext.TabPanelItem.prototype.closeText = "Sulje tämä välilehti";
37 Ext.LoadMask.prototype.msg = "Ladataan...";
41 Ext.Date.monthNames = [
56 Ext.Date.getShortMonthName = function(month) {
57 //return Ext.Date.monthNames[month].substring(0, 3);
58 return (month+1) + ".";
61 Ext.Date.monthNumbers = {
76 Ext.Date.getMonthNumber = function(name) {
77 if(name.match(/^(1?\d)\./)) {
80 return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
94 Ext.Date.getShortDayName = function(day) {
95 return Ext.Date.dayNames[day].substring(0, 2);
100 Ext.MessageBox.buttonText = {
109 Ext.apply(Ext.util.Format, {
110 thousandSeparator: '.',
111 decimalSeparator: ',',
112 currencySign: '\u20ac', // Finnish Euro
117 Ext.util.Format.date = function(v, format){
119 if(!(v instanceof Date)) v = new Date(Date.parse(v));
120 return v.dateFormat(format || "j.n.Y");
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)",
138 startDay : 1 // viikko alkaa maanantaista
142 if(Ext.picker.Month) {
143 Ext.apply(Ext.picker.Month.prototype, {
144 okText : " OK ",
145 cancelText : "Peruuta"
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'
163 if(Ext.form.field.Base){
164 Ext.form.field.Base.prototype.invalidText = "Tämän kentän arvo ei kelpaa";
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",
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"
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}",
193 altFormats : "j.n.|d.m.|mdy|mdY|d|Y-m-d|Y/m/d"
197 if(Ext.form.field.ComboBox){
198 Ext.apply(Ext.form.field.ComboBox.prototype, {
199 loadingText : "Ladataan...",
200 valueNotFoundText : undefined
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 (_)'
213 if(Ext.form.field.HtmlEditor){
214 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
215 createLinkText : 'Anna linkin URL-osoite:',
218 title: 'Lihavoi (Ctrl+B)',
219 text: 'Lihavoi valittu teksti.',
220 cls: Ext.baseCSSPrefix + 'html-editor-tip'
223 title: 'Kursivoi (Ctrl+I)',
224 text: 'Kursivoi valittu teksti.',
225 cls: Ext.baseCSSPrefix + 'html-editor-tip'
228 title: 'Alleviivaa (Ctrl+U)',
229 text: 'Alleviivaa valittu teksti.',
230 cls: Ext.baseCSSPrefix + 'html-editor-tip'
233 title: 'Suurenna tekstiä',
234 text: 'Kasvata tekstin kirjasinkokoa.',
235 cls: Ext.baseCSSPrefix + 'html-editor-tip'
238 title: 'Pienennä tekstiä',
239 text: 'Pienennä tekstin kirjasinkokoa.',
240 cls: Ext.baseCSSPrefix + 'html-editor-tip'
243 title: 'Tekstin korostusväri',
244 text: 'Vaihda valitun tekstin taustaväriä.',
245 cls: Ext.baseCSSPrefix + 'html-editor-tip'
248 title: 'Tekstin väri',
249 text: 'Vaihda valitun tekstin väriä.',
250 cls: Ext.baseCSSPrefix + 'html-editor-tip'
253 title: 'Tasaa vasemmalle',
254 text: 'Tasaa teksti vasempaan reunaan.',
255 cls: Ext.baseCSSPrefix + 'html-editor-tip'
259 text: 'Keskitä teksti.',
260 cls: Ext.baseCSSPrefix + 'html-editor-tip'
263 title: 'Tasaa oikealle',
264 text: 'Tasaa teksti oikeaan reunaan.',
265 cls: Ext.baseCSSPrefix + 'html-editor-tip'
267 insertunorderedlist : {
269 text: 'Luo luettelo.',
270 cls: Ext.baseCSSPrefix + 'html-editor-tip'
272 insertorderedlist : {
273 title: 'Numeroitu luettelo',
274 text: 'Luo numeroitu luettelo.',
275 cls: Ext.baseCSSPrefix + 'html-editor-tip'
279 text: 'Tee valitusta tekstistä hyperlinkki.',
280 cls: Ext.baseCSSPrefix + 'html-editor-tip'
283 title: 'Lähdekoodin muokkaus',
284 text: 'Vaihda lähdekoodin muokkausnäkymään.',
285 cls: Ext.baseCSSPrefix + 'html-editor-tip'
292 Ext.form.Basic.prototype.waitTitle = "Odota...";
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"
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ä'
313 if(Ext.grid.PropertyColumnModel){
314 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
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."