GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATA::LOCALIZE::MULTILEVEL (3)

.ds Aq ’

NAME

Data::Localize::MultiLevel - Fetch Data From Multi-Level Data Structures

CONTENTS

SYNOPSIS



    use Data::Localize;

    my $loc = Data::Localize->new();

    $loc->add_localizer(
        Data::Localize::MultiLevel->new(
            paths => [ /path/to/lexicons/*.yml ]
        )
    );

    $loc->localize( foo.key, { arg => $value, ... } );

    # above is internally...
    $loc->localize_for(
        lang => en,
        id => foo.key,
        args => [ { arg => $value } ]
    );
    # which in turn looks up...
    # $lexicons->{foo}->{key};



DESCRIPTION

Data::Localize::MultiLevel implements a Rails-ish I18N facility. Namely it uses a multi-level key to lookup data from a hash, and uses the NamedArgs formatter.

METHODS

    get_lexicon

    set_lexicon

    load_from_path

    register

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATA::LOCALIZE::MULTILEVEL (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.