line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::Flags; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
18917
|
use base 'Exporter'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
78
|
|
4
|
1
|
|
|
1
|
|
688
|
use MIME::Base64; |
|
1
|
|
|
|
|
659
|
|
|
1
|
|
|
|
|
61
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
24
|
|
6
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
371
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our @EXPORT = qw.as_html_img as_gif.; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Lingua::Flags - Provide small flag icons |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = '0.07'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Provides small flag icons in different formats. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use Lingua::Flags; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my $foo = as_html_img("PT"); |
25
|
|
|
|
|
|
|
print " This is in $foo language "; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
open GIF, ">image.gif"; |
28
|
|
|
|
|
|
|
print GIF as_gif("PT"); |
29
|
|
|
|
|
|
|
close GIF; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DISCLAIMER |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
It is impossible to map flags to languages. Languages cross |
34
|
|
|
|
|
|
|
countries. And countries cross languages. What language should use the |
35
|
|
|
|
|
|
|
Spanish flag? The Catalan or Castilian or other? What flag should be |
36
|
|
|
|
|
|
|
used for Afrikaans? South Africa or Namibia? |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
I tried to choose the more consensual flags, but in some cases I have |
39
|
|
|
|
|
|
|
doubts. If you have better ideas, please correct me. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Nevertheless, I think this module is useful. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Module with small flags icons. You can get them in base64 inline HTML |
46
|
|
|
|
|
|
|
image or as a gif image. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
our %FLAGS = ( |
51
|
|
|
|
|
|
|
# Portugues |
52
|
|
|
|
|
|
|
PT => q{R0lGODlhFAANAPU7AACHNwCINgCINwCJNwSINQaLNQmJNA+PMxGPMyKXLiWQKzqhKDuhKVefIUyiIne6GpQ3F5Q4FpQ4F5lBFaBoDrVmEf4AAP8AAP0FAPsLAP4ZAP4eAPskAPgxAPE8Ff09GcZbGMBlCsp3B8R1FtxuC+pMAOxVAPVOAPlAAPxJAPteAPNZMulwAPtgAPNiI/hkWe9/a4OGFoS6FKKoEp/LEOeBAfGUAPChAL3F4N2zu/aqj+a9vwAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAUAA0AAAZjwIBwOIhcjsjkcUg0Kp/MAEAAeUKHgMMixMFYkVhFjFJCmTLfixBgkJFesA+rk14naKMcbtVS1aUIDxU6Oy42KX8AAA4zIB41Nxp/UgQMDSInG2lqWAAFExabnEwDEqKjTadBADs=}, |
53
|
|
|
|
|
|
|
# Espanhol |
54
|
|
|
|
|
|
|
ES => q{R0lGODlhFAANAPUuAP8AAP8vAP8wAP8xAOpp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um8/otJoVAgA7}, |
61
|
|
|
|
|
|
|
# Danish |
62
|
|
|
|
|
|
|
DA => q{R0lGODlhFAAPAPIHAP8AAP8QEP+YmP+fn//Q0P/W1v/s7P///yH5BAAAAAAALAAAAAAUAA8AAAM0CLpysjDG9qRl7mqqL+/StwkkWRxFqapH674wvAqnMcxqeBABOO09H4YnHAaLDWIRkDxaEgA7}, |
63
|
|
|
|
|
|
|
# Romanian |
64
|
|
|
|
|
|
|
RO => q{R0lGODlhFAANAPIHAAc9nAxBmmGEY/8AAP9aAP7+AP/+AP//ACH5BAAAAAAALAAAAAAUAA0AAAM4GKogdfAYMqpdzEVJbcVB80ST92HiVppgSnZeq73mII/QGqNzDl88HKd2U/1OC5ePGDQyk72hKQEAOw==}, |
65
|
|
|
|
|
|
|
# Dutch |
66
|
|
|
|
|
|
|
NL => q{R0lGODlhFAANAPIFAAtAmQxBmv8AAKm72/+kpP///wAAAAAAACH5BAAAAAAALAAAAAAUAA0AAAMmKLrc/jDKSRW5OGtduv9gKI5kCQ5oqq5r4L5wHAN0bd+3rO98nwAAOw==}, |
67
|
|
|
|
|
|
|
# English |
68
|
|
|
|
|
|
|
EN => q{R0lGODlhFAANAPeSAAc/mgg+mAg/mQk/mQhAmghAmwlAmgpAmQtAmQpAmgtDnAxBmg1Cmg5Cmw1FnRFFnBFFnRFGnRJHnRFInxFJnxNInhVInR1MnhpMoClRnzVTnTpWniFPoCJQoS1cqS9dqjVirDdkrTpnrz5qsUhZnFdcmURdoVlgnUFssUZwtGZdlXhklWZooGaKwmyPxP8AAP8PD/8vL/8wMP8yMdBpev9NTf9OTv9SUv9TUv9TU/9UU/9VU/9UVP9VVO51evdwc4Jmk4RolJJjipRymZR4n6Jxkqhzk75zirJ8l8J2jMN2jMx6jOJ9h+1+g/d9gJOq0pWs05Wt1J2y1p2z15+x1KCy1aa316O52qW42aa42Ka726i52Km52Km52au72qy82q292rK10bS20a/B3rrD3LrH4PCAhfWcn/2dneWYofafoeihqfaipf+npvutr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2wCj3QCi4AAAACH5BAAAAAAALAAAAAAUAAoAAAVVYCOOZMM4UIQMQFuS50MpR9AKxSs6Mm0DAcOiUopJfK3g4qLhkHizWlLI5Hg6u8dRCqQ2r50Ob/tTVsHhzgTZXX7T8ILgdlhgMla4vgUYJCwbeXp6IQA7}, |
115
|
|
|
|
|
|
|
); |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 FUNCTIONS |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 as_html_img |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Returns an inline HTML image. For now, it just works with |
123
|
|
|
|
|
|
|
Netscape/Gecko based browsers. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=cut |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
sub as_html_img { |
128
|
2
|
|
|
2
|
1
|
5
|
my $cc = shift; |
129
|
2
|
100
|
|
|
|
7
|
if (exists($FLAGS{$cc})) { |
130
|
1
|
|
|
|
|
10
|
return ""; |
131
|
|
|
|
|
|
|
} else { |
132
|
1
|
|
|
|
|
6
|
return undef; |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 as_gif |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Returns the gif code. Normally used as: |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
open GIF, ">image.gif"; |
141
|
|
|
|
|
|
|
print GIF as_gif("PT"); |
142
|
|
|
|
|
|
|
close GIF; |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
sub as_gif { |
147
|
2
|
|
|
2
|
1
|
12
|
my $cc = shift; |
148
|
2
|
100
|
|
|
|
10
|
if (exists($FLAGS{$cc})) { |
149
|
1
|
|
|
|
|
23
|
return decode_base64($FLAGS{$cc}); |
150
|
|
|
|
|
|
|
} else { |
151
|
1
|
|
|
|
|
10
|
return undef; |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
} |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=head1 AUTHOR |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
Alberto Simoes, C<< >> |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head1 BUGS |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
162
|
|
|
|
|
|
|
C, or through the web interface at |
163
|
|
|
|
|
|
|
L. |
164
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on |
165
|
|
|
|
|
|
|
your bug as I make changes. |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
Copyright 2007-2009 Alberto Simoes, all rights reserved. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
172
|
|
|
|
|
|
|
under the same terms as Perl itself. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=cut |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
1; # End of Lingua::Flags |