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