Closed (fixed)
Project:
Custom Search Box
Version:
6.x-1.1-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2009 at 12:39 UTC
Updated:
17 Apr 2010 at 02:48 UTC
Hi Justin,
Great module you created, really ! Do you plan to make an i18n integration ? On a multilingual website, it would be great...
Thx,
Gilles
Comments
Comment #1
gillesbailleuxComment #2
jweberg commentedThat is in the plans. I don't know much about it though. If someone is willing to tackle this, that would be great.
Comment #3
jweberg commentedWe'll work on this for the 2.x release.
Comment #4
gillesbailleuxThank you very much for taking care of my request.
Comment #5
milos1234 commentedhave you tried making it a multilingual variable? you can set it in settings.php i imagine that would fix it.
:)
Comment #6
milos1234 commentedi can confirm that setting multilingual variables for any of the 3 custom search box fields works! yay
Comment #7
jweberg commentedHow would I add this functionality into the module? The point of the module is to make things as easy as easy as possible. Let me know. Thanks.
Comment #8
milos1234 commentedif you wanted to make it changable in the module, you could possibly apply a patch similar to the one for nodewords http://drupal.org/node/130389#comment-1309964
or, how i have done it, is to turn the variables into multilanguage variables, so i can set one for each language i am viewing the site in.
explained here:
http://drupal.org/node/23064
the variable i added for custom search text is 'custom_search_box_default',
Comment #9
mokko commentedThis is a nice little module! Very useful! It makes the impression that is not yet quite finished.
I removed block title and used the multilingual variables. Now I can basically translate the search box.
Let me just make things (written already above) a little more explicit:
if you have multilingual site you are likely to know about
$conf['i18_variables']=array {};
already.
Now add:
custom_search_box_label,
custom_search_box_default,
custom_search_box_text
switch language on admin/settings/search
Comment #10
dddave commentedGlad I found this. Translatability is a major concern for my site and I am very glad that this can be done via multilingual variables.
There should be some docs/link to this issue on the project page imho.
Comment #11
jweberg commentedThanks for the info. We are working on getting a new version out that fits the drupal coding standards better and allows for easier expansion in the future. I originally started this module as a simple little fix for a issue that too many people were having and there really wasn't a good way to do it. Once we get the frame for the new version we will be able to start adding these additional features that we are getting requests for. It seems you are well aware of i18n integration and could really use some help with it. Please let me know if you are able to help out.
Thanks
Justin
Comment #12
jdanthinne commentedAn other module I've written, Custom Search is inspired in part by this one, but greatly enhances it, as well with other options (content type & taxonomy pre-selection), and is i18n-friendly (originaly developed for a multilingual site). Have a try!
Comment #13
jweberg commented