/*!
|
* Ext JS Library 3.1.0
|
* Copyright(c) 2006-2009 Ext JS, LLC
|
* licensing@extjs.com
|
* http://www.extjs.com/license
|
*/
|
/**
|
* Finnish Translations
|
* <tuomas.salo (at) iki.fi>
|
* 'ä' should read as lowercase 'a' with two dots on top (ä)
|
*/
|
|
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Ladataan...</div>';
|
|
if(Ext.View){
|
Ext.View.prototype.emptyText = "";
|
}
|
|
if(Ext.grid.GridPanel){
|
Ext.grid.GridPanel.prototype.ddText = "{0} rivi(ä) valittu";
|
}
|
|
if(Ext.TabPanelItem){
|
Ext.TabPanelItem.prototype.closeText = "Sulje tämä välilehti";
|
}
|
|
if(Ext.LoadMask){
|
Ext.LoadMask.prototype.msg = "Ladataan...";
|
}
|
|
Date.monthNames = [
|
"tammikuu",
|
"helmikuu",
|
"maaliskuu",
|
"huhtikuu",
|
"toukokuu",
|
"kesäkuu",
|
"heinäkuu",
|
"elokuu",
|
"syyskuu",
|
"lokakuu",
|
"marraskuu",
|
"joulukuu"
|
];
|
|
Date.getShortMonthName = function(month) {
|
//return Date.monthNames[month].substring(0, 3);
|
return (month+1) + ".";
|
};
|
|
Date.monthNumbers = {
|
Jan : 0,
|
Feb : 1,
|
Mar : 2,
|
Apr : 3,
|
May : 4,
|
Jun : 5,
|
Jul : 6,
|
Aug : 7,
|
Sep : 8,
|
Oct : 9,
|
Nov : 10,
|
Dec : 11
|
};
|
|
Date.getMonthNumber = function(name) {
|
if(name.match(/^(1?\d)\./)) {
|
return -1+RegExp.$1;
|
} else {
|
return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
|
}
|
};
|
|
Date.dayNames = [
|
"sunnuntai",
|
"maanantai",
|
"tiistai",
|
"keskiviikko",
|
"torstai",
|
"perjantai",
|
"lauantai"
|
];
|
|
Date.getShortDayName = function(day) {
|
return Date.dayNames[day].substring(0, 2);
|
};
|
|
if(Ext.MessageBox){
|
Ext.MessageBox.buttonText = {
|
ok : "OK",
|
cancel : "Peruuta",
|
yes : "Kyllä",
|
no : "Ei"
|
};
|
}
|
|
if(Ext.util.Format){
|
Ext.util.Format.date = function(v, format){
|
if(!v) return "";
|
if(!(v instanceof Date)) v = new Date(Date.parse(v));
|
return v.dateFormat(format || "j.n.Y");
|
};
|
}
|
|
if(Ext.DatePicker){
|
Ext.apply(Ext.DatePicker.prototype, {
|
todayText : "Tänään",
|
minText : "Tämä päivämäärä on aikaisempi kuin ensimmäinen sallittu",
|
maxText : "Tämä päivämäärä on myöhäisempi kuin viimeinen sallittu",
|
disabledDaysText : "",
|
disabledDatesText : "",
|
monthNames : Date.monthNames,
|
dayNames : Date.dayNames,
|
nextText : 'Seuraava kuukausi (Control+oikealle)',
|
prevText : 'Edellinen kuukausi (Control+vasemmalle)',
|
monthYearText : 'Valitse kuukausi (vaihda vuotta painamalla Control+ylös/alas)',
|
todayTip : "{0} (välilyönti)",
|
format : "j.n.Y",
|
okText : " OK ",
|
cancelText : "Peruuta",
|
startDay : 1 // viikko alkaa maanantaista
|
});
|
}
|
|
if(Ext.PagingToolbar){
|
Ext.apply(Ext.PagingToolbar.prototype, {
|
beforePageText : "Sivu",
|
afterPageText : "/ {0}",
|
firstText : "Ensimmäinen sivu",
|
prevText : "Edellinen sivu",
|
nextText : "Seuraava sivu",
|
lastText : "Viimeinen sivu",
|
refreshText : "Päivitä",
|
displayMsg : "Näytetään {0} - {1} / {2}",
|
emptyMsg : 'Ei tietoja'
|
});
|
}
|
|
if(Ext.form.Field){
|
Ext.form.Field.prototype.invalidText = "Tämän kentän arvo ei kelpaa";
|
}
|
|
if(Ext.form.TextField){
|
Ext.apply(Ext.form.TextField.prototype, {
|
minLengthText : "Tämän kentän minimipituus on {0}",
|
maxLengthText : "Tämän kentän maksimipituus on {0}",
|
blankText : "Tämä kenttä on pakollinen",
|
regexText : "",
|
emptyText : null
|
});
|
}
|
|
if(Ext.form.NumberField){
|
Ext.apply(Ext.form.NumberField.prototype, {
|
minText : "Tämän kentän pienin sallittu arvo on {0}",
|
maxText : "Tämän kentän suurin sallittu arvo on {0}",
|
nanText : "{0} ei ole numero"
|
});
|
}
|
|
if(Ext.form.DateField){
|
Ext.apply(Ext.form.DateField.prototype, {
|
disabledDaysText : "Ei käytössä",
|
disabledDatesText : "Ei käytössä",
|
minText : "Tämän kentän päivämäärän tulee olla {0} jälkeen",
|
maxText : "Tämän kentän päivämäärän tulee olla ennen {0}",
|
invalidText : "Päivämäärä {0} ei ole oikeassa muodossa - kirjoita päivämäärä muodossa {1}",
|
format : "j.n.Y",
|
altFormats : "j.n.|d.m.|mdy|mdY|d|Y-m-d|Y/m/d"
|
});
|
}
|
|
if(Ext.form.ComboBox){
|
Ext.apply(Ext.form.ComboBox.prototype, {
|
loadingText : "Ladataan...",
|
valueNotFoundText : undefined
|
});
|
}
|
|
if(Ext.form.VTypes){
|
Ext.apply(Ext.form.VTypes, {
|
emailText : 'Syötä tähän kenttään sähköpostiosoite, esim. "etunimi.sukunimi@osoite.fi"',
|
urlText : 'Syötä tähän kenttään URL-osoite, esim. "http:/'+'/www.osoite.fi"',
|
alphaText : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z) ja alaviivoja (_)',
|
alphanumText : 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z), numeroita (0-9) ja alaviivoja (_)'
|
});
|
}
|
|
if(Ext.form.HtmlEditor){
|
Ext.apply(Ext.form.HtmlEditor.prototype, {
|
createLinkText : 'Anna linkin URL-osoite:',
|
buttonTips : {
|
bold : {
|
title: 'Lihavoi (Ctrl+B)',
|
text: 'Lihavoi valittu teksti.',
|
cls: 'x-html-editor-tip'
|
},
|
italic : {
|
title: 'Kursivoi (Ctrl+I)',
|
text: 'Kursivoi valittu teksti.',
|
cls: 'x-html-editor-tip'
|
},
|
underline : {
|
title: 'Alleviivaa (Ctrl+U)',
|
text: 'Alleviivaa valittu teksti.',
|
cls: 'x-html-editor-tip'
|
},
|
increasefontsize : {
|
title: 'Suurenna tekstiä',
|
text: 'Kasvata tekstin kirjasinkokoa.',
|
cls: 'x-html-editor-tip'
|
},
|
decreasefontsize : {
|
title: 'Pienennä tekstiä',
|
text: 'Pienennä tekstin kirjasinkokoa.',
|
cls: 'x-html-editor-tip'
|
},
|
backcolor : {
|
title: 'Tekstin korostusväri',
|
text: 'Vaihda valitun tekstin taustaväriä.',
|
cls: 'x-html-editor-tip'
|
},
|
forecolor : {
|
title: 'Tekstin väri',
|
text: 'Vaihda valitun tekstin väriä.',
|
cls: 'x-html-editor-tip'
|
},
|
justifyleft : {
|
title: 'Tasaa vasemmalle',
|
text: 'Tasaa teksti vasempaan reunaan.',
|
cls: 'x-html-editor-tip'
|
},
|
justifycenter : {
|
title: 'Keskitä',
|
text: 'Keskitä teksti.',
|
cls: 'x-html-editor-tip'
|
},
|
justifyright : {
|
title: 'Tasaa oikealle',
|
text: 'Tasaa teksti oikeaan reunaan.',
|
cls: 'x-html-editor-tip'
|
},
|
insertunorderedlist : {
|
title: 'Luettelo',
|
text: 'Luo luettelo.',
|
cls: 'x-html-editor-tip'
|
},
|
insertorderedlist : {
|
title: 'Numeroitu luettelo',
|
text: 'Luo numeroitu luettelo.',
|
cls: 'x-html-editor-tip'
|
},
|
createlink : {
|
title: 'Linkki',
|
text: 'Tee valitusta tekstistä hyperlinkki.',
|
cls: 'x-html-editor-tip'
|
},
|
sourceedit : {
|
title: 'Lähdekoodin muokkaus',
|
text: 'Vaihda lähdekoodin muokkausnäkymään.',
|
cls: 'x-html-editor-tip'
|
}
|
}
|
});
|
}
|
|
if(Ext.form.BasicForm){
|
Ext.form.BasicForm.prototype.waitTitle = "Odota...";
|
}
|
|
if(Ext.grid.GridView){
|
Ext.apply(Ext.grid.GridView.prototype, {
|
sortAscText : "Järjestä A-Ö",
|
sortDescText : "Järjestä Ö-A",
|
lockText : "Lukitse sarake",
|
unlockText : "Vapauta sarakkeen lukitus",
|
columnsText : "Sarakkeet"
|
});
|
}
|
|
if(Ext.grid.GroupingView){
|
Ext.apply(Ext.grid.GroupingView.prototype, {
|
emptyGroupText : '(ei mitään)',
|
groupByText : 'Ryhmittele tämän kentän mukaan',
|
showGroupsText : 'Näytä ryhmissä'
|
});
|
}
|
|
if(Ext.grid.PropertyColumnModel){
|
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
|
nameText : "Nimi",
|
valueText : "Arvo",
|
dateFormat : "j.m.Y"
|
});
|
}
|
|
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
|
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
|
splitTip : "Muuta kokoa vetämällä.",
|
collapsibleSplitTip : "Muuta kokoa vetämällä. Piilota kaksoisklikkauksella."
|
});
|
}
|