ዳንኤል ያዕቆብ > DateTime-Calendar-Coptic > DateTime::Language

Download:
DateTime-Calendar-Coptic-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

DateTime::Language - base class for DateTime.pm-related language localization

SYNOPSIS ^

  package DateTime::Language::Gibberish;

  use base qw(DateTime::Language);

DESCRIPTION ^

This class provides most of the methods needed to implement language localization for DateTime.pm. A subclass of this language simply provides a set of data structures containing things like day and months names.

This module is a factory for language subclasses, and can load a class either based on the language portion of its name, such as "English", or based on its ISO code, such as "en" or "eng".

USAGE ^

This module provides the following methods:

SUBCLASSING ^

People who want to add support for new languages may be interested in subclassing this module.

The simplest way to do this is to simply declare your new module, let's call it DateTime::Language::Inhumi, a subclass of DateTime::Language, and to define a set of global variables in your namespace.

These globals are:

The DateTime::Language module implements methods that use these globals as needed. If you need to implement more complex algorithms, you can override the following methods:

SUPPORT ^

Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

However, please see the CREDITS file for more details on who I really stole all the code from.

COPYRIGHT ^

Copyright (c) 2003 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Portions of the code in this distribution are derived from other works. Please see the CREDITS file for more details.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO ^

datetime@perl.org mailing list

http://datetime.perl.org/

syntax highlighting: