NAME

MultilingualSelection - Selection with localized labels


SYNOPSIS

  $property = new Podius::Property::Selection;

Supposed to be used in the Podius::Component manpage and the Podius::Property manpage module trees only.


DESCRIPTION

This module implements component property of multilingual multiple choice. The choice is one code (scalar, usually integer) from list of possible codes.

MultilingualSelection is implemented by transparent supplying right language to Selection superclass property. For this purposes constant code-label hash must be supplied in class constructor for each language.


REQUIREMENTS

the Podius::Property::Selection manpage, the Podius::Property::Multilingual manpage.


CONSTRUCTORS

new

description
Class constructor.

parameters
        * class name
        * hash of hashes (language => code => label) and initial code
returns
New formed property reference.


METHODS

access_in_language

description
There is only accessor form, no modifier form.

Returns label of current code in given language.

parameters
        * language code or (in the future) language label
returns
Scalar, label in given language.