Apache2::Translation::Config - export our provider parameters to the WEB
PerlModule Apache2::Translation::Config <Location /-/config> SetHandler modperl PerlResponseHandler Apache2::Translation::Config </Location>
This module implements a simple modperl handler that exports our provider parameters in JSON or YAML to the WEB, e.g.:
modperl
$ curl http://localhost/-/config?yaml --- TranslationEvalCache: 1000 TranslationKey: default TranslationProvider: - File - configfile - /path/to/config
Since Apache2::Translation version 0.31 JSON is default. Apache2::Translation::Admin can decode both formats provided the YAML and JSON::XS modules are installed.
Apache2::Translation
Apache2::Translation::Admin
This format can be used by the WEB interface Apache2::Translation::Admin to connect to the provider.
Torsten Foertsch, <torsten.foertsch@gmx.net>
Copyright (C) 2005-2009 by Torsten Foertsch
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apache2::Translation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::Translation
CPAN shell
perl -MCPAN -e shell install Apache2::Translation
For more information on module installation, please visit the detailed CPAN module installation guide.