Lingua::Flags - Provide small flag icons
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;
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.
Module with small flags icons. You can get them in base64 inline HTML image or as a gif image.
Returns an inline HTML image. For now, it just works with Netscape/Gecko based browsers.
Returns the gif code. Normally used as:
open GIF, ">image.gif"; print GIF as_gif("PT"); close GIF;
Please report any bugs or feature requests to
email@example.com, 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 2007-2009 Alberto Simoes, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.