People around the world use different calendars. ( http://en.wikipedia.org/wiki/List_of_calendars )
When we speak about localization, it's so important to consider local calendar with translation.
In GHCMS project ( http://ghcms.svn.sourceforge.net/viewvc/ghcms/trunk/ghcms1.1/ ) we use zikula, and add persian calendar full support for persian language (and Gregorian for english language) to zikula for the first time.
It's can be so great if zikula add calendar support to the project, it's simple. the solution is improve DateUtil and use it in the project, for example in a few Smarty plugins use date directly! it's must change to DateUtil::date...
Because we just need persian calendar and it's important to improve zikula with the least changes in the core, we use "if condition" solution in needed methods for the first time.
But (I think) the clean solution is using abstraction for DateUtil and fix the date usage in zikula. (I'll develop it ASAP)
ps: Now we work on zikulair for persian localization of zikula. ( http://zikulair.svn.sourceforge.net/viewvc/zikulair/trunk/ )
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Local calendar support in zikula
-
- Rank: Team Member
- Registered: Jul 15, 2009
- Last visit: Jul 15, 2009
- Posts: 1
-
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
There have been several changes to DateUtil in the 1.2 branch http://code.zikula.o…evelopment/zikula-1 and work on localization is underway. If you post your questions to the developer list it might be a good place for more in depth discussion and we can discuss more about this with Bernd who is leading localization with gettext.
Please post at http://groups.google…/zikula-discussions
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Softmore
- Registered: Mar 10, 2005
- Last visit: Mar 18, 2010
- Posts: 288
in TimeIt is used wrapper for dates very nicelly. first is calls getDateTime from zikula and then 'translates' dates.
you can see it as TimeiT::getDateTime in action.
using this approach in zikula core w'd be very nice. This'd :
1.save coding time for module developers
2.there are and probably remain zikula 1.1.X sites and this will be very usefull
- Moderated by:
- Support
