added metadata to ISO639

master
Dylan Lloyd 2012-11-06 17:54:31 -05:00
parent 6958374ba9
commit 85d5ac6da6
1 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,17 @@ triggers start => "iso 639", "iso639";
zci answer_type => "iso639";
zci is_cached => 1;
primary_example_queries 'iso639 english';
secondary_example_queries 'iso639 ab';
description 'lookup ISO639 language names and codes';
name 'ISO639';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ISO639.pm';
category 'reference';
topics 'programming';
attribution github => [ 'http://github.com/tantalor', 'tantalor' ],
web => [ 'http://johntantalo.com/blog', 'John Tantalo' ];
handle remainder => sub {
my ($lang, $code) = langpair(shift) or return;
my $text = sprintf qq(ISO 639: %s - %s), $lang, $code;