NAME
Locale::CLDR::Lite - Simple access to the Unicode Common Locale Data Repository
VERSION
Version 0.01_01
SYNOPSIS
NOTE: This is considered alpha code. Interface may well be subject to complete change. I'm open to suggestions.
This module aims to be very light, providing accessor methods to CLDR data and managing the LDML inheritence model.
use Locale::CLDR::Lite;
my $locale = Locale::CLDR::Lite->new( 'en_GB' );
my $decimal = $locale->get->numbers->symbols->decimal(); # returns .
my $decimal = $locale->get->dates->calendars->calendar(type => 'gregorian')->
dateFormats->dateFormatLength(type => 'full')->dateFormat->pattern();
# returns EEEE, d MMMM y
METHODS
new
Create a new accessor object from a given language tag.
get
Get must be called first whenever you want to start a new request navigating from a base node.
generated on the fly
This script generates accessors as you use them. At this time it provides no validation other than to return undef if your requested tree node doesn't exist. Go to http://www.unicode.org/reports/tr35/tr35-25.html for details of the locale XML data structure.
AUTHOR
Lyle Hopkins, <webmaster at cosmicperl.com>
CAVEATS
Not much has been tested. The current stable release (version 21 on 2012/08/30) of the main CLDR XML is included, this is for convenience but makes the module bloated. As this module is indended to be very lightweight is doesn't use a much CPAN so expect funny things in the code.
BUGS
Please report any bugs or feature requests to bug-locale-cldr-lite at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Locale-CLDR-Lite. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
TODO
Write more tests and examples Allow for CLDR xml files path overwrite
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Locale::CLDR::Lite
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
Thanks to John Imrie for giving advice and pointers.
Thanks to everyone contributing to the CLDR project.
Thanks to http://www.greenrope.com for funding development.
SEE ALSO
LICENSE AND COPYRIGHT
Copyright 2012 Lyle Hopkins.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.