WWW::Mixi::OO::I18N - WWW::Mixi::OO's internationalization class
use WWW::Mixi::OO::I18N; my $i18n_class = WWW::Mixi::OO::I18N->get_processor('utf-8'); # ...
WWW::Mixi::OO::I18N is WWW::Mixi::OO's internationalization class.
This module provides multi internal charset processing to WWW::Mixi::OO.
my @charsets = WWW::Mixi::OO::I18N->supported_charsets;
return supported charset list
if (WWW::Mixi::OO::I18N->is_supported('utf-8')) { # use utf-8! } else { # blah... }
return true if charset supported
my $processor = WWW::Mixi::OO::I18N->get_processor('utf-8'); $processor->convert_time(...);
return specified charset processor.
i18n class need to implement following methods.
$i18n->convert_from_http_content($charset, $str);
charset conversion from $charset to internal charset.
$i18n->convert_to_http_content($charset, $str);
charset conversion from internal charset to $charset.
$i18n->convert_login_time($timestr);
convert mixi login time(such as '3 hours') to 'YYYY/mm/dd HH:MM' format and time value
$i18n->convert_time($timestr);
convert japanese timestr to such as 'YYYY/mm/dd' format(ex. 2005/01/30, 01/30)
WWW::Mixi::OO
Topia <topia@clovery.jp>
Copyright (C) 2005 by Topia.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install WWW::Mixi::OO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mixi::OO
CPAN shell
perl -MCPAN -e shell install WWW::Mixi::OO
For more information on module installation, please visit the detailed CPAN module installation guide.