JEvents Translations (Free Access)

2byte characters in date

The place to discuss and post translations of JEvents

Postby maro » Mon Apr 20, 2009 7:21 am

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.
Attachments
jevents.jpg
jevents.jpg (56.12 KiB) Viewed 2979 times
maro
 
Posts: 1
Joined: Mon Apr 20, 2009 7:03 am

Postby Geraint » Fri Apr 24, 2009 6:47 am

Can you explain which is correct? Also can you upload the japanese translation so I can test?
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby Geraint » Mon May 11, 2009 12:41 pm

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby tokyojoe » Mon Dec 14, 2009 5:21 am

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?
tokyojoe
 
Posts: 17
Joined: Sat Dec 12, 2009 8:48 am

Postby Geraint » Mon Dec 14, 2009 8:54 am

Can explain in a bit more detail what the problem is - I don't really understand I'm afraid.

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby tokyojoe » Mon Dec 14, 2009 12:11 pm

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?
tokyojoe
 
Posts: 17
Joined: Sat Dec 12, 2009 8:48 am

Postby Geraint » Mon Dec 14, 2009 3:55 pm

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.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby tokyojoe » Mon Dec 14, 2009 11:23 pm

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.
tokyojoe
 
Posts: 17
Joined: Sat Dec 12, 2009 8:48 am

Postby Geraint » Tue Dec 15, 2009 7:43 am

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.

Code: Select all
   /************** 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.

Code: Select all
"%A, %B %d day, %Y year"
would output "Monday, July 03 day, 2003 year"
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby tokyojoe » Tue Dec 15, 2009 9:30 am

/************** Date format ******************
* case "0":
* // Fr style : Monday 23 Juillet 2003
* // Us style : Monday, Juillet 23 2003
* // Jp style : 月曜日 2003年 7月 23日
* case "1":
* // Fr style : 23 Juillet 2003
* // Us style : Juillet 23, 2003
* // Jp style : 2003年 7月 23日
* case "2":
* // Fr style : 23 Juillet
* // Us style : Juillet, 23
* // Jp style : 7月 23日
* case "3":
* // Fr style : Juillet 2003
* // Us style : Juillet 2003
* // Jp style : 2003年 7月
* 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?
tokyojoe
 
Posts: 17
Joined: Sat Dec 12, 2009 8:48 am

Next

Return to JEvents Translations (Free Access)

cron
  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: No registered users