From: Andrew H. <hur...@ll...> - 2003-10-30 16:26:38
|
No real direct experience, but we talked a lot about how to do this in Scoop.. The general consensus was pretty much what you have below. Key phrases will be in a lookup table with keys and a column for each language. Then you could insert it into a template with [% msg('company.welcome', 'Russian' ) %] Which is what you have below, though I've not heard of the term Optiron before... But regarding your other feature, with /ru, /es, or whatever based on the language. You talk about each language only having write access to their own documents (if you set it up that way I would assume). How would you tell what language a particular document stored in the db is in? Another field? So now most base tables and most package tables would need to handle another field and check for it? I think it would be handy, if you could work some of that SPOPS magic and have SPOPS know how to handle added language fields. So you could add a 'lang' key to the hash we'd pass to SPOPS, and it would know to restrict results to that language, but only if we configured it that way. This would require the aforementioned field in each table, I would think. This would be beneficial in that it would act like the SPOPS security actions, where the other rows don't exist if you don't have access to them. Well, that's enough pre-coffee rambling for this morning. Sounds like a neat setup. -Andrew >... > > * message bundle-type functionality so you can setup a file (or >database table, or whatever) of keys for substitution in your >templates: > > # use a key with variable substitution > <h1>[% msg( 'company.welcome', 'Optiron' ) %] > > # use a key by itself > <p>[% msg( 'company.intro' ) %]</p> > >If you've got experience in this area please chime in with ideas. > >Later, > >Chris > >-- >Chris Winters (ch...@cw...) >Building enterprise-capable snack solutions since 1988. > > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >openinteract-dev mailing list >ope...@li... >https://lists.sourceforge.net/lists/listinfo/openinteract-dev |