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