NAME Locale::TextDomain::OO::Util::JoinSplitLexiconKeys - Handle lexicon and message key

$Id: $

$HeadURL: $

VERSION

0.001

DESCRIPTION

Module to handle the lexicon and message key.

SYNOPSIS

use Locale::TextDomain::OO::Uitl::JoinSplitLexiconKeys;

my $keys_util = Locale::TextDomain::OO::Uitl::JoinSplitLexiconKeys->instance;

SUBROUTINES/METHODS

method join_lexicon_key

$lexicon_key = $keys_util->join_lexicon_key({
    category => 'LC_MESSAGES', # default q{}
    domain   => 'TextDomain',  # defuaut q{}
    language => 'de-de',       # default 'i-default'
});

method split_lexicon_key

This method is the reverse implementation of method join_lexicon_key.

$hash_ref = $keys_util->split_lexicon_key($lexicon_key);

method join_message_key

$message_key = $keys_util->join_message_key({
    msgctxt      => 'my context',
    msgid        => 'simple text or singular',
    msgid_plural => 'plural',
});

method split_message_key

This method is the reverse implementation of method join_message_key.

$hash_ref = $keys_util->split_message_key($message_key);

EXAMPLE

Inside of this distribution is a directory named example. Run this *.pl files.

DIAGNOSTICS

none

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

Locale::TextDomain::OO::Util::Constants

Moo

MooX::StrictConstructor

namespace::autoclean

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

none

SEE ALSO

Locale::TextDoamin::OO

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

Copyright (c) 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.