By maro on Monday, 20 April 2009
Replies 10
Likes 0
Views 5.4K
Votes 0
I am trying to use JEvents in Japanese environment. There is a Japanese language ini, partically translated. But I have problems showing dates in calendar.
I want insert 2byte characters(kanji) in dates. I wonder how that is possible.
I use JEvents 1.5 on Joomla 1.5.9, site is not open for public yet.
Can you explain which is correct? Also can you upload the japanese translation so I can test?
·
Friday, 24 April 2009 07:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Please see <!-- l --><a class="postlink-local" href="http://www.jevents.net/forum/viewtopic.php?f=16&t=1831]viewtopic.php?f=16&t=1831[/url]<!-- l -->
·
Monday, 11 May 2009 13:41
·
0 Likes
·
0 Votes
·
0 Comments
·
I am having the same problem with missing characters. Everything else is working fine and my translation into Japanese is moving along. Is there any easy fix for the missing characters?
·
Monday, 14 December 2009 05:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Can explain in a bit more detail what the problem is - I don't really understand I'm afraid.

Geraint
·
Monday, 14 December 2009 08:54
·
0 Likes
·
0 Votes
·
0 Comments
·
As you can see in the graphic the character for year and day ought to follow the numbers for year and day, as it does for the month. Does that make sense?
·
Monday, 14 December 2009 12:11
·
0 Likes
·
0 Votes
·
0 Comments
·
These dates are generated by the php function strftime and a standardised format e.g. "%d %B %Y" see http://php.net/manual/en/function.strftime.php

What would you call these extra characters? Can you do a search online to see if this problem arises in another program? I can't find anything useful on any english sites I'm afraid.
·
Monday, 14 December 2009 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I can't find anything either. I tried looking at php sites in Japanese but that was like a stroll through satan's backyard so I gave up.

Interesting that you say it's %d %B % %Y... that might be why the month is working because in Japanese the months don't have names but are written as number+character for month. Would it be possible to change the string to %d+"character for day" %B %Y+"character for year" or something like that?

Whereas something like 2009/12/15 looks naturally in English and not too bad in Japanese... 2009 12 15 looks odd and 2009 12? 15 (i.e. just the month character showing) looks even stranger... that said it at least prevents misunderstandings when the dates are less than 13.
·
Monday, 14 December 2009 23:23
·
0 Likes
·
0 Votes
·
0 Comments
·
We currently have 3 date format types French, US and German - I could add Japanese too

If you can recommend a preferred set of formats for the 6 scenarios below then I can incorporate these.

	/************** Date format ******************
* case "0":
* // Fr style : Monday 23 Juillet 2003
* // Us style : Monday, Juillet 23 2003
* case "1":
* // Fr style : 23 Juillet 2003
* // Us style : Juillet 23, 2003
* case "2":
* // Fr style : 23 Juillet
* // Us style : Juillet, 23
* case "3":
* // Fr style : Juillet 2003
* // Us style : Juillet 2003
* case "4":
* // Fr style : 23/07/2003
* // Us style : 07/23/2003
* case "5":
* // Fr style : 23/07
* // Us style : 07/23
* case "6":
* // Fr style : 07/2003
* // Us style : 07/2003
********************************************/


For JEvents 1.5.4 I'll set these up as translation strings so that its easier to customise/maintain.

Note that you can actually put the missing symbols/text in the format string

e.g.

"%A, %B %d day, %Y year"
would output "Monday, July 03 day, 2003 year"
·
Tuesday, 15 December 2009 07:43
·
0 Likes
·
0 Votes
·
0 Comments
·
/************** Date format ******************
* case "0":
* // Fr style : Monday 23 Juillet 2003
* // Us style : Monday, Juillet 23 2003
* // Jp style : ????????????????
* case "1":
* // Fr style : 23 Juillet 2003
* // Us style : Juillet 23, 2003
* // Jp style : ????????????
* case "2":
* // Fr style : 23 Juillet
* // Us style : Juillet, 23
* // Jp style : ??????
* case "3":
* // Fr style : Juillet 2003
* // Us style : Juillet 2003
* // Jp style : ????????
* case "4":
* // Fr style : 23/07/2003
* // Us style : 07/23/2003
* // Jp style : 2003/07/23
* case "5":
* // Fr style : 23/07
* // Us style : 07/23
* // Jp style : 07/23
* case "6":
* // Fr style : 07/2003
* // Us style : 07/2003
* // Jp style : 2003/07
********************************************/

I take that code is in the ini file, correct?
·
Tuesday, 15 December 2009 09:30
·
0 Likes
·
0 Votes
·
0 Comments
·
I'll see if I can put the required codes in for JEvents 1.5.4. I'll let you know when you can download this to test (probably at end of the week).
·
Tuesday, 15 December 2009 09:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post