Locale::TextDomain::OO::Singleton::Lexicon - Provides singleton lexicon access
$Id: Lexicon.pm 472 2014-01-21 16:37:44Z steffenw $
1.008
This module provides the singleton lexicon access for Locale::TextDomain:OO.
use Locale::TextDomain::OO::Singleton::Lexicon;
$lexicon_data = Locale::TextDomain::OO::Singleton::Lexicon->instance->data;
Get back the lexicon hash reference to fill the lexicon or to read from lexicon.
$lexicon_data = Locale::TextDomain::OO::Singleton::Lexicon->instance->data;
Merge ist mostly used to join data of a language to create data for a region with some region different data.
$instance->merge_lexicon('de::', 'de-at::', 'de-at::');
Move is typical used to move the "i-default::" lexicon into your domain and category. With that lexicon without messages you are able to translate because the header with plural forms is set. With no lexicon you would get a missing "plural forms"-error during translation.
$deleted_lexicon = $instance->move_lexicon( 'i-default::', 'i-default:LC_MESSAGES:domain', );
Delete a lexicon from data.
$deleted_lexicon = $instance->delete_lexicon('de::');
Inside of this distribution is a directory named example. Run this *.pl files.
confess
none
Locale::TextDomain::OO::Lexicon::Role::Constants
not known
none
Steffen Winkler
Copyright (c) 2013 - 2014,
Steffen Winkler
<steffenw at cpan.org>
.
All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.