Nepali calendar module does a complex date calculations to convert Gregorian calendar (A.D.) to Bikram Sambat (B.S.) calendar. B.S. calendar is the official calendar used in Nepal. The B.S. year is approximately 56.7 years ahead of Gregorian calendar.
After installing this module, it creates a 'Nepali date' block which includes the Nepali date and Nepal time. This block can be used in any region to display the converted date and time.
Admin users can do more settings to set the date format and can also choose whether to display time or not.
Since every complex date calculations is done here, this module allows the users to easily integrate the Nepali date/time in their website.
More information about Nepali calendar can also be found in this wiki page: http://en.wikipedia.org/wiki/Nepali_calendar
Link to project:
https://drupal.org/sandbox/pachabhaiya/2165233
Link to git repository:
git clone --branch 7.x-1.x pachabhaiya@git.drupal.org:sandbox/pachabhaiya/2165233.git nepali_calendar
Reviews of other projects
https://drupal.org/comment/8367449#comment-8367449
https://drupal.org/comment/8365517#comment-8365517
https://drupal.org/comment/8360413#comment-8360413
https://drupal.org/comment/8352347#comment-8352347
https://drupal.org/comment/8346483#comment-8346483
https://drupal.org/comment/8346575#comment-8346575
| Comment | File | Size | Author |
|---|---|---|---|
| nepali_calendar_output.jpg | 173.27 KB | pachabhaiya | |
| nepali_calendar_nepali_date_block.jpg | 34.24 KB | pachabhaiya | |
| nepali_calendar_nepal_time_settings.jpg | 148.7 KB | pachabhaiya | |
| nepali_calendar_nepali_date_settings.jpg | 182.81 KB | pachabhaiya |
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxpachabhaiya2165233git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
pachabhaiya commentedI have corrected all the issues mentioned by PA robot.
Automated report generated by pareview.sh (http://pareview.sh/pareview/httpgitdrupalorgsandboxpachabhaiya2165233git) doesnot show any error.
Comment #3
pachabhaiya commentedRemoved master branch. Git link updated to point to a new branch (7.x-1.x).
Comment #4
anil614sagar commentedDear c.pachabhaiya ,
Findings of manual review.
A minor change,
You can directly use t function instead of get_t() in install and uninstall hooks.
Please find more details below.
1. Use t() if your code will never run during the Drupal installation phase.
2 . get_t() should be used if your module is part of Drupal Core Installation.
* No need of nepali_calendar_admin_settings_form_submit function. When you use system_settings_form it will take care of field values set. For more info https://api.drupal.org/api/drupal/modules%21system%21system.module/funct...
Cheers,
Anil Sagar
Cheers,
Anil Sagar
Comment #5
anil614sagar commentedComment #6
pachabhaiya commentedDear Anil Sagar,
I really appreciate for the time you have given to review my project code.
I totally agree with the better solutions you have provided to enhance the code quality.
I've already corrected all those issues you mentioned.
Thank you so much.
Comment #7
inakilz commentedHi c.pachabhaiya,
I think it would be recommended to move the function nepali_calendar_admin_settings_form in a separate file, called nepali_calendar.admin.inc, different from the module file (which loads on every page), which would slightly lower the memory footprint of the module.
Cheers.
Comment #8
pachabhaiya commentedThank you so much inakilz for the review. Yes, it's a better idea to move nepali_calendar_admin_settings_form function in a separate file nepali_calendar.admin.inc.
I have committed the above changes.
Thanks
Comment #9
pachabhaiya commentedComment #10
klausimanual review:
But that are not application blockers, so I guess this is RTBC. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to kscheirer as he might have time to take a final look at this.
Comment #11
pachabhaiya commentedDear klausi,
Thank you so much for reviewing my project.
I have removed nepali_calendar_install() function and made use of default values using variable_get().
Curly braces around the case statements are also removed.
Regrading the large $bs array:
------------------------------------------
$bs array contains 139 array items and a sub-array with 12 items.
139 array items is to store the Nepali year record.
12 items inside the sub-array is to store the number of days in each Nepali month for that particular year.
This array contains calculated record to store the Nepali calendar data.
The data is repeated every 139 years.
Besides this other calculations should also be done to get the exact date conversions, and this module helps to achieve this.
These wiki pages gives a general overview of Nepali calendar:
http://en.wikipedia.org/wiki/Nepali_calendar
http://en.wikipedia.org/wiki/Bikram_Samwat
Thank you so much.
Regards,
Chhabi
Comment #12
pachabhaiya commentedComment #13
irodriguez commentedI ran this this project through preview.sh there were a 9 errors found
http://pareview.sh/pareview/httpgitdrupalorgsandboxpachabhaiya2165233git
they all say "Case breaking statements must be followed by a single blank line"
Comment #14
pachabhaiya commentedThank you so much Ivan for figuring out that single blank line issue.
I fixed it.
Thanks
Comment #15
klausino other objections for more than a week, so ...
Thanks for your contribution, c.pachabhaiya!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #16
pachabhaiya commentedThank you so much klausi for updating my account.
I have promoted sandbox project to a full project (https://drupal.org/project/nepali_calendar).
Thanks!!!