| Index: trunk/pywikipedia/families/wiktionary_family.py |
| — | — | @@ -425,21 +425,65 @@ |
| 426 | 426 | 'en': u'Sign gloss talk', |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | | - # Other than most Wikipedias, page names must not start with a capital |
| 430 | | - # letter on ALL Wiktionaries. |
| 431 | | - self.nocapitalize = self.langs.keys() |
| 432 | | - |
| 433 | | - # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementation |
| 434 | | - self.cross_allowed = [ |
| 435 | | - 'ang', 'ast', 'az', 'bg', 'bn', 'da', 'eo', 'es', 'fa', 'fy', 'ga', 'gd', 'hu', |
| 436 | | - 'ia', 'ie', 'ik', 'jv', 'ka', 'li', 'lt', 'mk', 'nl', 'no', 'oc', 'pt', 'sk', 'tg', 'th', 'ti', |
| 437 | | - 'ts', 'ug', 'uk', 'vo', 'za', 'zh-min-nan', 'zh', 'zu', |
| 438 | | - ] |
| 439 | 429 | # CentralAuth cross avaliable projects. |
| 440 | 430 | self.cross_projects = [ |
| 441 | 431 | 'wikipedia', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', |
| 442 | 432 | 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' |
| 443 | 433 | ] |
| | 434 | + # Global bot allowed languages on |
| | 435 | + # http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementation |
| | 436 | + self.cross_allowed = [ |
| | 437 | + 'ang', 'ast', 'az', 'bg', 'bn', 'da', 'eo', 'es', 'fa', 'fy', 'ga', |
| | 438 | + 'gd', 'hu', 'ia', 'ie', 'ik', 'jv', 'ka', 'li', 'lt', 'mk', 'nl', |
| | 439 | + 'no', 'oc', 'pt', 'sk', 'tg', 'th', 'ti', 'ts', 'ug', 'uk', 'vo', |
| | 440 | + 'za', 'zh-min-nan', 'zh', 'zu', |
| | 441 | + ] |
| | 442 | + |
| | 443 | + # Other than most Wikipedias, page names must not start with a capital |
| | 444 | + # letter on ALL Wiktionaries. |
| | 445 | + self.nocapitalize = self.langs.keys() |
| | 446 | + |
| | 447 | + self.alphabetic_roman = [ |
| | 448 | + 'aa', 'af', 'ak', 'als', 'an', 'roa-rup', 'ast', 'gn', 'ay', 'az', |
| | 449 | + 'id', 'ms', 'bm', 'zh-min-nan', 'jv', 'su', 'mt', 'bi', 'bo', 'bs', |
| | 450 | + 'br', 'ca', 'cs', 'ch', 'sn', 'co', 'za', 'cy', 'da', 'de', 'na', |
| | 451 | + 'mh', 'et', 'ang', 'en', 'es', 'eo', 'eu', 'to', 'fr', 'fy', 'fo', |
| | 452 | + 'ga', 'gv', 'sm', 'gd', 'gl', 'hr', 'io', 'ia', 'ie', 'ik', 'xh', |
| | 453 | + 'is', 'zu', 'it', 'kl', 'csb', 'kw', 'rw', 'rn', 'sw', 'ky', 'ku', |
| | 454 | + 'la', 'lv', 'lb', 'lt', 'li', 'ln', 'jbo', 'hu', 'mg', 'mi', 'mo', |
| | 455 | + 'my', 'fj', 'nah', 'nl', 'cr', 'no', 'nn', 'hsb', 'oc', 'om', 'ug', |
| | 456 | + 'uz', 'nds', 'pl', 'pt', 'ro', 'rm', 'qu', 'sg', 'sc', 'st', 'tn', |
| | 457 | + 'sq', 'scn', 'simple', 'ss', 'sk', 'sl', 'so', 'sh', 'fi', 'sv', |
| | 458 | + 'tl', 'tt', 'vi', 'tpi', 'tr', 'tw', 'vo', 'wa', 'wo', 'ts', 'yo', |
| | 459 | + 'el', 'av', 'ab', 'ba', 'be', 'bg', 'mk', 'mn', 'ru', 'sr', 'tg', |
| | 460 | + 'uk', 'kk', 'hy', 'yi', 'he', 'ur', 'ar', 'tk', 'sd', 'fa', 'ha', |
| | 461 | + 'ps', 'dv', 'ks', 'ne', 'pi', 'bh', 'mr', 'sa', 'hi', 'as', 'bn', |
| | 462 | + 'pa', 'gu', 'or', 'ta', 'te', 'kn', 'ml', 'si', 'th', 'lo', 'dz', |
| | 463 | + 'ka', 'ti', 'am', 'chr', 'iu', 'km', 'zh', 'ja', 'ko', |
| | 464 | + ] |
| | 465 | + |
| | 466 | + |
| | 467 | + # Which languages have a special order for putting interlanguage links, |
| | 468 | + # and what order is it? If a language is not in interwiki_putfirst, |
| | 469 | + # alphabetical order on language code is used. For languages that are in |
| | 470 | + # interwiki_putfirst, interwiki_putfirst is checked first, and |
| | 471 | + # languages are put in the order given there. All other languages are put |
| | 472 | + # after those, in code-alphabetical order. |
| | 473 | + |
| | 474 | + self.interwiki_putfirst = { |
| | 475 | + 'da': self.alphabetic, |
| | 476 | + 'en': self.alphabetic, |
| | 477 | + 'et': self.alphabetic, |
| | 478 | + 'fi': self.alphabetic, |
| | 479 | + 'fy': self.fyinterwiki, |
| | 480 | + 'he': ['en'], |
| | 481 | + 'hu': ['en'], |
| | 482 | + 'ms': self.alphabetic_revised, |
| | 483 | + 'pl': self.alphabetic, |
| | 484 | + 'sv': self.alphabetic_roman, |
| | 485 | + 'simple': self.alphabetic, |
| | 486 | + } |
| | 487 | + |
| 444 | 488 | self.obsolete = { |
| 445 | 489 | 'aa': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Afar_Wiktionary |
| 446 | 490 | 'ab': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Abkhaz_Wiktionary |
| — | — | @@ -475,26 +519,6 @@ |
| 476 | 520 | 'zh-cn': 'zh' |
| 477 | 521 | } |
| 478 | 522 | |
| 479 | | - # Which languages have a special order for putting interlanguage links, |
| 480 | | - # and what order is it? If a language is not in interwiki_putfirst, |
| 481 | | - # alphabetical order on language code is used. For languages that are in |
| 482 | | - # interwiki_putfirst, interwiki_putfirst is checked first, and |
| 483 | | - # languages are put in the order given there. All other languages are put |
| 484 | | - # after those, in code-alphabetical order. |
| 485 | | - |
| 486 | | - self.interwiki_putfirst = { |
| 487 | | - 'da': self.alphabetic, |
| 488 | | - 'en': self.alphabetic, |
| 489 | | - 'et': self.alphabetic, |
| 490 | | - 'fi': self.alphabetic, |
| 491 | | - 'fy': self.fyinterwiki, |
| 492 | | - 'he': ['en'], |
| 493 | | - 'hu': ['en'], |
| 494 | | - 'ms': self.alphabetic_revised, |
| 495 | | - 'pl': self.alphabetic, |
| 496 | | - 'simple': self.alphabetic |
| 497 | | - } |
| 498 | | - |
| 499 | 523 | self.interwiki_on_one_line = ['pl'] |
| 500 | 524 | |
| 501 | 525 | self.interwiki_attop = ['pl'] |