grid.locale-fi.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /**
  2. * @license jqGrid (fi) Finnish Translation
  3. * Jukka Inkeri awot.fi 2010-05-19
  4. * Alex Grönholm alex.gronholm@nextday.fi 2011-05-18
  5. * http://awot.fi
  6. * Dual licensed under the MIT and GPL licenses:
  7. * http://www.opensource.org/licenses/mit-license.php
  8. * http://www.gnu.org/licenses/gpl.html
  9. **/
  10. /*jslint white: true */
  11. /*global jQuery, module, require */
  12. (function (factory) {
  13. "use strict";
  14. if (typeof define === "function" && define.amd) {
  15. // AMD. Register as an anonymous module.
  16. define(["jquery"], factory);
  17. } else if (typeof module === "object" && module.exports) {
  18. // Node/CommonJS
  19. module.exports = function (root, $) {
  20. if ($ === undefined) {
  21. // require("jquery") returns a factory that requires window to
  22. // build a jQuery instance, we normalize how we use modules
  23. // that require this pattern but the window provided is a noop
  24. // if it's defined (how jquery works)
  25. $ = typeof window !== "undefined" ?
  26. require("jquery") :
  27. require("jquery")(root || window);
  28. }
  29. factory($);
  30. return $;
  31. };
  32. } else {
  33. // Browser globals
  34. factory(jQuery);
  35. }
  36. }(function ($) {
  37. "use strict";
  38. var locInfo = {
  39. isRTL: false,
  40. defaults: {
  41. recordtext: "Rivit {0} - {1} / {2}",
  42. emptyrecords: "Ei näytettäviä",
  43. loadtext: "Haetaan...",
  44. pgtext: "Sivu {0} / {1}",
  45. pgfirst: "First Page",
  46. pglast: "Last Page",
  47. pgnext: "Next Page",
  48. pgprev: "Previous Page",
  49. pgrecs: "Records per Page",
  50. showhide: "Toggle Expand Collapse Grid",
  51. savetext: "Tallennetaan..."
  52. },
  53. search: {
  54. caption: "Etsi...",
  55. Find: "Etsi",
  56. Reset: "Tyhjennä",
  57. odata: [
  58. { oper: "eq", text: "on" },
  59. { oper: "ne", text: "ei ole" },
  60. { oper: "lt", text: "pienempi" },
  61. { oper: "le", text: "pienempi tai yhtäsuuri" },
  62. { oper: "gt", text: "suurempi" },
  63. { oper: "ge", text: "suurempi tai yhtäsuuri" },
  64. { oper: "bw", text: "alkaa" },
  65. { oper: "bn", text: "ei ala" },
  66. { oper: "in", text: "joukossa" },
  67. { oper: "ni", text: "ei joukossa" },
  68. { oper: "ew", text: "loppuu" },
  69. { oper: "en", text: "ei lopu" },
  70. { oper: "cn", text: "sisältää" },
  71. { oper: "nc", text: "ei sisällä" },
  72. { oper: "nu", text: "on tyhjä" },
  73. { oper: "nn", text: "ei ole tyhjä" },
  74. { oper: "nu", text: "is null" },
  75. { oper: "nn", text: "is not null" }
  76. ],
  77. groupOps: [
  78. { op: "AND", text: "kaikki" },
  79. { op: "OR", text: "mikä tahansa" }
  80. ],
  81. addGroupTitle: "Add subgroup",
  82. deleteGroupTitle: "Delete group",
  83. addRuleTitle: "Add rule",
  84. deleteRuleTitle: "Delete rule",
  85. operandTitle: "Click to select search operation.",
  86. resetTitle: "Reset Search Value"
  87. },
  88. edit: {
  89. addCaption: "Uusi rivi",
  90. editCaption: "Muokkaa riviä",
  91. bSubmit: "OK",
  92. bCancel: "Peru",
  93. bClose: "Sulje",
  94. saveData: "Tietoja muutettu! Tallennetaanko?",
  95. bYes: "Kyllä",
  96. bNo: "Ei",
  97. bExit: "Peru",
  98. msg: {
  99. required: "pakollinen",
  100. number: "Anna kelvollinen nro",
  101. minValue: "arvon oltava suurempi tai yhtäsuuri kuin ",
  102. maxValue: "arvon oltava pienempi tai yhtäsuuri kuin ",
  103. email: "ei ole kelvollinen säpostiosoite",
  104. integer: "Anna kelvollinen kokonaisluku",
  105. date: "Anna kelvollinen pvm",
  106. url: "Ei ole kelvollinen linkki(URL). Alku oltava ('http://' tai 'https://')",
  107. nodefined: " ei ole määritelty!",
  108. novalue: " paluuarvo vaaditaan!",
  109. customarray: "Oman funktion tulee palauttaa jono!",
  110. customfcheck: "Oma funktio on määriteltävä räätälöityä tarkastusta varten!"
  111. }
  112. },
  113. view: {
  114. caption: "Näytä rivi",
  115. bClose: "Sulje"
  116. },
  117. del: {
  118. caption: "Poista",
  119. msg: "Poista valitut rivit?",
  120. bSubmit: "Poista",
  121. bCancel: "Peru"
  122. },
  123. nav: {
  124. edittext: "",
  125. edittitle: "Muokkaa valittua riviä",
  126. addtext: "",
  127. addtitle: "Uusi rivi",
  128. deltext: "",
  129. deltitle: "Poista valittu rivi",
  130. searchtext: "",
  131. searchtitle: "Etsi tietoja",
  132. refreshtext: "",
  133. refreshtitle: "Lataa uudelleen",
  134. alertcap: "Varoitus",
  135. alerttext: "Valitse rivi",
  136. viewtext: "",
  137. viewtitle: "Näyta valitut rivit",
  138. savetext: "",
  139. savetitle: "Save row",
  140. canceltext: "",
  141. canceltitle: "Cancel row editing"
  142. },
  143. col: {
  144. caption: "Valitse sarakkeet",
  145. bSubmit: "OK",
  146. bCancel: "Peru"
  147. },
  148. errors: {
  149. errcap: "Virhe",
  150. nourl: "URL on asettamatta",
  151. norecords: "Ei muokattavia tietoja",
  152. model: "Pituus colNames <> colModel!"
  153. },
  154. formatter: {
  155. integer: { thousandsSeparator: "", defaultValue: "0" },
  156. number: { decimalSeparator: ",", thousandsSeparator: "", decimalPlaces: 2, defaultValue: "0,00" },
  157. currency: { decimalSeparator: ",", thousandsSeparator: "", decimalPlaces: 2, prefix: "", suffix: "", defaultValue: "0,00" },
  158. date: {
  159. dayNames: [
  160. "Su", "Ma", "Ti", "Ke", "To", "Pe", "La",
  161. "Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai"
  162. ],
  163. monthNames: [
  164. "Tam", "Hel", "Maa", "Huh", "Tou", "Kes", "Hei", "Elo", "Syy", "Lok", "Mar", "Jou",
  165. "Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu"
  166. ],
  167. AmPm: ["am", "pm", "AM", "PM"],
  168. S: function (j) {
  169. return j < 11 || j > 13 ? ["st", "nd", "rd", "th"][Math.min((j - 1) % 10, 3)] : "th";
  170. },
  171. srcformat: "Y-m-d",
  172. newformat: "d.m.Y",
  173. masks: {
  174. ShortDate: "d.m.Y",
  175. LongDate: "l, F d, Y",
  176. FullDateTime: "l, F d, Y g:i:s A",
  177. MonthDay: "F d",
  178. ShortTime: "g:i A",
  179. LongTime: "g:i:s A",
  180. YearMonth: "F, Y"
  181. }
  182. }
  183. }
  184. };
  185. $.jgrid = $.jgrid || {};
  186. $.extend(true, $.jgrid, {
  187. defaults: {
  188. locale: "fi"
  189. },
  190. locales: {
  191. // In general the property name is free, but it's recommended to use the names based on
  192. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  193. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  194. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  195. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  196. fi: $.extend({}, locInfo, { name: "suomi", nameEnglish: "Finnish" }),
  197. "fi-FI": $.extend({}, locInfo, { name: "suomi (Suomi)", nameEnglish: "Finnish (Finland)" })
  198. }
  199. });
  200. }));