r106976 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:< r106975‎ | r106976 | r106977 >
Date:20:26, 21 December 2011
Author:brion
Status:deferred (Comments)
Tags:
Comment:
Quickie one-off (hopefully ;) to pull language-by-country lists
Modified paths:
  • /trunk/tools/language-breakdown (added) (history)
  • /trunk/tools/language-breakdown/README (added) (history)
  • /trunk/tools/language-breakdown/langs.php (added) (history)
  • /trunk/tools/language-breakdown/slurp-breakdown.php (added) (history)
  • /trunk/tools/language-breakdown/work.txt (added) (history)

Diff [purge]

Index: trunk/tools/language-breakdown/work.txt
——@@ -0,0 +1,1271 @@
 2+* United States
 3+** en # 90.6%
 4+** portal # 6.4%
 5+** other # 3.0%
 6+* Germany
 7+** de # 84.0%
 8+** en # 11.9%
 9+** other # 4.1%
 10+* Japan
 11+** ja # 95.9%
 12+** en # 3.1%
 13+** other # 1.0%
 14+* United Kingdom
 15+** en # 92.8%
 16+** portal # 3.7%
 17+** other # 3.5%
 18+* France
 19+** fr # 84.6%
 20+** en # 11.8%
 21+** other # 3.6%
 22+* Italy
 23+** it # 84.4%
 24+** en # 12.1%
 25+** other # 3.5%
 26+* Russian Federation
 27+** ru # 88.0%
 28+** en # 8.6%
 29+** portal # 2.1%
 30+** other # 1.3%
 31+* Canada
 32+** en # 83.7%
 33+** fr # 9.3%
 34+** portal # 4.2%
 35+** zh # 1.0%
 36+** other # 1.8%
 37+* Brazil
 38+** pt # 79.8%
 39+** en # 16.6%
 40+** portal # 1.8%
 41+** other # 1.8%
 42+* Poland
 43+** pl # 78.8%
 44+** en # 16.2%
 45+** portal # 1.9%
 46+** ru # 1.1%
 47+** other # 2.0%
 48+* Mexico
 49+** es # 84.6%
 50+** en # 13.3%
 51+** portal # 1.3%
 52+** other # 0.8%
 53+* Spain
 54+** es # 75.6%
 55+** en # 16.2%
 56+** ca # 2.8%
 57+** portal # 1.0%
 58+** other # 4.4%
 59+* India
 60+** en # 93.5%
 61+** portal # 3.6%
 62+** other # 2.9%
 63+* Australia
 64+** en # 93.0%
 65+** portal # 3.8%
 66+** zh # 1.3%
 67+** other # 1.9%
 68+* Netherlands
 69+** nl # 59.2%
 70+** en # 33.9%
 71+** portal # 1.8%
 72+** de # 1.7%
 73+** other # 3.4%
 74+* Sweden
 75+** sv # 53.9%
 76+** en # 38.8%
 77+** portal # 2.0%
 78+** de # 1.0%
 79+** other # 4.3%
 80+* Ukraine
 81+** ru # 68.1%
 82+** uk # 12.7%
 83+** en # 11.0%
 84+** portal # 6.4%
 85+** other # 1.8%
 86+* Taiwan
 87+** zh # 78.8%
 88+** en # 15.4%
 89+** ja # 3.3%
 90+** portal # 1.0%
 91+** other # 1.5%
 92+* Colombia
 93+** es # 86.9%
 94+** en # 10.3%
 95+** portal # 2.0%
 96+** other # 0.8%
 97+* Argentina
 98+** es # 81.6%
 99+** en # 15.5%
 100+** portal # 1.5%
 101+** other # 1.4%
 102+* Switzerland
 103+** de # 55.9%
 104+** en # 17.8%
 105+** fr # 17.2%
 106+** it # 3.9%
 107+** portal # 2.4%
 108+** other # 2.8%
 109+* Philippines
 110+** en # 91.1%
 111+** portal # 4.9%
 112+** tl # 2.9%
 113+** other # 1.1%
 114+* China
 115+** zh # 59.4%
 116+** en # 25.0%
 117+** portal # 6.2%
 118+** ja # 4.1%
 119+** de # 1.0%
 120+** other # 4.3%
 121+* Austria
 122+** de # 78.8%
 123+** en # 16.1%
 124+** portal # 1.4%
 125+** other # 3.7%
 126+* Belgium
 127+** nl # 36.0%
 128+** fr # 32.6%
 129+** en # 25.1%
 130+** de # 1.7%
 131+** portal # 1.4%
 132+** other # 3.2%
 133+* Turkey
 134+** tr # 67.2%
 135+** en # 27.9%
 136+** portal # 1.6%
 137+** de # 1.0%
 138+** other # 2.3%
 139+* Finland
 140+** fi # 58.9%
 141+** en # 35.1%
 142+** sv # 1.8%
 143+** portal # 1.2%
 144+** other # 3.0%
 145+* Hong Kong
 146+** zh # 59.9%
 147+** en # 31.3%
 148+** portal # 3.6%
 149+** ja # 2.4%
 150+** yue # 1.5%
 151+** other # 1.3%
 152+* Indonesia
 153+** id # 45.3%
 154+** en # 44.2%
 155+** portal # 7.7%
 156+** other # 2.8%
 157+* Norway
 158+** en # 44.4%
 159+** no # 43.4%
 160+** portal # 3.2%
 161+** sv # 1.2%
 162+** de # 1.1%
 163+** id # 1.0%
 164+** other # 5.7%
 165+* Czech Republic
 166+** cs # 65.1%
 167+** en # 25.6%
 168+** portal # 3.0%
 169+** ru # 1.6%
 170+** de # 1.5%
 171+** other # 3.2%
 172+* Malaysia
 173+** en # 72.3%
 174+** portal # 12.0%
 175+** zh # 6.4%
 176+** ms # 6.2%
 177+** id # 1.1%
 178+** other # 2.0%
 179+* Chile
 180+** es # 82.4%
 181+** en # 14.9%
 182+** portal # 1.5%
 183+** other # 1.2%
 184+* Israel
 185+** he # 49.2%
 186+** en # 37.9%
 187+** ru # 5.6%
 188+** portal # 2.8%
 189+** ar # 1.9%
 190+** other # 2.6%
 191+* Venezuela
 192+** es # 87.4%
 193+** en # 10.6%
 194+** portal # 1.1%
 195+** other # 0.9%
 196+* Peru
 197+** es # 85.0%
 198+** en # 12.9%
 199+** portal # 1.0%
 200+** other # 1.1%
 201+* Portugal
 202+** pt # 56.0%
 203+** en # 38.1%
 204+** portal # 1.6%
 205+** es # 1.2%
 206+** other # 3.1%
 207+* Korea, Republic of
 208+** ko # 49.7%
 209+** en # 40.1%
 210+** ja # 3.6%
 211+** portal # 3.2%
 212+** other # 3.4%
 213+* Romania
 214+** en # 60.9%
 215+** ro # 27.0%
 216+** portal # 4.7%
 217+** hu # 2.9%
 218+** fr # 1.2%
 219+** de # 1.1%
 220+** other # 2.2%
 221+* Thailand
 222+** th # 51.9%
 223+** en # 34.4%
 224+** portal # 9.2%
 225+** ja # 1.5%
 226+** other # 3.0%
 227+* Hungary
 228+** hu # 55.8%
 229+** en # 36.3%
 230+** portal # 2.5%
 231+** de # 2.5%
 232+** other # 2.9%
 233+* Denmark
 234+** en # 54.9%
 235+** da # 35.8%
 236+** portal # 2.5%
 237+** de # 2.0%
 238+** other # 4.8%
 239+* Ireland
 240+** en # 90.3%
 241+** portal # 4.0%
 242+** pl # 1.8%
 243+** other # 3.9%
 244+* Greece
 245+** en # 69.5%
 246+** el # 22.5%
 247+** portal # 3.0%
 248+** de # 1.2%
 249+** other # 3.8%
 250+* New Zealand
 251+** en # 91.9%
 252+** portal # 4.2%
 253+** zh # 1.3%
 254+** other # 2.6%
 255+* Vietnam
 256+** vi # 56.2%
 257+** en # 38.6%
 258+** portal # 1.7%
 259+** other # 3.5%
 260+* Serbia
 261+** en # 60.5%
 262+** sr # 22.4%
 263+** portal # 5.7%
 264+** hr # 2.7%
 265+** sc # 2.1%
 266+** bs # 1.2%
 267+** other # 5.4%
 268+* Bulgaria
 269+** en # 47.6%
 270+** bg # 40.9%
 271+** portal # 4.9%
 272+** ru # 2.6%
 273+** de # 1.1%
 274+** other # 2.9%
 275+* Saudi Arabia
 276+** en # 56.5%
 277+** ar # 36.5%
 278+** portal # 3.8%
 279+** other # 3.2%
 280+* Pakistan
 281+** en # 94.1%
 282+** portal # 4.2%
 283+** other # 1.7%
 284+* Croatia
 285+** en # 61.0%
 286+** hr # 28.5%
 287+** bs # 2.5%
 288+** portal # 2.3%
 289+** de # 1.5%
 290+** sr # 1.0%
 291+** other # 3.2%
 292+* Egypt
 293+** en # 54.0%
 294+** ar # 36.7%
 295+** portal # 4.5%
 296+** fr # 1.0%
 297+** arz # 1.0%
 298+** other # 2.8%
 299+* Iran, Islamic Republic of
 300+** fa # 55.8%
 301+** en # 37.4%
 302+** portal # 4.0%
 303+** other # 2.8%
 304+* Singapore
 305+** en # 84.0%
 306+** portal # 7.1%
 307+** zh # 4.4%
 308+** ja # 2.1%
 309+** other # 2.4%
 310+* Slovakia
 311+** en # 40.5%
 312+** sk # 38.0%
 313+** cs # 9.6%
 314+** portal # 4.1%
 315+** hu # 2.9%
 316+** de # 1.8%
 317+** other # 3.1%
 318+* Ecuador
 319+** es # 85.0%
 320+** en # 11.7%
 321+** portal # 2.2%
 322+** other # 1.1%
 323+* South Africa
 324+** en # 90.7%
 325+** portal # 4.9%
 326+** af # 1.9%
 327+** other # 2.5%
 328+* Belarus
 329+** ru # 79.4%
 330+** en # 11.2%
 331+** portal # 6.5%
 332+** other # 2.9%
 333+* Morocco
 334+** fr # 58.6%
 335+** en # 20.9%
 336+** ar # 16.3%
 337+** es # 1.2%
 338+** portal # 1.1%
 339+** other # 1.9%
 340+* Lithuania
 341+** en # 42.5%
 342+** lt # 40.3%
 343+** ru # 8.2%
 344+** portal # 5.1%
 345+** pl # 1.1%
 346+** other # 2.8%
 347+* Dominican Republic
 348+** es # 77.1%
 349+** en # 19.1%
 350+** portal # 2.1%
 351+** other # 1.7%
 352+* Kazakhstan
 353+** ru # 81.6%
 354+** en # 11.6%
 355+** kz # 3.1%
 356+** portal # 2.3%
 357+** other # 1.4%
 358+* Guatemala
 359+** es # 83.3%
 360+** en # 14.1%
 361+** portal # 1.7%
 362+** other # 0.9%
 363+* Algeria
 364+** fr # 55.8%
 365+** ar # 25.1%
 366+** en # 16.1%
 367+** portal # 1.0%
 368+** other # 2.0%
 369+* Kuwait
 370+** en # 56.0%
 371+** ru # 14.2%
 372+** ar # 10.5%
 373+** portal # 4.1%
 374+** pl # 2.2%
 375+** uk # 2.0%
 376+** de # 1.6%
 377+** fr # 1.5%
 378+** pt # 1.1%
 379+** other # 6.8%
 380+* Slovenia
 381+** en # 61.4%
 382+** sl # 28.8%
 383+** portal # 2.0%
 384+** de # 2.0%
 385+** hr # 1.4%
 386+** it # 1.0%
 387+** other # 3.4%
 388+* Puerto Rico
 389+** en # 52.3%
 390+** es # 41.8%
 391+** portal # 5.1%
 392+** other # 0.8%
 393+* Estonia
 394+** en # 53.6%
 395+** es # 22.7%
 396+** ru # 17.4%
 397+** portal # 3.2%
 398+** de # 1.0%
 399+** other # 2.1%
 400+* United Arab Emirates
 401+** en # 82.4%
 402+** ar # 8.3%
 403+** portal # 3.8%
 404+** other # 5.5%
 405+* Uruguay
 406+** es # 79.5%
 407+** en # 17.2%
 408+** portal # 1.3%
 409+** other # 2.0%
 410+* Latvia
 411+** en # 43.0%
 412+** ru # 33.9%
 413+** lv # 16.4%
 414+** portal # 3.3%
 415+** de # 1.1%
 416+** other # 2.3%
 417+* Costa Rica
 418+** es # 68.7%
 419+** en # 26.7%
 420+** portal # 2.6%
 421+** other # 2.0%
 422+* Tunisia
 423+** fr # 61.7%
 424+** en # 20.7%
 425+** ar # 13.7%
 426+** portal # 1.5%
 427+** other # 2.4%
 428+* Bosnia and Herzegovina
 429+** en # 49.7%
 430+** hr # 20.0%
 431+** sr # 11.3%
 432+** bs # 7.8%
 433+** portal # 4.8%
 434+** de # 2.3%
 435+** sc # 1.6%
 436+** other # 2.5%
 437+* Georgia
 438+** en # 38.2%
 439+** ka # 26.8%
 440+** ru # 19.2%
 441+** portal # 12.1%
 442+** de # 1.1%
 443+** other # 2.6%
 444+* Panama
 445+** es # 70.2%
 446+** en # 25.8%
 447+** portal # 2.4%
 448+** other # 1.6%
 449+* Macedonia
 450+** en # 66.3%
 451+** mk # 14.7%
 452+** portal # 5.8%
 453+** sr # 4.3%
 454+** sq # 1.4%
 455+** hr # 1.4%
 456+** other # 6.1%
 457+* Bolivia
 458+** es # 84.0%
 459+** en # 12.2%
 460+** portal # 1.2%
 461+** pt # 1.0%
 462+** other # 1.6%
 463+* Moldova, Republic of
 464+** ru # 52.0%
 465+** en # 25.0%
 466+** ro # 14.9%
 467+** portal # 4.3%
 468+** fr # 1.0%
 469+** other # 2.8%
 470+* El Salvador
 471+** es # 82.2%
 472+** en # 15.4%
 473+** portal # 1.4%
 474+** other # 1.0%
 475+* Bangladesh
 476+** en # 91.1%
 477+** portal # 4.8%
 478+** bn # 2.1%
 479+** other # 2.0%
 480+* Luxembourg
 481+** de # 39.7%
 482+** fr # 25.5%
 483+** en # 24.9%
 484+** portal # 2.0%
 485+** lb # 1.3%
 486+** it # 1.2%
 487+** pt # 1.0%
 488+** other # 4.4%
 489+* Qatar
 490+** en # 80.0%
 491+** ar # 10.2%
 492+** portal # 5.0%
 493+** fr # 1.0%
 494+** other # 3.8%
 495+* Sri Lanka
 496+** en # 91.3%
 497+** portal # 3.6%
 498+** ta # 2.4%
 499+** si # 1.1%
 500+** other # 1.6%
 501+* Jordan
 502+** en # 55.1%
 503+** ar # 37.1%
 504+** portal # 4.5%
 505+** other # 3.3%
 506+* Paraguay
 507+** es # 81.8%
 508+** en # 12.0%
 509+** portal # 1.7%
 510+** pt # 1.6%
 511+** de # 1.2%
 512+** other # 1.7%
 513+* Nigeria
 514+** en # 90.9%
 515+** portal # 5.3%
 516+** other # 3.8%
 517+* Trinidad and Tobago
 518+** en # 87.5%
 519+** portal # 11.6%
 520+** other # 0.9%
 521+* Iceland
 522+** en # 76.8%
 523+** is # 9.6%
 524+** portal # 6.9%
 525+** de # 1.3%
 526+** pl # 1.1%
 527+** ru # 1.1%
 528+** other # 3.2%
 529+* Cyprus
 530+** en # 74.5%
 531+** el # 12.8%
 532+** portal # 4.2%
 533+** ru # 3.2%
 534+** other # 5.3%
 535+* Honduras
 536+** es # 76.0%
 537+** en # 20.5%
 538+** portal # 2.6%
 539+** other # 0.9%
 540+* Azerbaijan
 541+** ru # 42.8%
 542+** en # 27.0%
 543+** az # 17.6%
 544+** tr # 6.8%
 545+** portal # 3.6%
 546+** other # 2.2%
 547+* Kenya
 548+** en # 89.6%
 549+** portal # 5.3%
 550+** fr # 1.8%
 551+** other # 3.3%
 552+* Albania
 553+** en # 66.8%
 554+** sq # 16.9%
 555+** it # 6.1%
 556+** portal # 3.8%
 557+** de # 2.0%
 558+** other # 4.4%
 559+* Jamaica
 560+** en # 85.6%
 561+** portal # 13.4%
 562+** other # 1.0%
 563+* Malta
 564+** en # 87.6%
 565+** portal # 5.1%
 566+** it # 2.0%
 567+** de # 1.1%
 568+** other # 4.2%
 569+* Mauritius
 570+** en # 72.8%
 571+** fr # 13.7%
 572+** portal # 11.4%
 573+** other # 2.1%
 574+* Lebanon
 575+** en # 70.9%
 576+** fr # 12.7%
 577+** ar # 9.1%
 578+** portal # 4.9%
 579+** other # 2.4%
 580+* Nicaragua
 581+** es # 77.3%
 582+** en # 18.5%
 583+** portal # 1.9%
 584+** other # 2.3%
 585+* Macao
 586+** zh # 70.2%
 587+** en # 22.7%
 588+** portal # 1.9%
 589+** ja # 1.8%
 590+** yue # 1.3%
 591+** pt # 1.0%
 592+** other # 1.1%
 593+* Oman
 594+** en # 73.5%
 595+** ar # 20.1%
 596+** portal # 3.5%
 597+** other # 2.9%
 598+* Ghana
 599+** en # 86.1%
 600+** portal # 10.0%
 601+** fr # 1.2%
 602+** other # 2.7%
 603+* Iraq
 604+** en # 59.4%
 605+** ar # 29.9%
 606+** portal # 5.1%
 607+** ckb # 1.0%
 608+** other # 4.6%
 609+* Nepal
 610+** en # 88.7%
 611+** portal # 6.2%
 612+** ne # 2.0%
 613+** other # 3.1%
 614+* Montenegro
 615+** en # 57.5%
 616+** sr # 19.9%
 617+** portal # 6.0%
 618+** hr # 5.3%
 619+** sc # 2.6%
 620+** ru # 2.3%
 621+** bs # 2.1%
 622+** other # 4.3%
 623+* Armenia
 624+** ru # 43.7%
 625+** en # 33.4%
 626+** hy # 12.3%
 627+** portal # 6.8%
 628+** other # 3.8%
 629+* Uzbekistan
 630+** ru # 74.0%
 631+** en # 18.7%
 632+** portal # 2.5%
 633+** uz # 1.7%
 634+** other # 3.1%
 635+* Palestinian Territory
 636+** ar # 50.9%
 637+** en # 42.2%
 638+** portal # 3.4%
 639+** other # 3.5%
 640+* Bahrain
 641+** en # 66.1%
 642+** ar # 16.2%
 643+** ru # 11.6%
 644+** portal # 3.3%
 645+** other # 2.8%
 646+* Senegal
 647+** fr # 66.7%
 648+** en # 21.4%
 649+** portal # 3.5%
 650+** pt # 1.3%
 651+** de # 1.0%
 652+** other # 6.1%
 653+* Mongolia
 654+** en # 66.6%
 655+** mn # 13.4%
 656+** portal # 7.9%
 657+** ru # 7.1%
 658+** ja # 1.4%
 659+** de # 1.4%
 660+** other # 2.2%
 661+* Brunei Darussalam
 662+** en # 84.4%
 663+** portal # 9.7%
 664+** ms # 2.5%
 665+** id # 1.2%
 666+** zh # 1.2%
 667+** other # 1.0%
 668+* Cambodia
 669+** en # 76.8%
 670+** portal # 7.2%
 671+** fr # 4.1%
 672+** km # 3.5%
 673+** zh # 1.9%
 674+** ja # 1.8%
 675+** de # 1.2%
 676+** other # 3.5%
 677+* Sudan
 678+** en # 59.4%
 679+** ar # 31.2%
 680+** portal # 5.6%
 681+** other # 3.8%
 682+* Bahamas
 683+** en # 85.8%
 684+** portal # 12.5%
 685+** other # 1.7%
 686+* Côte d
 687+** fr # 76.3%
 688+** en # 15.9%
 689+** portal # 3.3%
 690+** other # 4.5%
 691+* Barbados
 692+** en # 89.5%
 693+** portal # 9.3%
 694+** other # 1.2%
 695+* Angola
 696+** pt # 72.3%
 697+** en # 18.8%
 698+** fr # 2.3%
 699+** portal # 2.0%
 700+** es # 1.8%
 701+** other # 2.8%
 702+* Cameroon
 703+** fr # 62.0%
 704+** en # 31.3%
 705+** portal # 4.4%
 706+** other # 2.3%
 707+* Netherlands Antilles
 708+** en # 70.7%
 709+** nl # 15.3%
 710+** portal # 5.4%
 711+** es # 4.0%
 712+** fr # 2.4%
 713+** other # 2.2%
 714+* Tanzania, United Republic of
 715+** en # 89.2%
 716+** portal # 3.2%
 717+** sw # 1.8%
 718+** fr # 1.4%
 719+** de # 1.2%
 720+** other # 3.2%
 721+* Uganda
 722+** en # 93.7%
 723+** portal # 3.2%
 724+** other # 3.1%
 725+* Guam
 726+** en # 87.5%
 727+** portal # 7.8%
 728+** ja # 3.1%
 729+** other # 1.6%
 730+* Kyrgyzstan
 731+** ru # 71.9%
 732+** en # 20.0%
 733+** portal # 3.4%
 734+** ky # 1.2%
 735+** other # 3.5%
 736+* Maldives
 737+** en # 84.1%
 738+** portal # 11.4%
 739+** other # 4.5%
 740+* Libyan Arab Jamahiriya
 741+** en # 58.5%
 742+** ar # 35.3%
 743+** portal # 1.6%
 744+** fr # 1.0%
 745+** other # 3.6%
 746+* Mozambique
 747+** pt # 62.5%
 748+** en # 28.9%
 749+** portal # 2.5%
 750+** es # 1.6%
 751+** fr # 1.0%
 752+** other # 3.5%
 753+* Yemen
 754+** en # 51.4%
 755+** ar # 41.4%
 756+** portal # 3.4%
 757+** other # 3.8%
 758+* Cuba
 759+** es # 79.0%
 760+** en # 16.8%
 761+** portal # 1.5%
 762+** other # 2.7%
 763+* Madagascar
 764+** fr # 77.5%
 765+** en # 17.8%
 766+** portal # 2.1%
 767+** other # 2.6%
 768+* Ethiopia
 769+** en # 92.1%
 770+** portal # 3.1%
 771+** am # 1.5%
 772+** other # 3.3%
 773+* Fiji
 774+** en # 93.2%
 775+** portal # 3.2%
 776+** other # 3.6%
 777+* Afghanistan
 778+** en # 68.3%
 779+** fa # 18.1%
 780+** portal # 5.3%
 781+** de # 2.0%
 782+** ps # 1.0%
 783+** other # 5.3%
 784+* Suriname
 785+** en # 61.3%
 786+** nl # 29.2%
 787+** portal # 6.6%
 788+** other # 2.9%
 789+* Haiti
 790+** fr # 58.2%
 791+** en # 30.6%
 792+** portal # 5.0%
 793+** es # 2.7%
 794+** pt # 1.3%
 795+** other # 2.2%
 796+* Isle of Man
 797+** en # 94.2%
 798+** portal # 4.0%
 799+** other # 1.8%
 800+* Botswana
 801+** en # 85.9%
 802+** portal # 11.8%
 803+** other # 2.3%
 804+* Jersey
 805+** en # 91.6%
 806+** portal # 5.4%
 807+** pl # 1.1%
 808+** other # 1.9%
 809+* Namibia
 810+** en # 80.8%
 811+** de # 6.3%
 812+** portal # 5.4%
 813+** pt # 3.5%
 814+** other # 4.0%
 815+* Guyana
 816+** en # 86.5%
 817+** portal # 12.0%
 818+** other # 1.5%
 819+* Aruba
 820+** en # 75.7%
 821+** nl # 12.2%
 822+** es # 6.0%
 823+** portal # 4.3%
 824+** other # 1.8%
 825+* Belize
 826+** en # 81.2%
 827+** portal # 7.6%
 828+** es # 7.1%
 829+** pt # 1.7%
 830+** zh # 1.2%
 831+** other # 1.2%
 832+* Zimbabwe
 833+** en # 94.0%
 834+** portal # 4.4%
 835+** other # 1.6%
 836+* Syrian Arab Republic
 837+** en # 60.4%
 838+** portal # 24.7%
 839+** ar # 6.8%
 840+** fr # 2.3%
 841+** arz # 1.2%
 842+** de # 1.0%
 843+** other # 3.6%
 844+* Bermuda
 845+** en # 91.8%
 846+** portal # 6.7%
 847+** other # 1.5%
 848+* Faroe Islands
 849+** en # 74.4%
 850+** da # 14.4%
 851+** portal # 5.2%
 852+** fa # 2.5%
 853+** other # 3.5%
 854+* Liechtenstein
 855+** de # 82.6%
 856+** en # 11.7%
 857+** portal # 2.0%
 858+** other # 3.7%
 859+* Guernsey
 860+** en # 93.3%
 861+** portal # 4.7%
 862+** other # 2.0%
 863+* Lao People
 864+** en # 60.0%
 865+** th # 12.4%
 866+** portal # 9.3%
 867+** fr # 4.6%
 868+** ja # 3.5%
 869+** lo # 2.3%
 870+** vi # 2.1%
 871+** de # 1.8%
 872+** zh # 1.3%
 873+** other # 2.7%
 874+* Cayman Islands
 875+** en # 88.9%
 876+** portal # 8.7%
 877+** other # 2.4%
 878+* Andorra
 879+** es # 58.0%
 880+** en # 18.8%
 881+** ca # 8.8%
 882+** fr # 8.6%
 883+** pt # 1.9%
 884+** portal # 1.6%
 885+** other # 2.3%
 886+* Saint Vincent and the Grenadines
 887+** en # 87.4%
 888+** portal # 10.1%
 889+** other # 2.5%
 890+* Grenada
 891+** en # 89.0%
 892+** portal # 9.5%
 893+** other # 1.5%
 894+* Mali
 895+** fr # 77.9%
 896+** en # 16.9%
 897+** portal # 1.5%
 898+** other # 3.7%
 899+* Gibraltar
 900+** en # 89.4%
 901+** portal # 4.1%
 902+** es # 2.2%
 903+** de # 1.6%
 904+** other # 2.7%
 905+* Virgin Islands, U.S.
 906+** en # 91.6%
 907+** portal # 7.2%
 908+** other # 1.2%
 909+* Monaco
 910+** fr # 57.2%
 911+** en # 30.1%
 912+** it # 5.0%
 913+** portal # 1.9%
 914+** de # 1.8%
 915+** ru # 1.0%
 916+** other # 3.0%
 917+* Burkina Faso
 918+** fr # 77.7%
 919+** en # 16.9%
 920+** portal # 2.0%
 921+** other # 3.4%
 922+* Djibouti
 923+** en # 54.1%
 924+** fr # 37.5%
 925+** portal # 2.7%
 926+** ar # 2.2%
 927+** other # 3.5%
 928+* Zambia
 929+** en # 89.9%
 930+** portal # 5.2%
 931+** ja # 1.1%
 932+** other # 3.8%
 933+* Rwanda
 934+** en # 73.2%
 935+** fr # 20.1%
 936+** portal # 3.5%
 937+** other # 3.2%
 938+* Saint Kitts and Nevis
 939+** en # 87.0%
 940+** portal # 11.5%
 941+** other # 1.5%
 942+* Antigua and Barbuda
 943+** en # 81.4%
 944+** portal # 16.9%
 945+** other # 1.7%
 946+* Congo - The Democratic Republic of the
 947+** fr # 77.7%
 948+** en # 16.4%
 949+** portal # 3.4%
 950+** other # 2.5%
 951+* Myanmar
 952+** en # 85.6%
 953+** portal # 9.0%
 954+** my # 2.3%
 955+** other # 3.1%
 956+* Gabon
 957+** fr # 80.8%
 958+** en # 13.3%
 959+** portal # 2.1%
 960+** es # 1.0%
 961+** other # 2.8%
 962+* Aland Islands
 963+** sv # 53.2%
 964+** en # 39.3%
 965+** fi # 2.9%
 966+** portal # 2.0%
 967+** de # 1.1%
 968+** other # 1.5%
 969+* Benin
 970+** fr # 74.7%
 971+** en # 18.7%
 972+** portal # 3.2%
 973+** other # 3.4%
 974+* Cape Verde
 975+** pt # 63.9%
 976+** en # 24.2%
 977+** portal # 3.8%
 978+** it # 2.4%
 979+** es # 2.0%
 980+** fr # 1.8%
 981+** other # 1.9%
 982+* Dominica
 983+** en # 92.7%
 984+** portal # 5.1%
 985+** other # 2.2%
 986+* San Marino
 987+** it # 81.7%
 988+** en # 15.6%
 989+** other # 2.7%
 990+* Tajikistan
 991+** ru # 66.9%
 992+** en # 24.1%
 993+** portal # 2.9%
 994+** tg # 1.3%
 995+** de # 1.0%
 996+** fa # 1.0%
 997+** other # 2.8%
 998+* Mauritania
 999+** fr # 54.6%
 1000+** en # 22.8%
 1001+** ar # 17.1%
 1002+** portal # 2.3%
 1003+** other # 3.2%
 1004+* Togo
 1005+** fr # 70.0%
 1006+** en # 21.6%
 1007+** portal # 4.6%
 1008+** de # 1.4%
 1009+** other # 2.4%
 1010+* Papua New Guinea
 1011+** en # 95.7%
 1012+** portal # 1.9%
 1013+** other # 2.4%
 1014+* Malawi
 1015+** en # 89.7%
 1016+** portal # 5.8%
 1017+** de # 1.4%
 1018+** other # 3.1%
 1019+* Northern Mariana Islands
 1020+** en # 83.7%
 1021+** portal # 6.9%
 1022+** ja # 6.3%
 1023+** zh # 1.6%
 1024+** other # 1.5%
 1025+* Bhutan
 1026+** en # 91.2%
 1027+** portal # 6.3%
 1028+** ja # 1.1%
 1029+** other # 1.4%
 1030+* Saint Lucia
 1031+** en # 83.8%
 1032+** portal # 14.0%
 1033+** other # 2.2%
 1034+* Virgin Islands, British
 1035+** en # 88.1%
 1036+** portal # 9.9%
 1037+** other # 2.0%
 1038+* Greenland
 1039+** en # 54.5%
 1040+** da # 37.2%
 1041+** portal # 3.8%
 1042+** kl # 1.7%
 1043+** de # 1.1%
 1044+** other # 1.7%
 1045+* Seychelles
 1046+** en # 77.8%
 1047+** portal # 8.5%
 1048+** fr # 6.9%
 1049+** de # 1.7%
 1050+** ru # 1.3%
 1051+** other # 3.8%
 1052+* Niger
 1053+** fr # 70.9%
 1054+** en # 21.4%
 1055+** portal # 4.2%
 1056+** other # 3.5%
 1057+* Gambia
 1058+** en # 84.5%
 1059+** portal # 7.2%
 1060+** fr # 2.4%
 1061+** de # 1.6%
 1062+** other # 4.3%
 1063+* Anguilla
 1064+** en # 79.6%
 1065+** portal # 17.9%
 1066+** es # 1.0%
 1067+** other # 1.5%
 1068+* Turks and Caicos Islands
 1069+** en # 90.6%
 1070+** portal # 5.3%
 1071+** fr # 1.4%
 1072+** es # 1.3%
 1073+** other # 1.4%
 1074+* Lesotho
 1075+** en # 93.5%
 1076+** portal # 3.3%
 1077+** other # 3.2%
 1078+* Swaziland
 1079+** en # 92.1%
 1080+** portal # 3.7%
 1081+** zh # 1.2%
 1082+** other # 3.0%
 1083+* Reunion
 1084+** fr # 92.1%
 1085+** en # 6.2%
 1086+** other # 1.7%
 1087+* Guadeloupe
 1088+** fr # 78.5%
 1089+** en # 17.0%
 1090+** portal # 3.0%
 1091+** other # 1.5%
 1092+* Liberia
 1093+** en # 75.2%
 1094+** fr # 17.3%
 1095+** portal # 2.3%
 1096+** ru # 1.2%
 1097+** other # 4.0%
 1098+* Turkmenistan
 1099+** ru # 62.0%
 1100+** en # 25.8%
 1101+** tr # 3.6%
 1102+** portal # 2.4%
 1103+** fr # 1.8%
 1104+** tk # 1.0%
 1105+** other # 3.4%
 1106+* Timor-Leste
 1107+** en # 47.2%
 1108+** id # 23.5%
 1109+** pt # 17.3%
 1110+** portal # 4.2%
 1111+** es # 2.8%
 1112+** ms # 1.3%
 1113+** other # 3.7%
 1114+* Equatorial Guinea
 1115+** es # 47.5%
 1116+** en # 25.8%
 1117+** fr # 13.2%
 1118+** portal # 6.1%
 1119+** de # 1.8%
 1120+** ar # 1.5%
 1121+** other # 4.1%
 1122+* Vanuatu
 1123+** en # 78.7%
 1124+** fr # 12.8%
 1125+** portal # 3.3%
 1126+** ja # 1.4%
 1127+** zh # 1.2%
 1128+** other # 2.6%
 1129+* Tonga
 1130+** en # 84.6%
 1131+** portal # 9.0%
 1132+** ja # 2.9%
 1133+** to # 1.5%
 1134+** de # 1.2%
 1135+** other # 0.8%
 1136+* American Samoa
 1137+** en # 87.7%
 1138+** portal # 10.0%
 1139+** zh # 1.1%
 1140+** other # 1.2%
 1141+* Holy See (Vatican City State)
 1142+** en # 55.9%
 1143+** it # 28.4%
 1144+** de # 4.2%
 1145+** portal # 3.6%
 1146+** fr # 2.2%
 1147+** es # 1.2%
 1148+** pl # 1.2%
 1149+** other # 3.3%
 1150+* Solomon Islands
 1151+** en # 90.5%
 1152+** portal # 4.0%
 1153+** ja # 3.5%
 1154+** other # 2.0%
 1155+* Sierra Leone
 1156+** en # 92.4%
 1157+** portal # 3.0%
 1158+** fr # 2.4%
 1159+** other # 2.2%
 1160+* Eritrea
 1161+** en # 92.3%
 1162+** portal # 2.4%
 1163+** it # 2.3%
 1164+** other # 3.0%
 1165+* Guinea
 1166+** fr # 77.2%
 1167+** en # 17.5%
 1168+** portal # 1.2%
 1169+** es # 1.1%
 1170+** other # 3.0%
 1171+* Burundi
 1172+** fr # 65.0%
 1173+** en # 27.9%
 1174+** portal # 2.0%
 1175+** de # 1.5%
 1176+** it # 1.1%
 1177+** other # 2.5%
 1178+* Samoa
 1179+** en # 95.0%
 1180+** portal # 1.5%
 1181+** ja # 1.1%
 1182+** other # 2.4%
 1183+* Micronesia, Federated States of
 1184+** en # 89.8%
 1185+** portal # 5.0%
 1186+** ja # 3.0%
 1187+** other # 2.2%
 1188+* Congo
 1189+** fr # 80.8%
 1190+** en # 12.6%
 1191+** it # 2.4%
 1192+** portal # 1.7%
 1193+** other # 2.5%
 1194+* Marshall Islands
 1195+** en # 88.6%
 1196+** ja # 8.4%
 1197+** portal # 2.0%
 1198+** zh # 1.0%
 1199+* Cook Islands
 1200+** en # 92.5%
 1201+** portal # 4.3%
 1202+** de # 1.8%
 1203+** other # 1.4%
 1204+* Somalia
 1205+** en # 86.7%
 1206+** ar # 5.2%
 1207+** fr # 3.3%
 1208+** portal # 2.2%
 1209+** so # 1.5%
 1210+** other # 1.1%
 1211+* Central African Republic
 1212+** fr # 72.4%
 1213+** en # 21.6%
 1214+** it # 2.2%
 1215+** zh # 1.5%
 1216+** portal # 1.1%
 1217+** other # 1.2%
 1218+* Palau
 1219+** en # 82.7%
 1220+** ja # 8.8%
 1221+** zh # 3.8%
 1222+** portal # 3.5%
 1223+** other # 1.2%
 1224+* Chad
 1225+** fr # 61.3%
 1226+** en # 29.8%
 1227+** portal # 3.2%
 1228+** ar # 2.8%
 1229+** zh # 1.2%
 1230+** other # 1.7%
 1231+* Falkland Islands (Malvinas)
 1232+** en # 93.1%
 1233+** portal # 4.9%
 1234+** es # 1.6%
 1235+* Sao Tome and Principe
 1236+** pt # 63.2%
 1237+** en # 14.5%
 1238+** portal # 13.2%
 1239+** es # 4.1%
 1240+** zh # 2.1%
 1241+** fr # 1.2%
 1242+** other # 1.7%
 1243+* Comoros
 1244+** fr # 84.4%
 1245+** en # 11.4%
 1246+** ar # 1.3%
 1247+** other # 2.9%
 1248+* Kiribati
 1249+** en # 96.0%
 1250+** portal # 2.2%
 1251+** zh # 1.3%
 1252+* United States Minor Outlying Islands
 1253+** en # 94.7%
 1254+** portal # 3.9%
 1255+** other # 1.4%
 1256+* Montserrat
 1257+** en # 84.6%
 1258+** portal # 14.6%
 1259+* British Indian Ocean Territory
 1260+** en # 92.7%
 1261+** portal # 7.3%
 1262+* Korea, Democratic People
 1263+** en # 64.1%
 1264+** ko # 9.7%
 1265+** ru # 8.7%
 1266+** ja # 6.8%
 1267+** zh # 4.9%
 1268+** no # 1.9%
 1269+** tr # 1.0%
 1270+** de # 1.0%
 1271+** ar # 1.0%
 1272+** simple # 1.0%
