The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::Mixi::OO::I18N - WWW::Mixi::OO's internationalization class

SYNOPSIS

use WWW::Mixi::OO::I18N;
my $i18n_class = WWW::Mixi::OO::I18N->get_processor('utf-8');
# ...

DESCRIPTION

WWW::Mixi::OO::I18N is WWW::Mixi::OO's internationalization class.

This module provides multi internal charset processing to WWW::Mixi::OO.

METHODS

supported_charsets
my @charsets = WWW::Mixi::OO::I18N->supported_charsets;

return supported charset list

is_supported
if (WWW::Mixi::OO::I18N->is_supported('utf-8')) {
    # use utf-8!
} else {
    # blah...
}

return true if charset supported

get_processor
my $processor = WWW::Mixi::OO::I18N->get_processor('utf-8');
$processor->convert_time(...);

return specified charset processor.

INTERFACE

i18n class need to implement following methods.

convert_from_http_content
$i18n->convert_from_http_content($charset, $str);

charset conversion from $charset to internal charset.

convert_to_http_content
$i18n->convert_to_http_content($charset, $str);

charset conversion from internal charset to $charset.

convert_login_time
$i18n->convert_login_time($timestr);

convert mixi login time(such as '3 hours') to 'YYYY/mm/dd HH:MM' format and time value

convert_time
$i18n->convert_time($timestr);

convert japanese timestr to such as 'YYYY/mm/dd' format(ex. 2005/01/30, 01/30)

SEE ALSO

WWW::Mixi::OO

AUTHOR

Topia <topia@clovery.jp>

COPYRIGHT AND LICENSE

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.