Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 (Chancellor) 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 taking refuge in the Monastery: (5)
As of 2014-10-31 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (214 votes), past polls