Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: WWW::Wikipeida getting translation

by Not_a_Number (Parson)
on Feb 28, 2013 at 18:51 UTC ( #1021091=note: print w/ replies, xml ) Need Help??


in reply to WWW::Wikipeida getting translation

Hmmm...

Changing the search term yields different results. For instance, for 'clam', I get:

da de en eo fi gl ja

which is nevertheless still far fewer than the 20+ languages shown in my browser.

A bit of poking about in the Data::Dumper output as suggested by toolic shows these lines towards the end

[[da:Musling]] [[de:Muscheln]] [[eo:Pekteno]] [[gl:Ameixa, molusco]] [[ja:\x{30cf}\x{30de}\x{30b0}\x{30ea}]] [[fi:Simpukat]]

which obviously correspond, apart from en, but don't appear in the browser-rendered version.

But what I'm wondering is where you found the languages() method documented? It's not in the POD for WWW::Wikipedia.


Comment on Re: WWW::Wikipeida getting translation
Select or Download Code
Re^2: WWW::Wikipeida getting translation
by toolic (Bishop) on Feb 28, 2013 at 19:16 UTC
    But what I'm wondering is where you found the languages() method documented? It's not in the pod for WWW::Wikipedia.
    I wondered the same thing. I looked in the source for WWW::Wikipedia, and I found:
    use WWW::Wikipedia::Entry;

    The POD for WWW::Wikipedia::Entry has languages(). The POD for WWW::Wikipedia should mention WWW::Wikipedia::Entry.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021091]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (16)
As of 2015-07-03 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls