grid.locale-ja.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /**
  2. * @license jqGrid Japanese Translation
  3. * OKADA Yoshitada okada.dev@sth.jp
  4. * http://trirand.com/blog/
  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. /*jslint white: true */
  10. /*global jQuery, module, require */
  11. (function (factory) {
  12. "use strict";
  13. if (typeof define === "function" && define.amd) {
  14. // AMD. Register as an anonymous module.
  15. define(["jquery"], factory);
  16. } else if (typeof module === "object" && module.exports) {
  17. // Node/CommonJS
  18. module.exports = function (root, $) {
  19. if ($ === undefined) {
  20. // require("jquery") returns a factory that requires window to
  21. // build a jQuery instance, we normalize how we use modules
  22. // that require this pattern but the window provided is a noop
  23. // if it's defined (how jquery works)
  24. $ = typeof window !== "undefined" ?
  25. require("jquery") :
  26. require("jquery")(root || window);
  27. }
  28. factory($);
  29. return $;
  30. };
  31. } else {
  32. // Browser globals
  33. factory(jQuery);
  34. }
  35. }(function ($) {
  36. "use strict";
  37. var locInfo = {
  38. isRTL: false,
  39. defaults: {
  40. recordtext: "{2} 件中 {0} - {1} を表示 ",
  41. emptyrecords: "表示するレコードがありません",
  42. loadtext: "読み込み中...",
  43. pgtext: "{1} ページ中 {0} ページ目 ",
  44. pgfirst: "先頭ページ",
  45. pglast: "最後のページ",
  46. pgnext: "次のページ",
  47. pgprev: "前のページ",
  48. pgrecs: "ページ当たりのレコード数",
  49. showhide: "切り替え 展開 折りたたみ グリッド",
  50. savetext: "保存中..."
  51. },
  52. search: {
  53. caption: "検索...",
  54. Find: "検索",
  55. Reset: "リセット",
  56. odata: [
  57. { oper: "eq", text: "次に等しい" }, { oper: "ne", text: "次に等しくない" },
  58. { oper: "lt", text: "次より小さい" }, { oper: "le", text: "次に等しいか小さい" },
  59. { oper: "gt", text: "次より大きい" }, { oper: "ge", text: "次に等しいか大きい" },
  60. { oper: "bw", text: "次で始まる" }, { oper: "bn", text: "次で始まらない" },
  61. { oper: "in", text: "次に含まれる" }, { oper: "ni", text: "次に含まれない" },
  62. { oper: "ew", text: "次で終わる" }, { oper: "en", text: "次で終わらない" },
  63. { oper: "cn", text: "次を含む" }, { oper: "nc", text: "次を含まない" },
  64. { oper: "nu", text: "NULL です" }, { oper: "nn", text: "NULL ではありません" }
  65. ],
  66. groupOps: [
  67. { op: "AND", text: "すべての" },
  68. { op: "OR", text: "いずれかの" }
  69. ],
  70. addGroupTitle: "Add subgroup",
  71. deleteGroupTitle: "Delete group",
  72. addRuleTitle: "Add rule",
  73. deleteRuleTitle: "Delete rule",
  74. operandTitle: "検索操作をクリックして選択する",
  75. resetTitle: "値の検索のリセット"
  76. },
  77. edit: {
  78. addCaption: "レコード追加",
  79. editCaption: "レコード編集",
  80. bSubmit: "送信",
  81. bCancel: "キャンセル",
  82. bClose: "閉じる",
  83. saveData: "データが変更されています。保存しますか?",
  84. bYes: "はい",
  85. bNo: "いいえ",
  86. bExit: "キャンセル",
  87. msg: {
  88. required: "この項目は必須です。",
  89. number: "正しい数値を入力して下さい。",
  90. minValue: "次の値以上で入力して下さい。",
  91. maxValue: "次の値以下で入力して下さい。",
  92. email: "e-mailが正しくありません。",
  93. integer: "正しい整数値を入力して下さい。",
  94. date: "正しい値を入力して下さい。",
  95. url: "は有効なURLではありません。 プレフィックスが必要です。 ('http://' または 'https://')",
  96. nodefined: " が定義されていません",
  97. novalue: " 戻り値が必要です",
  98. customarray: "カスタム関数は配列を返す必要があります",
  99. customfcheck: "カスタム検証にはカスタム関数が必要です"
  100. }
  101. },
  102. view: {
  103. caption: "レコードを表示",
  104. bClose: "閉じる"
  105. },
  106. del: {
  107. caption: "削除",
  108. msg: "選択したレコードを削除しますか?",
  109. bSubmit: "削除",
  110. bCancel: "キャンセル"
  111. },
  112. nav: {
  113. edittext: "",
  114. edittitle: "選択した行を編集",
  115. addtext: "",
  116. addtitle: "行を新規追加",
  117. deltext: "",
  118. deltitle: "選択した行を削除",
  119. searchtext: "",
  120. searchtitle: "レコード検索",
  121. refreshtext: "",
  122. refreshtitle: "グリッドをリロード",
  123. alertcap: "警告",
  124. alerttext: "行を選択して下さい。",
  125. viewtext: "",
  126. viewtitle: "選択した行を表示",
  127. savetext: "",
  128. savetitle: "Save row",
  129. canceltext: "",
  130. canceltitle: "Cancel row editing"
  131. },
  132. col: {
  133. caption: "列を表示/隠す",
  134. bSubmit: "送信",
  135. bCancel: "キャンセル"
  136. },
  137. errors: {
  138. errcap: "エラー",
  139. nourl: "URLが設定されていません。",
  140. norecords: "処理対象のレコードがありません。",
  141. model: "colNamesの長さがcolModelと一致しません。"
  142. },
  143. formatter: {
  144. integer: {
  145. thousandsSeparator: ",",
  146. defaultValue: "0"
  147. },
  148. number: {
  149. decimalSeparator: ".",
  150. thousandsSeparator: ",",
  151. decimalPlaces: 2,
  152. defaultValue: "0.00"
  153. },
  154. currency: {
  155. decimalSeparator: ".",
  156. thousandsSeparator: ",",
  157. decimalPlaces: 0,
  158. prefix: "",
  159. suffix: "",
  160. defaultValue: "0"
  161. },
  162. date: {
  163. dayNames: [
  164. "日", "月", "火", "水", "木", "金", "土",
  165. "日", "月", "火", "水", "木", "金", "土"
  166. ],
  167. monthNames: [
  168. "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
  169. "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"
  170. ],
  171. AmPm: ["am", "pm", "AM", "PM"],
  172. S: function () { return "番目"; },
  173. srcformat: "Y-m-d",
  174. newformat: "d/m/Y",
  175. masks: {
  176. ShortDate: "n/j/Y",
  177. LongDate: "l, F d, Y",
  178. FullDateTime: "l, F d, Y g:i:s A",
  179. MonthDay: "F d",
  180. ShortTime: "g:i A",
  181. LongTime: "g:i:s A",
  182. YearMonth: "F, Y"
  183. }
  184. }
  185. }
  186. };
  187. $.jgrid = $.jgrid || {};
  188. $.extend(true, $.jgrid, {
  189. defaults: {
  190. locale: "ja"
  191. },
  192. locales: {
  193. // In general the property name is free, but it's recommended to use the names based on
  194. // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
  195. // http://rishida.net/utils/subtags/ and RFC 5646. See Appendix A of RFC 5646 for examples.
  196. // One can use the lang attribute to specify language tags in HTML, and the xml:lang attribute for XML
  197. // if it exists. See http://www.w3.org/International/articles/language-tags/#extlang
  198. ja: $.extend({}, locInfo, { name: "日本語", nameEnglish: "Japanese" }),
  199. "ja-JP": $.extend({}, locInfo, { name: "日本語 (日本)", nameEnglish: "Japanese (Japan)" })
  200. }
  201. });
  202. }));