Locale::Maketext::Lexicon::Properties - Properties file parser for Maketext
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():
Locale::Maketext::Lexicon::Properties::parse()
use Locale::Maketext::Lexicon::Properties; my %lexicon = %{ Locale::Maketext::Lexicon::Properties->parse(<DATA>) }; __DATA__ foo=bar baz=qux
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.
maketext()
Locale::Maketext, Locale::Maketext::Lexicon
Copyright (C) moznion.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Tokuhiro Matsuno <tokuhirom@gmail.com>
moznion <moznion@gmail.com>
To install Locale::Maketext::Lexicon::Properties, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Maketext::Lexicon::Properties
CPAN shell
perl -MCPAN -e shell install Locale::Maketext::Lexicon::Properties
For more information on module installation, please visit the detailed CPAN module installation guide.