Forum
14:14
24/10/2011
When I format date fields like "formatter: 'date'", JQGrid doesn't show Data only "Loading..." and Firebug shows an error message: "e.S is not a function".
The parameter S of date formatter in grid-locale-ja.js file is the static value, "\u756a\u76ee", not function.
This value cause this problem.
So, would you please change the static value to the function : function (j) {return "\u756a\u76ee"} ?
Maybe the problem would happen all version from first support of Japanese translation to newest one.
Thank you in advance.
12:39
Moderators
30/10/2007
Hello,
Thanks.
Could you please send me the translated woring file or use a GitHup to change?
Thank you.
Kind Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
13:52
24/10/2011
Hello, Tony and thank you for your reply.
Whole text in grid.locale-ja.js is as follows. The comment in the text is where I amend.
Your understanding is appreciated.
Best Regards
Kazh
************* grid.locale-ja.js *********************************
;(function($){
/**
* jqGrid Japanese Translation
* OKADA Yoshitada mailto:okada.dev@sth.jp
* http://www.gnu.org/licenses/gpl.html
**/
$.jgrid = {
defaults : {
recordtext: "{2} u4EF6u4E2D {0} - {1} u3092u8868u793A ",
emptyrecords: "u8868u793Au3059u308Bu30ECu30B3u30FCu30C9u304Cu3042u308Au307Eu305Bu3093",
loadtext: "u8aadu307fu8fbcu307fu4e2d...",
pgtext : "{1} u30DAu30FCu30B8u4E2D {0} u30DAu30FCu30B8u76EE "
},
search : {
caption: "u691cu7d22...",
Find: "u691cu7d22",
Reset: "u30eau30bbu30c3u30c8",
odata: ["u6B21u306Bu7B49u3057u3044", "u6B21u306Bu7B49u3057u304Fu306Au3044",
"u6B21u3088u308Au5C0Fu3055u3044", "u6B21u306Bu7B49u3057u3044u304Bu5C0Fu3055u3044",
"u6B21u3088u308Au5927u304Du3044", "u6B21u306Bu7B49u3057u3044u304Bu5927u304Du3044",
"u6B21u3067u59CBu307Eu308B", "u6B21u3067u59CBu307Eu3089u306Au3044",
"u6B21u306Bu542Bu307Eu308Cu308B", "u6B21u306Bu542Bu307Eu308Cu306Au3044",
"u6B21u3067u7D42u308Fu308B", "u6B21u3067u7D42u308Fu3089u306Au3044",
"u6B21u3092u542Bu3080", "u6B21u3092u542Bu307Eu306Au3044"],
groupOps: [{
op: "AND",
text: "u3059u3079u3066u306E"
},
{
op: "OR",
text: "u3044u305Au308Cu304Bu306E"
}],
matchText: " u6B21u306E",
rulesText: " u6761u4EF6u3092u6E80u305Fu3059"
},
edit : {
addCaption: "u30ecu30b3u30fcu30c9u8ffdu52a0",
editCaption: "u30ecu30b3u30fcu30c9u7de8u96c6",
bSubmit: "u9001u4fe1",
bCancel: "u30adu30e3u30f3u30bbu30eb",
bClose: "u9589u3058u308b",
saveData: "u30C7u30FCu30BFu304Cu5909u66F4u3055u308Cu3066u3044u307Eu3059u3002u4FDDu5B58u3057u307Eu3059u304BuFF1F",
bYes: "u306Fu3044",
bNo: "u3044u3044u3048",
bExit: "u30ADu30E3u30F3u30BBu30EB",
msg: {
required:"u3053u306eu9805u76eeu306fu5fc5u9808u3067u3059u3002",
number:"u6b63u3057u3044u6570u5024u3092u5165u529bu3057u3066u4e0bu3055u3044u3002",
minValue:"u6b21u306eu5024u4ee5u4e0au3067u5165u529bu3057u3066u4e0bu3055u3044u3002",
maxValue:"u6b21u306eu5024u4ee5u4e0bu3067u5165u529bu3057u3066u4e0bu3055u3044u3002",
email: "e-mailu304cu6b63u3057u304fu3042u308au307eu305bu3093u3002",
integer: "u6b63u3057u3044u6574u6570u5024u3092u5165u529bu3057u3066u4e0bu3055u3044u3002",
date: "u6b63u3057u3044u5024u3092u5165u529bu3057u3066u4e0bu3055u3044u3002",
url: "u306Fu6709u52B9u306AURLu3067u306Fu3042u308Au307Eu305Bu3093u300220u30D7u30ECu30D5u30A3u30C3u30AFu30B9u304Cu5FC5u8981u3067u3059u3002 ('http://' u307Eu305Fu306F 'https://')",
nodefined: " u304Cu5B9Au7FA9u3055u308Cu3066u3044u307Eu305Bu3093",
novalue: " u623Bu308Au5024u304Cu5FC5u8981u3067u3059",
customarray: "u30ABu30B9u30BFu30E0u95A2u6570u306Fu914Du5217u3092u8FD4u3059u5FC5u8981u304Cu3042u308Au307Eu3059",
customfcheck: "u30ABu30B9u30BFu30E0u691Cu8A3Cu306Bu306Fu30ABu30B9u30BFu30E0u95A2u6570u304Cu5FC5u8981u3067u3059"
}
},
view : {
caption: "u30ECu30B3u30FCu30C9u3092u8868u793A",
bClose: "u9589u3058u308B"
},
del : {
caption: "u524au9664",
msg: "u9078u629eu3057u305fu30ecu30b3u30fcu30c9u3092u524au9664u3057u307eu3059u304buff1f",
bSubmit: "u524au9664",
bCancel: "u30adu30e3u30f3u30bbu30eb"
},
nav : {
edittext: " ",
edittitle: "u9078u629eu3057u305fu884cu3092u7de8u96c6",
addtext:" ",
addtitle: "u884cu3092u65b0u898fu8ffdu52a0",
deltext: " ",
deltitle: "u9078u629eu3057u305fu884cu3092u524au9664",
searchtext: " ",
searchtitle: "u30ecu30b3u30fcu30c9u691cu7d22",
refreshtext: "",
refreshtitle: "u30b0u30eau30c3u30c9u3092u30eau30edu30fcu30c9",
alertcap: "u8b66u544a",
alerttext: "u884cu3092u9078u629eu3057u3066u4e0bu3055u3044u3002",
viewtext: "",
viewtitle: "u9078u629Eu3057u305Fu884Cu3092u8868u793A"
},
col : {
caption: "u5217u3092u8868u793auff0fu96a0u3059",
bSubmit: "u9001u4fe1",
bCancel: "u30adu30e3u30f3u30bbu30eb"
},
errors : {
errcap : "u30a8u30e9u30fc",
nourl : "URLu304cu8a2du5b9au3055u308cu3066u3044u307eu305bu3093u3002",
norecords: "u51e6u7406u5bfeu8c61u306eu30ecu30b3u30fcu30c9u304cu3042u308au307eu305bu3093u3002",
model : "colNamesu306eu9577u3055u304ccolModelu3068u4e00u81f4u3057u307eu305bu3093u3002"
},
formatter : {
integer: {
thousandsSeparator: ",",
defaultValue: '0'
},
number: {
decimalSeparator: ".",
thousandsSeparator: ",",
decimalPlaces: 2,
defaultValue: '0.00'
},
currency: {
decimalSeparator: ".",
thousandsSeparator: ",",
decimalPlaces: 0,
prefix: "",
suffix: "",
defaultValue: '0'
},
date : {
dayNames: [
"u65e5", "u6708", "u706b", "u6c34", "u6728", "u91d1", "u571f",
"u65e5", "u6708", "u706b", "u6c34", "u6728", "u91d1", "u571f"
],
monthNames: [
"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
"1u6708", "2u6708", "3u6708", "4u6708", "5u6708", "6u6708", "7u6708", "8u6708", "9u6708", "10u6708", "11u6708", "12u6708"
],
AmPm : ["am","pm","AM","PM"],
/****** Amend 2011/10/23 by kazh *****
from :
S: "u756au76ee",
to :
S: function (j) {return "u756au76ee"},
*****/
S: function (j) {return "u756au76ee"},
srcformat: 'Y/m/d',
newformat: 'Y/m/d',
masks : {
ISO8601Long:"Y/m/d H:i:s",
ISO8601Short:"Y/m/d",
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",
SortableDateTime: "Y/m/d\TH:i:s",
UniversalSortableDateTime: "Y/m/d H:i:sO",
YearMonth: "F, Y"
},
reformatAfterEdit : true
},
baseLinkUrl: '',
showAction: '',
target: '',
checkbox : {disabled:true},
idName : 'id'
}
};
})(jQuery);
18:24
Moderators
30/10/2007
Hello,
Just fixed the problem in GitHub.
Thanks
Kind Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
59 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66