NAME
Locale::TextDomain::OO::Util::JavaScript - How to use the JavaScript part
$Id: OO.pm 502 2014-05-12 20:19:51Z steffenw $
$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO.pm $
VERSION
2.002
DESCRIPTION
This package also contais the utils as JavaScript.
SYNOPSIS
Inside of this distribution is a directory named javascript. For more information see: Locale::TextDomain::OO::JavaScript
This script depends on http://jquery.com/.
SUBROUTINES/METHODS
var constants = new localeTextDomainOOUtilConstants();
var lexiconKeySeparator = constants.lexiconKeySeparator();
var pluralSeparator = constants.pluralSeparator();
var msgKeySeparator = constants.msgKeySeparator();
var keyUtil = new localeTextDomainOOUtilJoinSplitLexiconKeys();
var lexiconKey = keyUtil.joinLexiconKey({
'language' : 'de', // default 'i-default'
'domain' : 'test', // default undefined
'category' : 'LC_MESSAGES', // default undefined
'project' : 'shop' // default undefined
});
var msgKey = keyUtil.joinMessageKey({
'msgctxt' : 'context', // default undefined
'msgid' : 'phrase or singular phrase', // default ''
'msgid_plural' : 'plural phrase', // default undefined
});
DIAGNOSTICS
none
CONFIGURATION AND ENVIRONMENT
none
DEPENDENCIES
INCOMPATIBILITIES
not known
BUGS AND LIMITATIONS
not known
SEE ALSO
Locale::TextDoamin::OO::JavaScript
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.