Hi All,
i'm trying to translate zikula to persian language and i want release it on Cozi.
one of the most important things that can call persian people to use zikula is their local calendar.
current calendar of zikula is 'Gregorian calendar'. e.g dates printed like this: December 24 2008
but persian calendar is different from Gregorian calendar (more info is in wikipedia). and i have some functions that can change this type of date to another.
i want to change all dates that printed in zikula. like news, pages, themes, ephemerids and other but in persian language only.
please help me that how can i do that? or tell me where can i include that functions and where must call they? thank you.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- 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
- mdee created topic »How to implement returnpage ?« 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
change calendar in new lang
-
- Rank: Registered User
- Registered: Dec 02, 2007
- Last visit: Oct 21, 2009
- Posts: 40
-
- Rank: Registered User
- Registered: Dec 02, 2007
- Last visit: Oct 21, 2009
- Posts: 40
can't anyone help me? i want to increase usage of zikula in persia land. if you can't understand my question please tell me to clarify it. -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
I'm not sure how to do it.
I know that you can make changes to the calendar formatting by changing the code and you can change the lang files as well but I don't know how to specify the changes for only Persian.
Depending on the calendar module you use, you may just need to release the newly scripted Persian calendar module when you release your lang pack and rename the module.
This is definitely not ideal and someone else may have the right solution.
I just didn't want you to think we didn't care. It is the holidays right now so many people are away from the forums, be patient. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
I don't think he's talking about a calendar module specifically, but about the way the date is displayed.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Registered User
- Registered: Dec 02, 2007
- Last visit: Oct 21, 2009
- Posts: 40
Yes, i'm don't talking about calendar module. you can think that i want to change display type of users 'registered' date of 'Dizkus' module. for example my last visit from this forum is 27.12.08 but it must show 1387-10-07 in persian lang. i want to change type of this date from 'Gregorian calendar' to 'persian calendar'(some times called iranian calendar or jalaali calendar).
for understand my request you can visit from this site. you can change a gregorian date to jalaali for see how it work. -
- Rank: Registered User
- Registered: Dec 02, 2007
- Last visit: Oct 21, 2009
- Posts: 40
can anyone of zikula developers help me?! i decide to release persian community zikula 1.1.0 these days. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
Check in the docs for PHP and see if it's built in or not. Otherwise you'll probably have to recode the date functions in Zikula to accomplish what you need.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Registered User
- Registered: Dec 02, 2007
- Last visit: Oct 21, 2009
- Posts: 40
HalbrookTech
Check in the docs for PHP and see if it's built in or not. Otherwise you'll probably have to recode the date functions in Zikula to accomplish what you need.
1- where are 'date functions' that i can recode those?
2- can i include a PHP file in core zikula files at all? -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Modifying DateUtil (as we talked in the IRC channel) may be the solution.
The getDatetime method of that class (/includes/DateUtil.class.php on 1.1) is the most used function to get the date. In the beginning of the file there's a define with the default DateFormat, try to change it too.
In the other hand, some templates uses a customized date format, and you probably need to customize them if you need them different. Also verify which defines of the /languages/*/code.php are used and if modifying them you can accomplish part of the job
--
- Mateo T. -
Mis principios... son mis fines
- Moderated by:
- Support