Property changes on: trunk/tools/language-breakdown/work.txt
___________________________________________________________________
Added: svn:eol-style
11273 + native
Index: trunk/tools/language-breakdown/slurp-breakdown.php
——@@ -0,0 +1,64 @@
 2+<?php
 3+
 4+require "langs.php";
 5+
 6+$url = "http://stats.wikimedia.org/wikimedia/squids/SquidReportPageViewsPerCountryBreakdown.htm";
 7+
 8+$file = file_get_contents($url);
 9+if (!$file) {
 10+ die("http fetch error\n");
 11+}
 12+
 13+$dom = new DOMDocument();
 14+error_reporting(0);
 15+if (!$dom->loadHTML($file)) {
 16+ die("parse error\n");
 17+}
 18+error_reporting(E_ALL);
 19+
 20+$tables = $dom->getElementsByTagName('table');
 21+$table = $tables->item(1); // skip first table, is a header
 22+
 23+$data = array();
 24+$row = array();
 25+
 26+foreach ($table->childNodes as $node) {
 27+ if ($node->nodeName !== 'tr') {
 28+ continue;
 29+ }
 30+
 31+ $th = $node->getElementsByTagName('th')->item(0);
 32+ if (!$th) {
 33+ continue;
 34+ }
 35+
 36+ $class = $th->getAttribute('class');
 37+ if ($class == 'lh3') {
 38+ // new country
 39+ $a = $node->getElementsByTagName('a')->item(0);
 40+ $countryName = $a->getAttribute('name');
 41+ echo "* $countryName\n";
 42+ $data[$countryName] = $row;
 43+ $row = array();
 44+ } else if ($class == 'l') {
 45+ // language entry
 46+ $language = $langs[$th->textContent];
 47+ $td = $node->getElementsByTagName('td')->item(0);
 48+ $percent = $td->textContent;
 49+ $row[$language] = $percent;
 50+ //$langs[$language] = $language;
 51+ echo "** $language # $percent\n";
 52+ } else {
 53+ die("unknown node? th class $class\n");
 54+ }
 55+}
 56+
 57+/*
 58+
 59+echo "\n\n\n";
 60+sort($langs);
 61+foreach($langs as $lang) {
 62+ echo "'$lang' => '',\n";
 63+}
 64+*/
 65+
