grid.locale-sv.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /**
  2. * jqGrid Swedish Translation
  3. * Harald Normann harald.normann@wts.se, harald.normann@gmail.com
  4. * http://www.worldteamsoftware.com
  5. * Dual licensed under the MIT and GPL licenses:
  6. * http://www.opensource.org/licenses/mit-license.php
  7. * http://www.gnu.org/licenses/gpl.html
  8. **/
  9. /*global jQuery, define */
  10. (function( factory ) {
  11. "use strict";
  12. if ( typeof define === "function" && define.amd ) {
  13. // AMD. Register as an anonymous module.
  14. define([
  15. "jquery",
  16. "../grid.base"
  17. ], factory );
  18. } else {
  19. // Browser globals
  20. factory( jQuery );
  21. }
  22. }(function( $ ) {
  23. $.jgrid = $.jgrid || {};
  24. if(!$.jgrid.hasOwnProperty("regional")) {
  25. $.jgrid.regional = [];
  26. }
  27. $.jgrid.regional["sv"] = {
  28. defaults : {
  29. recordtext: "Visar {0} - {1} av {2}",
  30. emptyrecords: "Det finns inga poster att visa",
  31. loadtext: "Laddar...",
  32. pgtext : "Sida {0} av {1}",
  33. savetext: "Saving...",
  34. pgfirst : "First Page",
  35. pglast : "Last Page",
  36. pgnext : "Next Page",
  37. pgprev : "Previous Page",
  38. pgrecs : "Records per Page",
  39. showhide: "Toggle Expand Collapse Grid",
  40. // mobile
  41. pagerCaption : "Grid::Page Settings",
  42. pageText : "Page:",
  43. recordPage : "Records per Page",
  44. nomorerecs : "No more records...",
  45. scrollPullup: "Pull up to load more...",
  46. scrollPulldown : "Pull down to refresh...",
  47. scrollRefresh : "Release to refresh..."
  48. },
  49. search : {
  50. caption: "Sök Poster - Ange sökvillkor",
  51. Find: "Sök",
  52. Reset: "Nollställ Villkor",
  53. odata: [{ oper:'eq', text:"lika"},{ oper:'ne', text:"ej lika"},{ oper:'lt', text:"mindre"},{ oper:'le', text:"mindre eller lika"},{ oper:'gt', text:"större"},{ oper:'ge', text:"större eller lika"},{ oper:'bw', text:"börjar med"},{ oper:'bn', text:"börjar inte med"},{ oper:'in', text:"tillhör"},{ oper:'ni', text:"tillhör inte"},{ oper:'ew', text:"slutar med"},{ oper:'en', text:"slutar inte med"},{ oper:'cn', text:"innehåller"},{ oper:'nc', text:"innehåller inte"},{ oper:'nu', text:'is null'},{ oper:'nn', text:'is not null'}, {oper:'bt', text:'between'}],
  54. groupOps: [ { op: "AND", text: "alla" }, { op: "OR", text: "eller" } ],
  55. operandTitle : "Click to select search operation.",
  56. resetTitle : "Reset Search Value"
  57. },
  58. edit : {
  59. addCaption: "Ny Post",
  60. editCaption: "Redigera Post",
  61. bSubmit: "Spara",
  62. bCancel: "Avbryt",
  63. bClose: "Stäng",
  64. saveData: "Data har ändrats! Spara förändringar?",
  65. bYes : "Ja",
  66. bNo : "Nej",
  67. bExit : "Avbryt",
  68. msg: {
  69. required:"Fältet är obligatoriskt",
  70. number:"Välj korrekt nummer",
  71. minValue:"värdet måste vara större än eller lika med",
  72. maxValue:"värdet måste vara mindre än eller lika med",
  73. email: "är inte korrekt e-post adress",
  74. integer: "Var god ange korrekt heltal",
  75. date: "Var god ange korrekt datum",
  76. url: "är inte en korrekt URL. Prefix måste anges ('http://' or 'https://')",
  77. nodefined : " är inte definierad!",
  78. novalue : " returvärde måste anges!",
  79. customarray : "Custom funktion måste returnera en vektor!",
  80. customfcheck : "Custom funktion måste finnas om Custom kontroll sker!"
  81. }
  82. },
  83. view : {
  84. caption: "Visa Post",
  85. bClose: "Stäng"
  86. },
  87. del : {
  88. caption: "Radera",
  89. msg: "Radera markerad(e) post(er)?",
  90. bSubmit: "Radera",
  91. bCancel: "Avbryt"
  92. },
  93. nav : {
  94. edittext: "",
  95. edittitle: "Redigera markerad rad",
  96. addtext:"",
  97. addtitle: "Skapa ny post",
  98. deltext: "",
  99. deltitle: "Radera markerad rad",
  100. searchtext: "",
  101. searchtitle: "Sök poster",
  102. refreshtext: "",
  103. refreshtitle: "Uppdatera data",
  104. alertcap: "Varning",
  105. alerttext: "Ingen rad är markerad",
  106. viewtext: "",
  107. viewtitle: "Visa markerad rad",
  108. savetext: "",
  109. savetitle: "Save row",
  110. canceltext: "",
  111. canceltitle : "Cancel row editing",
  112. selectcaption : "Actions..."
  113. },
  114. col : {
  115. caption: "Välj Kolumner",
  116. bSubmit: "OK",
  117. bCancel: "Avbryt"
  118. },
  119. errors : {
  120. errcap : "Fel",
  121. nourl : "URL saknas",
  122. norecords: "Det finns inga poster att bearbeta",
  123. model : "Antal colNames <> colModel!"
  124. },
  125. formatter : {
  126. integer : {thousandsSeparator: " ", defaultValue: '0'},
  127. number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'},
  128. currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"Kr", defaultValue: '0,00'},
  129. date : {
  130. dayNames: [
  131. "Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör",
  132. "Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"
  133. ],
  134. monthNames: [
  135. "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec",
  136. "Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"
  137. ],
  138. AmPm : ["fm","em","FM","EM"],
  139. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
  140. srcformat: 'Y-m-d',
  141. newformat: 'Y-m-d',
  142. parseRe : /[#%\\\/:_;.,\t\s-]/,
  143. masks : {
  144. ISO8601Long:"Y-m-d H:i:s",
  145. ISO8601Short:"Y-m-d",
  146. ShortDate: "n/j/Y",
  147. LongDate: "l, F d, Y",
  148. FullDateTime: "l, F d, Y g:i:s A",
  149. MonthDay: "F d",
  150. ShortTime: "g:i A",
  151. LongTime: "g:i:s A",
  152. SortableDateTime: "Y-m-d\\TH:i:s",
  153. UniversalSortableDateTime: "Y-m-d H:i:sO",
  154. YearMonth: "F, Y"
  155. },
  156. reformatAfterEdit : false,
  157. userLocalTime : false
  158. },
  159. baseLinkUrl: '',
  160. showAction: '',
  161. target: '',
  162. checkbox : {disabled:true},
  163. idName : 'id'
  164. },
  165. colmenu : {
  166. sortasc : "Sort Ascending",
  167. sortdesc : "Sort Descending",
  168. columns : "Columns",
  169. filter : "Filter",
  170. grouping : "Group By",
  171. ungrouping : "Ungroup",
  172. searchTitle : "Get items with value that:",
  173. freeze : "Freeze",
  174. unfreeze : "Unfreeze",
  175. reorder : "Move to reorder"
  176. }
  177. };
  178. }));