mat ) = @_;
defined $format
or return "\N{END OF TRANSMISSION}";
$format eq 'JSON'
and return '{MSG_KEY_SEPARATOR}';
return "\N{END OF TRANSMISSION}";
}
sub pl
y ( undef, $format ) = @_;
defined $format
or return "\N{NULL}";
$format eq 'JSON'
and return '{PLURAL_SEPARATOR}';
return "\N{NULL}";
}
1;
__END__
=head
= $const->msg_key_separator('JSON');
=head2 method plural_separator
$separator = $const->plural_separator; # Perl
$separator = $const->plural_separator('JSON');
=head1 EXAMPLE
Ins
msgid => 'simple text or singular',
msgid_plural => 'plural',
});
JSON format
$message_key = $keys_util->join_message_key(
{
msgctxt =
'JSON',
);
=head2 method split_message_key
This method is the reverse implementation of method join_message_key.
$hash_ref = $keys_util->split_message_key($message_key);
JSON fo
rmat
$hash_ref = $keys_util->split_message_key($message_key, 'JSON');
=head2 method join_message
This method puts all data into the message_ref
$message_ref = $keys_util->join_mess