Apache2::Translation::Config - export our provider parameters to the WEB


Apache2-Translation documentation  | view source Contained in the Apache2-Translation distribution.

Index


NAME

Top

Apache2::Translation::Config - export our provider parameters to the WEB

SYNOPSIS

Top

  PerlModule Apache2::Translation::Config
  <Location /-/config>
    SetHandler modperl
    PerlResponseHandler Apache2::Translation::Config
  </Location>

DESCRIPTION

Top

This module implements a simple modperl handler that exports our provider parameters in JSON or YAML to the WEB, e.g.:

  $ 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.

This format can be used by the WEB interface Apache2::Translation::Admin to connect to the provider.

AUTHOR

Top

Torsten Foertsch, <torsten.foertsch@gmx.net>

COPYRIGHT AND LICENSE

Top


Apache2-Translation documentation  | view source Contained in the Apache2-Translation distribution.