locale-fi-debug.js 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /**
  2. * Finnish Translations
  3. * <tuomas.salo (at) iki.fi>
  4. * 'ä' should read as lowercase 'a' with two dots on top (&auml;)
  5. */
  6. Ext.onReady(function() {
  7. if (Ext.Date) {
  8. Ext.Date.monthNames = ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"];
  9. Ext.Date.getShortMonthName = function(month) {
  10. return (month + 1) + ".";
  11. };
  12. Ext.Date.monthNumbers = {
  13. 'tammikuu': 0,
  14. 'helmikuu': 1,
  15. 'maaliskuu': 2,
  16. 'huhtikuu': 3,
  17. 'toukokuu': 4,
  18. 'kesäkuu': 5,
  19. 'heinäkuu': 6,
  20. 'elokuu': 7,
  21. 'syyskuu': 8,
  22. 'lokakuu': 9,
  23. 'marraskuu': 10,
  24. 'joulukuu': 11
  25. };
  26. Ext.Date.getMonthNumber = function(name) {
  27. if (name.match(/^(1?\d)\./)) {
  28. return -1 + RegExp.$1;
  29. }
  30. else {
  31. return Ext.Date.monthNumbers[name];
  32. }
  33. };
  34. Ext.Date.dayNames = ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"];
  35. Ext.Date.getShortDayName = function(day) {
  36. return Ext.Date.dayNames[day].substring(0, 2);
  37. };
  38. }
  39. if (Ext.util && Ext.util.Format) {
  40. Ext.apply(Ext.util.Format, {
  41. thousandSeparator: '.',
  42. decimalSeparator: ',',
  43. currencySign: '\u20ac',
  44. // Finnish Euro
  45. dateFormat: 'j.n.Y'
  46. });
  47. Ext.util.Format.date = function(v, format) {
  48. if (!v) {
  49. return "";
  50. }
  51. if (!(v instanceof Date)) {
  52. v = new Date(Date.parse(v));
  53. }
  54. return Ext.Date.format(v, format || "j.n.Y");
  55. };
  56. }
  57. });
  58. Ext.define("Ext.locale.fi.view.View", {
  59. override: "Ext.view.View",
  60. emptyText: ""
  61. });
  62. Ext.define("Ext.locale.fi.grid.plugin.DragDrop", {
  63. override: "Ext.grid.plugin.DragDrop",
  64. dragText: "{0} rivi(ä) valittu"
  65. });
  66. Ext.define("Ext.locale.fi.tab.Tab", {
  67. override: "Ext.tab.Tab",
  68. closeText: "Sulje tämä välilehti"
  69. });
  70. // changing the msg text below will affect the LoadMask
  71. Ext.define("Ext.locale.fi.view.AbstractView", {
  72. override: "Ext.view.AbstractView",
  73. loadingText: "Ladataan..."
  74. });
  75. Ext.define("Ext.locale.fi.picker.Date", {
  76. override: "Ext.picker.Date",
  77. todayText: "Tänään",
  78. minText: "Tämä päivämäärä on aikaisempi kuin ensimmäinen sallittu",
  79. maxText: "Tämä päivämäärä on myöhäisempi kuin viimeinen sallittu",
  80. disabledDaysText: "",
  81. disabledDatesText: "",
  82. nextText: 'Seuraava kuukausi (Control+oikealle)',
  83. prevText: 'Edellinen kuukausi (Control+vasemmalle)',
  84. monthYearText: 'Valitse kuukausi (vaihda vuotta painamalla Control+ylös/alas)',
  85. todayTip: "{0} (välilyönti)",
  86. format: "j.n.Y",
  87. startDay: 1 // viikko alkaa maanantaista
  88. });
  89. Ext.define("Ext.locale.fi.picker.Month", {
  90. override: "Ext.picker.Month",
  91. okText: "&#160;OK&#160;",
  92. cancelText: "Peruuta"
  93. });
  94. Ext.define("Ext.locale.fi.toolbar.Paging", {
  95. override: "Ext.PagingToolbar",
  96. beforePageText: "Sivu",
  97. afterPageText: "/ {0}",
  98. firstText: "Ensimmäinen sivu",
  99. prevText: "Edellinen sivu",
  100. nextText: "Seuraava sivu",
  101. lastText: "Viimeinen sivu",
  102. refreshText: "Päivitä",
  103. displayMsg: "Näytetään {0} - {1} / {2}",
  104. emptyMsg: 'Ei tietoja'
  105. });
  106. Ext.define("Ext.locale.fi.form.field.Base", {
  107. override: "Ext.form.field.Base",
  108. invalidText: "Tämän kentän arvo ei kelpaa"
  109. });
  110. Ext.define("Ext.locale.fi.form.field.Text", {
  111. override: "Ext.form.field.Text",
  112. minLengthText: "Tämän kentän minimipituus on {0}",
  113. maxLengthText: "Tämän kentän maksimipituus on {0}",
  114. blankText: "Tämä kenttä on pakollinen",
  115. regexText: "",
  116. emptyText: null
  117. });
  118. Ext.define("Ext.locale.fi.form.field.Number", {
  119. override: "Ext.form.field.Number",
  120. minText: "Tämän kentän pienin sallittu arvo on {0}",
  121. maxText: "Tämän kentän suurin sallittu arvo on {0}",
  122. nanText: "{0} ei ole numero"
  123. });
  124. Ext.define("Ext.locale.fi.form.field.Date", {
  125. override: "Ext.form.field.Date",
  126. disabledDaysText: "Ei käytössä",
  127. disabledDatesText: "Ei käytössä",
  128. minText: "Tämän kentän päivämäärän tulee olla {0} jälkeen",
  129. maxText: "Tämän kentän päivämäärän tulee olla ennen {0}",
  130. invalidText: "Päivämäärä {0} ei ole oikeassa muodossa - kirjoita päivämäärä muodossa {1}",
  131. format: "j.n.Y",
  132. altFormats: "j.n.|d.m.|mdy|mdY|d|Y-m-d|Y/m/d"
  133. });
  134. Ext.define("Ext.locale.fi.form.field.ComboBox", {
  135. override: "Ext.form.field.ComboBox",
  136. valueNotFoundText: undefined
  137. }, function() {
  138. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  139. loadingText: "Ladataan..."
  140. });
  141. });
  142. Ext.define("Ext.locale.fi.form.field.VTypes", {
  143. override: "Ext.form.field.VTypes",
  144. emailText: 'Syötä tähän kenttään sähköpostiosoite, esim. "etunimi.sukunimi@osoite.fi"',
  145. urlText: 'Syötä tähän kenttään URL-osoite, esim. "http:/' + '/www.osoite.fi"',
  146. alphaText: 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z) ja alaviivoja (_)',
  147. alphanumText: 'Syötä tähän kenttään vain kirjaimia (a-z, A-Z), numeroita (0-9) ja alaviivoja (_)'
  148. });
  149. Ext.define("Ext.locale.fi.form.field.HtmlEditor", {
  150. override: "Ext.form.field.HtmlEditor",
  151. createLinkText: 'Anna linkin URL-osoite:'
  152. }, function() {
  153. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  154. buttonTips: {
  155. bold: {
  156. title: 'Lihavoi (Ctrl+B)',
  157. text: 'Lihavoi valittu teksti.',
  158. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  159. },
  160. italic: {
  161. title: 'Kursivoi (Ctrl+I)',
  162. text: 'Kursivoi valittu teksti.',
  163. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  164. },
  165. underline: {
  166. title: 'Alleviivaa (Ctrl+U)',
  167. text: 'Alleviivaa valittu teksti.',
  168. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  169. },
  170. increasefontsize: {
  171. title: 'Suurenna tekstiä',
  172. text: 'Kasvata tekstin kirjasinkokoa.',
  173. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  174. },
  175. decreasefontsize: {
  176. title: 'Pienennä tekstiä',
  177. text: 'Pienennä tekstin kirjasinkokoa.',
  178. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  179. },
  180. backcolor: {
  181. title: 'Tekstin korostusväri',
  182. text: 'Vaihda valitun tekstin taustaväriä.',
  183. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  184. },
  185. forecolor: {
  186. title: 'Tekstin väri',
  187. text: 'Vaihda valitun tekstin väriä.',
  188. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  189. },
  190. justifyleft: {
  191. title: 'Tasaa vasemmalle',
  192. text: 'Tasaa teksti vasempaan reunaan.',
  193. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  194. },
  195. justifycenter: {
  196. title: 'Keskitä',
  197. text: 'Keskitä teksti.',
  198. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  199. },
  200. justifyright: {
  201. title: 'Tasaa oikealle',
  202. text: 'Tasaa teksti oikeaan reunaan.',
  203. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  204. },
  205. insertunorderedlist: {
  206. title: 'Luettelo',
  207. text: 'Luo luettelo.',
  208. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  209. },
  210. insertorderedlist: {
  211. title: 'Numeroitu luettelo',
  212. text: 'Luo numeroitu luettelo.',
  213. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  214. },
  215. createlink: {
  216. title: 'Linkki',
  217. text: 'Tee valitusta tekstistä hyperlinkki.',
  218. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  219. },
  220. sourceedit: {
  221. title: 'Lähdekoodin muokkaus',
  222. text: 'Vaihda lähdekoodin muokkausnäkymään.',
  223. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  224. }
  225. }
  226. });
  227. });
  228. Ext.define("Ext.locale.fi.form.Basic", {
  229. override: "Ext.form.Basic",
  230. waitTitle: "Odota..."
  231. });
  232. Ext.define("Ext.locale.fi.grid.header.Container", {
  233. override: "Ext.grid.header.Container",
  234. sortAscText: "Järjestä A-Ö",
  235. sortDescText: "Järjestä Ö-A",
  236. lockText: "Lukitse sarake",
  237. unlockText: "Vapauta sarakkeen lukitus",
  238. columnsText: "Sarakkeet"
  239. });
  240. Ext.define("Ext.locale.fi.grid.GroupingFeature", {
  241. override: "Ext.grid.feature.Grouping",
  242. emptyGroupText: '(ei mitään)',
  243. groupByText: 'Ryhmittele tämän kentän mukaan',
  244. showGroupsText: 'Näytä ryhmissä'
  245. });
  246. Ext.define("Ext.locale.fi.grid.PropertyColumnModel", {
  247. override: "Ext.grid.PropertyColumnModel",
  248. nameText: "Nimi",
  249. valueText: "Arvo",
  250. dateFormat: "j.m.Y"
  251. });
  252. Ext.define("Ext.locale.fi.window.MessageBox", {
  253. override: "Ext.window.MessageBox",
  254. buttonText: {
  255. ok: "OK",
  256. cancel: "Peruuta",
  257. yes: "Kyllä",
  258. no: "Ei"
  259. }
  260. });
  261. // This is needed until we can refactor all of the locales into individual files
  262. Ext.define("Ext.locale.fi.Component", {
  263. override: "Ext.Component"
  264. });