The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Locale::Maketext::Lexicon::Properties - Properties file parser for Maketext

SYNOPSIS

Called via Locale::Maketext::Lexicon:

    package Hello::I18N;
    use parent 'Locale::Maketext';
    use Locale::Maketext::Lexicon {
        en => [ Properties => "en_US/hello.properties" ],
    };

    package main;
    my $lh = Hello::I18N->get_handle('en');
    print $lh->maketext('foo');

Directly calling Locale::Maketext::Lexicon::Properties::parse():

    use Locale::Maketext::Lexicon::Properties;
    my %lexicon = %{ Locale::Maketext::Lexicon::Properties->parse(<DATA>) };
    __DATA__
    foo=bar
    baz=qux

DESCRIPTION

This module parses .properties file (from Java) for Locale::Maketext by using Locale::Maketext::Lexicon. And it can also returns a Lexicon hash.

You can lookup the property value by specifying key to maketext() or Lexcon hash.

SEE ALSO

Locale::Maketext, Locale::Maketext::Lexicon

LICENSE

Copyright (C) moznion.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Tokuhiro Matsuno <tokuhirom@gmail.com>

moznion <moznion@gmail.com>