I finally got around to implementing this so I figured I'd post my
results.
I went ahead and grabbed the 1.5.2-cvs plugins (20060331), moved the
original 1.4.6 squirrelspell plugin offline and copied the 1.5.1
squirrelspell plugin into its place. I then grabbed the latest
compatibility plugin (2.0.4) and patched the source with it. Partially
out of laziness and partially out of a distrust of making php install
changes I went ahead and replaced the ngettext line in new check_me.mod
with the old one instead of recompiling with gettext. I'm assuming this
would only lose me translation and numeral word correctness figuring I
could regain this functionality when 1.5 is ready for prime time.
All and all pretty painless and it's nice to have the user dicts in sql.
Thanks for the assistance, and as always, thanks for all the hard work on
SM.
Matthew Ruzicka - Systems Administrator
Front Range Internet, Inc.
[EMAIL PROTECTED] - (970) 212-0728
Got SPAM? Take back your email with MailArmory. http://www.MailArmory.com
On Wed, 22 Mar 2006, Tomas Kuliavas wrote:
Is it possible to have SquirrelSpell maintain its user dictionaries in SQL
instead of in flat files? We use a db backend for both our address books
and user prefs and would like to use a db for the dictionaries as well
since we run SM on a load balanced web farm.
I didn't see any indication this was possible in the doc or in my searches
of the list archives or google (might have been searching for the wrong
thing though). I was wondering if anyone else had tried to do this and if
they were successful.
SquirrelSpell plugin in 1.5.1 uses generic SquirrelMail preference
functions and can store data in database. Plugin depends on
checkForJavascript() and ngettext() functions. In 1.4.x
checkForJavascript() function is provided by compatibility plugin.
ngettext support requires many changes in SquirrelMail code and
compatibility plugin can't support it without some hacks. ngettext is also
provided by PHP 4.2.0+ gettext extension.
If you have installed compatibility v.2 plugin and have PHP 4.2 or newer
with gettext support, you should be able to use SquirrelSpell from 1.5.1.
Some plugin strings are different and will remain in English.
If I remember correctly, all changes that switch plugin from
username.words to generic functions are submitted in one cvs commit or on
same day.
--
Tomas
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users