Closed (fixed)
Project:
Google Search Appliance
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2014 at 06:02 UTC
Updated:
7 May 2014 at 22:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
iamEAP commentedThanks @Fengtan! This is definitely something I'd love to support in the module. Your patch looks pretty good, but I've found a few small issues in reviewing the code, found below.
Once those are taken care of, I'd like to manually test against my instance and provide further feedback and/or integrate the patch.
Small nitpick: Maybe just "Restrict searches to specified languages."
I believe strings within t() functions should avoid using escape characters for the purposes of integration with localize.drupal.org.
Should probably just wrap this in double quotes.
Although antiquated... It'd be best to integrate these configurations into the _google_appliance_get_settings() system that's in place, rather than calling variable_get() directly.
Comment #2
fengtanAwesome. Thanks for the review.
Here is a new patch that should take the feedback into consideration.
Note that one variable uses array values, which cannot be used as PHP constants. I did this as a workaround:
Comment #3
iamEAP commentedThanks! You work quickly.
Changes look good and manual review went well. Just a couple more notes, after looking at the patch holistically, and I think it'll be ready to commit.
Comment #4
fengtanRight, that makes sense. Here is a new patch.
Comment #6
iamEAP commentedThanks for your contribution, @Fengtan! Committed and pushed to dev (as noted above).