Apache::Language::DBI - DBI interface for Apache::Language
<Location /under/language/control/> PerlSetVar Language::DBI::Datasource DBI:Pg:dbname=database;host=database.host PerlSetVar Language::DBI::Username webserver PerlSetVar Language::DBI::Password unguessable PerlSetVar Language::DBI::TableName language [default] Language::DBI::TableKey key [column for the key] Language::DBI::TableLang lang [column for the lang] Language::DBI::TableValue value [column for the value] LanguageHandler Apache::Language::DBI </Location>
This LanguageHandler implements a per-location DBI dictionnary. It looks-up a given table for a matching language/key pair and returns the best possible match.
The configurable directives are pretty self-explanatory.
Some sort of caching could be done.
perl(1), Apache(3), Apache::Language(3) Apache::Language::Constants(3), and all Apache::Language::*.
Please send any questions or comments to the Apache modperl mailing list <modperl@apache.org> or to me at <gozer@ectoplasm.dyndns.com>
This code was made possible by :
Doug MacEachern <dougm@pobox.com> Creator of mod_perl. That should mean enough.
Andreas Koenig <koenig@kulturbox.de> The one I got the idea from in the first place.
The mod_perl mailing-list at <modperl@apache.org> for all your mod_perl related problems.
Philippe M. Chiasson <gozer@ectoplasm.dyndns.com>
Copyright (c) 1999 Philippe M. Chiasson. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apache::Language, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Language
CPAN shell
perl -MCPAN -e shell install Apache::Language
For more information on module installation, please visit the detailed CPAN module installation guide.