28 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] stale processes and m17n
FromSent OnAttachments
oth...@freeshell.orgDec 21, 2004 1:57 pm 
Brian CandlerDec 28, 2004 3:11 am 
Sam VarshavchikDec 28, 2004 4:16 am 
Paul L. AllenDec 28, 2004 11:32 am 
oth...@freeshell.orgDec 28, 2004 7:45 pm 
oth...@freeshell.orgDec 28, 2004 8:45 pm 
oth...@freeshell.orgDec 28, 2004 9:02 pm 
Paul L. AllenDec 29, 2004 3:28 am 
oth...@freeshell.orgDec 29, 2004 11:39 am 
Paul L. AllenDec 29, 2004 1:18 pm 
oth...@freeshell.orgDec 29, 2004 2:34 pm 
Paul L. AllenDec 29, 2004 4:50 pm 
oth...@freeshell.orgDec 29, 2004 9:08 pm 
Brian CandlerDec 30, 2004 1:10 am 
Brian CandlerDec 30, 2004 2:29 am 
Paul L. AllenDec 30, 2004 9:56 am 
Paul L. AllenDec 30, 2004 12:15 pm 
oth...@freeshell.orgDec 30, 2004 2:39 pm 
oth...@freeshell.orgDec 30, 2004 3:14 pm 
Paul L. AllenDec 30, 2004 4:07 pm 
Brian CandlerDec 31, 2004 2:40 am 
Laurent WacrenierDec 31, 2004 3:00 am 
Paul L. AllenDec 31, 2004 3:41 am 
Brian CandlerDec 31, 2004 4:11 am 
Pawel TeczaDec 31, 2004 4:47 am 
Laurent WacrenierDec 31, 2004 5:22 am 
Brian CandlerJan 1, 2005 4:45 am 
Brian CandlerJan 1, 2005 5:17 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] stale processes and m17nActions...
From:oth...@freeshell.org (oth@freeshell.org)
Date:Dec 28, 2004 8:45:38 pm
List:net.sourceforge.lists.courier-sqwebmail

On Tue, Dec 28, 2004 at 11:11:24AM +0000, Brian Candler wrote:

Would it be possible to have a file like "maildirshared", only for Ispell dictionaries, so SqWebmail could run Ispell to check with another language? The file could be a nick<tab>location of Ispell dictionaries with a new entry defined by newlines. Ex:

Catalan<tab>/usr/pkg/lib/catala.hash Swedish<tab>/usr/pkg/lib/svenska.hash

Now we have 'account options', I think that would be a better place to put this feature: e.g.

OPTIONS=ispelldict=svenska

which would pass "-d svenska" to the ispell command line.

That's not a viable solution in my case, as I'm not using one of the supported
authentication methods.

However, you do realise that sqwebmail already has the ability to work in multiple languages, and that each language template directory has a pointer to the corresponding ispell dictionary name? See sqwebmail/html/README_LANG.txt in the sqwebmail source.

For some reason, README_LANG.txt wasn't installed via my build from the NetBSD
Packages Collection (pkgsrc.org), but I'm sure it could be (and should) in the
future. I unpacked the distfile and read it today. I had known about SqWebMail's
ability to work in multiple languages, but thought that it was a bit messy
(based on the old docu @ inter7.com). After reading this file and using pkgsrc
for awhile, I think a solution (using pkgsrc; sorry to those not familiar for
detailing this here) could be to have a BUILD_DEF (that could be set in
/etc/mk.conf or via setenv/export) for something like SQWEBMAIL_DEFAULT_LANG
(which could default to English?) and also a varible for SQWEBMAIL_TRANSLATIONS
with one possible value being "all", which would build templates for all
languages SqWebMail currently supports. Other possible values for that variable
could be any list of languages SqWebMail supports. This is being CC'd to
pkg-@netbsd.org, who hopefully will correct me if the pkgsrc solutions
proposed seem too kludgy.

That's how I could see it being done with pkgsrc, but what about with other
package management systems? Should SqWebMail default to building all language
templates, like the Sympa mailing list manager, if not defined by the build
environment or should only the English language being installed? I would like to
see the former to be the default behavior. A script could perform the actions
described in README_LANG.txt and pkg management systems could interface with it
via the build environment. I hope this reads somewhat sensical ;)

Now, the choice of language here is given by the language which the user has set in their browser; and it also depends on you having installed templates for that language.

Yes, and I would also like to see a drop down menu on the login page which could
switch to another language template once the user is successfully logged in and
maybe even something people could select that would swap the templates before
logging in.

I can see a clear argument that individual users may wish to override (1) the language which sqwebmail uses for its user interface; and also (2) the language which ispell uses for checking

(e.g. if you prefer to use sqwebmail in English mode, but you are writing a letter in German). Also, sqwebmail may not have templates installed for a particular language, but you might still want to perform spell-checking for a message you are writing in that language.

In that case, I think what is needed rather than a fixed ispell language per user, is the ability to select the ispell language from a drop-down list in the message composition screen.

Do you think that makes more sense?

Those are absolutely the ideas I've had in mind. Seriously, couldn't have said
it clearer.

Does anyone know if there is a flag to ispell which will cause it to list all the available languages? If not, then perhaps the ISPELLDICT config file should simple list multiple values to allow sqwebmail to generate a drop-down menu. This wouldn't be too hard to add. (And I guess the default should be stored as a user preference).

Not to my knowledge does ispell have that flag, which is why I proposed the
config file. The default language template should be stored as a user preference
in addition to the default language for spell checking. This shouldn't depend on
the authentication method.

However this means that maintaining translations is a real pain, because on each release the language strings have to be individually merged back into the new template released by Sam.

This is also being CC'd to the symp@cru.fr mailing list. That
project seems to have a working solution for m17n (that is not a harsh criticism
to SqWebMail) and maybe those folk would be willing to discuss it with us.
Hopefully their solution isn't the one you described (for Sam's sake) =)

In an ideal world,

* Sam would release a new version of sqwebmail, together with one set of language strings (in English), and one or two sets of templates (perhaps one which is pure CSS, and one which is designed to be compatible with pre-CSS browsers)

If there's not already a pure CSS and valid XHTML templates (for English at
least), I would be more than willing to donate my time to converting the
existing template system. I've had a good bit of experience in converting
template systems to valid markup while retaining the existing layout. I think
people who haven't worked with these types of template systems would be
surprised at how much smaller the end file size would be and how much faster the
pages would load (if you could imagine SqWebMail actually loading content
faster).

!tr