Lingua::Flags - Provide small flag icons


Lingua-Flags documentation  | view source Contained in the Lingua-Flags distribution.

Index


NAME

Top

Lingua::Flags - Provide small flag icons

SYNOPSIS

Top

Provides small flag icons in different formats.

    use Lingua::Flags;

    my $foo = as_html_img("PT");
    print "<p>This is in $foo language</p>";

    open GIF, ">image.gif";
    print GIF as_gif("PT");
    close GIF;

DISCLAIMER

Top

It is impossible to map flags to languages. Languages cross countries. And countries cross languages. What language should use the Spanish flag? The Catalan or Castilian or other? What flag should be used for Afrikaans? South Africa or Namibia?

I tried to choose the more consensual flags, but in some cases I have doubts. If you have better ideas, please correct me.

Nevertheless, I think this module is useful.

DESCRIPTION

Top

Module with small flags icons. You can get them in base64 inline HTML image or as a gif image.

FUNCTIONS

Top

as_html_img

Returns an inline HTML image. For now, it just works with Netscape/Gecko based browsers.

as_gif

Returns the gif code. Normally used as:

  open GIF, ">image.gif";
  print GIF as_gif("PT");
  close GIF;

AUTHOR

Top

Alberto Simoes, <ambs@cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-lingua-flags@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-Flags. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


Lingua-Flags documentation  | view source Contained in the Lingua-Flags distribution.