Don't you mean DE?Domin wrote:Well what i ment was the if i set the local switch for wiki to "da" wich is my native language, and then do:
Domin wrote:Well what i ment was the if i set the local switch for wiki to "da" wich is my native language, and then do:
!wiki tcpip
there will be no results, but if i just set it to "en" it will find english descriptions
What i was suggestion was that you couldt use local first and if non is found it will display the english version if that exists.
But i have no idea how big a task this is, it was just a suggestion from my part
Now what I'm guessing is that the first message given is saying something along the lines of 'sorry, no results. try wikipedia in english'. Problem is even though it's entirely possible to have the bot predict this, it takes entirely too long to be useful or acceptable. The reason is that between typing the trigger !w .da <anything here> and getting your reply involves loading up to 3 pages possibly, and parsing segments from each. Doing this twice in effect would mean 6 pages possibly loaded. This just doesn't make sense, the lag on the bot would be incredible. Instead, I would rather people just do what the message tells them, and after using !wiki .da <anything> and seeing the message, use !wiki .en <anything> to get english results. You do realize the default wiki country you put in the config is only used when people aren't using one on their own.text from irc wrote:<speechles> !w .da tcpip
<sp33chy> Desværre, der var ikke nogen sider der præcist opfyldte dine søgekriterier. Du kan se, om en artikel findes på engelsk
<speechles> !w .da tcp ip
<sp33chy> Undgåelse af datanet-trafikforstoppelse | Datanet-trafikforstoppelse er når netkort, netudstyr eller værters (en. hosts) portkøer bliver fyldt op og normalt "løber over" (datapakkerne tabes, "slettes"). Dette resulterer i forsinkelse og forsinkelsesvariation for forbindelsesorienterede flows (f.eks. tcp), da der først går et lille stykke tid før det "konkluderes" at en given pakke er tabt og en kopi
<sp33chy> genfremsendes. Da kopien bliver sendt et lille stykke senere, er dette ophave til forbindelsesorienterede flows pakkers forsinkelse og forsinkelsesvariation. Undgåelse af datanet-trafikforstoppelse opnås ved at sørge for, at portkøerne forbliver mindre fyldt, midlet over 1 sekund. Dette kaldes Active Queue Management (AQM). Det hjælper ikke at lave ultrako @
<sp33chy> http://da.wikipedia.org/wiki/Undg%C3%A5 ... rstoppelse [1 Redirect(s)]
<speechles> !w .en tcp ip
<sp33chy> Internet protocol suite | The Internet protocol suite is the set of communications protocols that implement the protocol stack on which the Internet and most commercial networks run. It has also been referred to as the TCP/IP protocol suite, which is named after two of the most important protocols in it: the Transmission Control Protocol (TCP) and the Internet Protocol (IP), which were also the first
<sp33chy> two networking protocols defined. Today's IP networking represents a synthesis of two developments that began to evolve in the 1960s and 1970s, namely LANs (Local Area Networks) and the Internet, which, together with the invention of the World Wide Web by Tim Berners-Lee in 1989, have revolutionized computing. The Internet Protocol suite @ http://en.wikipedia.org/wiki/Internet_protocol_suite [1
<sp33chy> Redirect(s)]
<speechles> !w .simple tcp ip
<sp33chy> Computer network | A computer network is a group of two or more computers connected to each other. Usually, this means that the speed of the connection is fast - faster than your connection to the Internet. In fact, two computers connected over the Internet is not considered a computer network. Some basic types of computer networks include: A local area network (often called a LAN) connects two or more
<sp33chy> computers in a house or an office.. A corporate network enables communication among various offices of the same organization.. An "internetwork", sometimes called a Wide Area Network (because of the wide distance between networks) connects two or more smaller networks together. The largest internetwork is called the Internet.. C @ http://simple.wikipedia.org/wiki/Computer_network [1 Redirect(s)]
Thanks i can easily live with that, i must have overlooked that feature, thanks for clearing it upspeechles wrote:Instead, I would rather people just do what the message tells them, and after using !wiki .da <anything> and seeing the message, use !wiki .en <anything> to get english results. You do realize the default wiki country you put in the config is only used when people aren't using one on their own.
!wiki <text here> will ALWAYS use the default setting (in your case 'da')
!wiki .en <text here> will ALWAYS use english wikipedia.
Understand?
I know Germany is DE, however there is NO reference to a country code of DA (which is why I posted).Domin wrote:Nae, da as in danishAlchera wrote:Don't you mean DE?Domin wrote:Well what i ment was the if i set the local switch for wiki to "da" wich is my native language, and then do:
de is germany, they are close but not the same
Wikipedia is entirely different than what you've shown above. The country codes used aren't appended at the end of the url, but prepended to the beginning.Alchera wrote:I know Germany is DE, however there is NO reference to a country code of DA (which is why I posted).
internet country codes
I'd suggest you learn your own country code.
lol, waw ! I think you dont know what u r talking about. Make some search before making some statements like this, and u ll find that wikipedia is as accurate as encylopedia britannica ! All the experts say it s a very reliable source !!!!The problem with wiki is that any person can edit any part of it which is why I (and I dare say many others) do not consider it a reliable source