Property changes on: trunk/tools/language-breakdown/slurp-breakdown.php
___________________________________________________________________
Added: svn:eol-style
166 + native
Index: trunk/tools/language-breakdown/langs.php
——@@ -0,0 +1,80 @@
 2+<?php
 3+
 4+$langs = array(
 5+'Afrikaans Wp' => 'af',
 6+'Albanian Wp' => 'sq',
 7+'Amharic Wp' => 'am',
 8+'Arabic Wp' => 'ar',
 9+'Armenian Wp' => 'hy',
 10+'Azeri Wp' => 'az',
 11+'Bengali Wp' => 'bn',
 12+'Bosnian Wp' => 'bs',
 13+'Bulgarian Wp' => 'bg',
 14+'Burmese Wp' => 'my',
 15+'Cantonese Wp' => 'yue',
 16+'Catalan Wp' => 'ca',
 17+'Chinese Wp' => 'zh',
 18+'Croatian Wp' => 'hr',
 19+'Czech Wp' => 'cs',
 20+'Danish Wp' => 'da',
 21+'Dutch Wp' => 'nl',
 22+'Egyptian Arabic Wp' => 'arz',
 23+'English Wp' => 'en',
 24+'Estonian Wp' => 'es',
 25+'Faroese Wp' => 'fa',
 26+'Finnish Wp' => 'fi',
 27+'French Wp' => 'fr',
 28+'Georgian Wp' => 'ka',
 29+'German Wp' => 'de',
 30+'Greek Wp' => 'el',
 31+'Greenlandic Wp' => 'kl',
 32+'Hebrew Wp' => 'he',
 33+'Hungarian Wp' => 'hu',
 34+'Icelandic Wp' => 'is',
 35+'Indonesian Wp' => 'id',
 36+'Italian Wp' => 'it',
 37+'Japanese Wp' => 'ja',
 38+'Kazakh Wp' => 'kz',
 39+'Khmer Wp' => 'km',
 40+'Kirghiz Wp' => 'ky',
 41+'Korean Wp' => 'ko',
 42+'Laotian Wp' => 'lo',
 43+'Latvian Wp' => 'lv',
 44+'Lithuanian Wp' => 'lt',
 45+'Luxembourgish Wp' => 'lb',
 46+'Macedonian Wp' => 'mk',
 47+'Malay Wp' => 'ms',
 48+'Mongolian Wp' => 'mn',
 49+'Nepali Wp' => 'ne',
 50+'Norwegian Wp' => 'no',
 51+'Other' => 'other',
 52+'Pashto Wp' => 'ps',
 53+'Persian Wp' => 'fa',
 54+'Polish Wp' => 'pl',
 55+'Portal' => 'portal',
 56+'Portuguese Wp' => 'pt',
 57+'Romanian Wp' => 'ro',
 58+'Russian Wp' => 'ru',
 59+'Serbian Wp' => 'sr',
 60+'Serbo-Croatian Wp' => 'sc',
 61+'Simple English Wp' => 'simple',
 62+'Sinhala Wp' => 'si',
 63+'Slovak Wp' => 'sk',
 64+'Slovene Wp' => 'sl',
 65+'Somali Wp' => 'so',
 66+'Sorani Wp' => 'ckb',
 67+'Spanish Wp' => 'es',
 68+'Swahili Wp' => 'sw',
 69+'Swedish Wp' => 'sv',
 70+'Tagalog Wp' => 'tl',
 71+'Tajik Wp' => 'tg',
 72+'Tamil Wp' => 'ta',
 73+'Thai Wp' => 'th',
 74+'Tongan Wp' => 'to',
 75+'Turkish Wp' => 'tr',
 76+'Turkmen Wp' => 'tk',
 77+'Ukrainian Wp' => 'uk',
 78+'Uzbek Wp' => 'uz',
 79+'Vietnamese Wp' => 'vi',
 80+);
 81+
Property changes on: trunk/tools/language-breakdown/langs.php
___________________________________________________________________
Added: svn:eol-style
182 + native
Index: trunk/tools/language-breakdown/README
——@@ -0,0 +1,6 @@
 2+Quickie program to extract per-country language view breakdowns from
 3+http://stats.wikimedia.org/wikimedia/squids/SquidReportPageViewsPerCountryBreakdown.htm
 4+
 5+and output a quick set of blobs
 6+
 7+

Follow-up revisions

RevisionCommit summaryAuthorDate
r107837Es -> et, ping r106976demon15:47, 2 January 2012

Comments

#Comment by Nikerabbit (talk | contribs)   07:09, 22 December 2011
+'Estonian Wp' => 'es',

Should be et.

Status & tagging log