Data::Localize::Storage::MongoDB - A MongoDB storage backend for Data::Localize
version 0.001
use Data::Localize::Storage::MongoDB; my $conn = MongoDB::Connection->new( host => 'localhost' ); my $loc = Data::Localize->new; $loc->add_localizer( class => 'Gettext', path => 't/001-basic/*.po', storage_class => 'MongoDB', storage_args => { database => $conn->get_database('i18n') } ); $loc->set_languages('ja'); print $loc->localize('Hello, stranger!', '牧大輔'); $loc->set_languages('en'); print $loc->localize_for('Hello, stranger!', 'Stevan');
This is a simple MongoDB storage backend for Data::Localize.
This is used internally by Data::Localize.
Stevan Little <stevan.little@iinteractive.com>
This software is copyright (c) 2011 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in ''牧大輔');'. Assuming CP1252
To install Data::Localize::Storage::MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Localize::Storage::MongoDB
CPAN shell
perl -MCPAN -e shell install Data::Localize::Storage::MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.