ext-lang-ja.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /**
  2. * Japanese translation
  3. * By tyama
  4. * 04-08-2007, 05:49 AM
  5. *
  6. * update based on English Translations by Condor (8 Aug 2008)
  7. * By sakuro (30 Aug 2008)
  8. */
  9. Ext.onReady(function() {
  10. var cm = Ext.ClassManager,
  11. exists = Ext.Function.bind(cm.get, cm);
  12. if (Ext.Updater) {
  13. Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">読み込み中...</div>';
  14. }
  15. Ext.define("Ext.locale.ja.view.View", {
  16. override: "Ext.view.View",
  17. emptyText: ""
  18. });
  19. Ext.define("Ext.locale.ja.grid.Panel", {
  20. override: "Ext.grid.Panel",
  21. ddText: "{0} 行選択"
  22. });
  23. // changing the msg text below will affect the LoadMask
  24. Ext.define("Ext.locale.ja.view.AbstractView", {
  25. override: "Ext.view.AbstractView",
  26. msg: "読み込み中..."
  27. });
  28. if (Ext.Date) {
  29. Ext.Date.monthNames = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
  30. Ext.Date.getShortMonthName = function(month) {
  31. return "" + (month + 1);
  32. };
  33. Ext.Date.monthNumbers = {
  34. "1": 0,
  35. "2": 1,
  36. "3": 2,
  37. "4": 3,
  38. "5": 4,
  39. "6": 5,
  40. "7": 6,
  41. "8": 7,
  42. "9": 8,
  43. "10": 9,
  44. "11": 10,
  45. "12": 11
  46. };
  47. Ext.Date.getMonthNumber = function(name) {
  48. return Ext.Date.monthNumbers[name.substring(0, name.length - 1)];
  49. // or simply parseInt(name.substring(0, name.length - 1)) - 1
  50. };
  51. Ext.Date.dayNames = ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"];
  52. Ext.Date.getShortDayName = function(day) {
  53. return Ext.Date.dayNames[day].substring(0, 1); // just remove "曜日" suffix
  54. };
  55. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '午前' : '午後')";
  56. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '午前' : '午後')"; // no case difference
  57. }
  58. if (Ext.MessageBox) {
  59. Ext.MessageBox.buttonText = {
  60. ok: "OK",
  61. cancel: "キャンセル",
  62. yes: "はい",
  63. no: "いいえ"
  64. };
  65. }
  66. if (exists('Ext.util.Format')) {
  67. Ext.apply(Ext.util.Format, {
  68. thousandSeparator: ',',
  69. decimalSeparator: '.',
  70. currencySign: '\u00a5',
  71. // Japanese Yen
  72. dateFormat: 'Y/m/d'
  73. });
  74. }
  75. Ext.define("Ext.locale.ja.picker.Date", {
  76. override: "Ext.picker.Date",
  77. todayText: "今日",
  78. minText: "選択した日付は最小値以下です。",
  79. maxText: "選択した日付は最大値以上です。",
  80. disabledDaysText: "",
  81. disabledDatesText: "",
  82. monthNames: Ext.Date.monthNames,
  83. dayNames: Ext.Date.dayNames,
  84. nextText: '次月へ (コントロール+右)',
  85. prevText: '前月へ (コントロール+左)',
  86. monthYearText: '月選択 (コントロール+上/下で年移動)',
  87. todayTip: "{0} (スペースキー)",
  88. format: "Y/m/d",
  89. startDay: 0,
  90. ariaTitle: '{0}',
  91. ariaTitleDateFormat: 'Y\u5e74m\u6708d\u65e5',
  92. longDayFormat: 'Y\u5e74m\u6708d\u65e5',
  93. monthYearFormat: 'Y\u5e74m\u6708'
  94. });
  95. Ext.define("Ext.locale.ja.picker.Month", {
  96. override: "Ext.picker.Month",
  97. okText: "&#160;OK&#160;",
  98. cancelText: "キャンセル"
  99. });
  100. Ext.define("Ext.locale.ja.toolbar.Paging", {
  101. override: "Ext.PagingToolbar",
  102. beforePageText: "ページ",
  103. afterPageText: "/ {0}",
  104. firstText: "最初のページ",
  105. prevText: "前のページ",
  106. nextText: "次のページ",
  107. lastText: "最後のページ",
  108. refreshText: "更新",
  109. displayMsg: "{2} 件中 {0} - {1} を表示",
  110. emptyMsg: '表示するデータがありません。'
  111. });
  112. Ext.define("Ext.locale.ja.form.field.Base", {
  113. override: "Ext.form.field.Base",
  114. invalidText: "フィールドの値が不正です。"
  115. });
  116. Ext.define("Ext.locale.ja.form.field.Text", {
  117. override: "Ext.form.field.Text",
  118. minLengthText: "このフィールドの最小値は {0} です。",
  119. maxLengthText: "このフィールドの最大値は {0} です。",
  120. blankText: "必須項目です。",
  121. regexText: "",
  122. emptyText: null
  123. });
  124. Ext.define("Ext.locale.ja.form.field.Number", {
  125. override: "Ext.form.field.Number",
  126. decimalSeparator: ".",
  127. decimalPrecision: 2,
  128. minText: "このフィールドの最小値は {0} です。",
  129. maxText: "このフィールドの最大値は {0} です。",
  130. nanText: "{0} は数値ではありません。"
  131. });
  132. Ext.define("Ext.locale.ja.form.field.Date", {
  133. override: "Ext.form.field.Date",
  134. disabledDaysText: "無効",
  135. disabledDatesText: "無効",
  136. minText: "このフィールドの日付は、 {0} 以降の日付に設定してください。",
  137. maxText: "このフィールドの日付は、 {0} 以前の日付に設定してください。",
  138. invalidText: "{0} は間違った日付入力です。 - 入力形式は「{1}」です。",
  139. format: "Y/m/d",
  140. altFormats: "y/m/d|m/d/y|m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
  141. });
  142. Ext.define("Ext.locale.ja.form.field.ComboBox", {
  143. override: "Ext.form.field.ComboBox",
  144. valueNotFoundText: undefined
  145. }, function() {
  146. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  147. loadingText: "読み込み中..."
  148. });
  149. });
  150. if (exists('Ext.form.field.VTypes')) {
  151. Ext.apply(Ext.form.field.VTypes, {
  152. emailText: 'メールアドレスを"user@example.com"の形式で入力してください。',
  153. urlText: 'URLを"http:/' + '/www.example.com"の形式で入力してください。',
  154. alphaText: '半角英字と"_"のみです。',
  155. alphanumText: '半角英数と"_"のみです。'
  156. });
  157. }
  158. Ext.define("Ext.locale.ja.form.field.HtmlEditor", {
  159. override: "Ext.form.field.HtmlEditor",
  160. createLinkText: 'リンクのURLを入力してください:'
  161. }, function() {
  162. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  163. buttonTips: {
  164. bold: {
  165. title: '太字 (コントロール+B)',
  166. text: '選択テキストを太字にします。',
  167. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  168. },
  169. italic: {
  170. title: '斜体 (コントロール+I)',
  171. text: '選択テキストを斜体にします。',
  172. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  173. },
  174. underline: {
  175. title: '下線 (コントロール+U)',
  176. text: '選択テキストに下線を引きます。',
  177. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  178. },
  179. increasefontsize: {
  180. title: '文字を大きく',
  181. text: 'フォントサイズを大きくします。',
  182. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  183. },
  184. decreasefontsize: {
  185. title: '文字を小さく',
  186. text: 'フォントサイズを小さくします。',
  187. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  188. },
  189. backcolor: {
  190. title: '文字のハイライト',
  191. text: '選択テキストの背景色を変更します。',
  192. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  193. },
  194. forecolor: {
  195. title: '文字の色',
  196. text: '選択テキストの色を変更します。',
  197. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  198. },
  199. justifyleft: {
  200. title: '左揃え',
  201. text: 'テキストを左揃えにします。',
  202. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  203. },
  204. justifycenter: {
  205. title: '中央揃え',
  206. text: 'テキストを中央揃えにします。',
  207. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  208. },
  209. justifyright: {
  210. title: '右揃え',
  211. text: 'テキストを右揃えにします。',
  212. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  213. },
  214. insertunorderedlist: {
  215. title: '番号なし箇条書き',
  216. text: '番号なし箇条書きを開始します。',
  217. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  218. },
  219. insertorderedlist: {
  220. title: '番号付き箇条書き',
  221. text: '番号付き箇条書きを開始します。',
  222. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  223. },
  224. createlink: {
  225. title: 'ハイパーリンク',
  226. text: '選択テキストをハイパーリンクにします。',
  227. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  228. },
  229. sourceedit: {
  230. title: 'ソース編集',
  231. text: 'ソース編集モードに切り替えます。',
  232. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  233. }
  234. }
  235. });
  236. });
  237. Ext.define("Ext.locale.ja.grid.header.Container", {
  238. override: "Ext.grid.header.Container",
  239. sortAscText: "昇順",
  240. sortDescText: "降順",
  241. columnsText: "カラム"
  242. });
  243. Ext.define("Ext.locale.ja.grid.GroupingFeature", {
  244. override: "Ext.grid.GroupingFeature",
  245. emptyGroupText: '(なし)',
  246. groupByText: 'このカラムでグルーピング',
  247. showGroupsText: 'グルーピング'
  248. });
  249. Ext.define("Ext.locale.ja.grid.PropertyColumnModel", {
  250. override: "Ext.grid.PropertyColumnModel",
  251. nameText: "名称",
  252. valueText: "値",
  253. dateFormat: "Y/m/d"
  254. });
  255. Ext.define("Ext.locale.ja.form.field.Time", {
  256. override: "Ext.form.field.Time",
  257. minText: "このフィールドの時刻は、 {0} 以降の時刻に設定してください。",
  258. maxText: "このフィールドの時刻は、 {0} 以前の時刻に設定してください。",
  259. invalidText: "{0} は間違った時刻入力です。",
  260. format: "g:i A",
  261. altFormats: "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
  262. });
  263. Ext.define("Ext.locale.ja.form.CheckboxGroup", {
  264. override: "Ext.form.CheckboxGroup",
  265. blankText: "このグループから最低1つのアイテムを選択しなければなりません。"
  266. });
  267. Ext.define("Ext.locale.ja.form.RadioGroup", {
  268. override: "Ext.form.RadioGroup",
  269. blankText: "このグループから1つのアイテムを選択しなければなりません。"
  270. });
  271. });