-
-
16 Jul 2017 09:24:26 UTC
- Distribution: Locale-TextDomain-OO-Util
- Module version: 3.004
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (323 / 0 / 0)
- Kwalitee
Bus factor: 1- 87.68% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (11.22KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Cwd
- English
- Safe
- Test::Differences
- Test::Exception
- Test::More
- Test::NoWarnings
- charnames
- namespace::autoclean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME Locale::TextDomain::OO::Util::JavaScript - How to use the JavaScript part
- VERSION
- DESCRIPTION
- SYNOPSIS
- SUBROUTINES/METHODS
- DIAGNOSTICS
- CONFIGURATION AND ENVIRONMENT
- DEPENDENCIES
- INCOMPATIBILITIES
- BUGS AND LIMITATIONS
- SEE ALSO
- AUTHOR
- LICENSE AND COPYRIGHT
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
3.004
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 - 2015, 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.
Module Install Instructions
To install Locale::TextDomain::OO::Util, copy and paste the appropriate command in to your terminal.
cpanm Locale::TextDomain::OO::Util
perl -MCPAN -e shell install Locale::TextDomain::OO::Util
For more information on module installation, please visit the detailed CPAN module installation guide.