lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
List overview
Download
Pywikipedia-svn
April 2011
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
pywikipedia-svn@lists.wikimedia.org
7 participants
62 discussions
Start a n
N
ew thread
SVN: [9192] branches/rewrite/pywikibot/families
by xqt@svn.wikimedia.org
23 Apr '11
23 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9192
Revision: 9192 Author: xqt Date: 2011-04-23 15:37:11 +0000 (Sat, 23 Apr 2011) Log Message: ----------- update language_by_size from trunk r9191 Modified Paths: -------------- branches/rewrite/pywikibot/families/wikibooks_family.py branches/rewrite/pywikibot/families/wikipedia_family.py branches/rewrite/pywikibot/families/wikiquote_family.py branches/rewrite/pywikibot/families/wikisource_family.py branches/rewrite/pywikibot/families/wiktionary_family.py Modified: branches/rewrite/pywikibot/families/wikibooks_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikibooks_family.py 2011-04-23 15:32:34 UTC (rev 9191) +++ branches/rewrite/pywikibot/families/wikibooks_family.py 2011-04-23 15:37:11 UTC (rev 9192) @@ -12,12 +12,12 @@ self.languages_by_size = [ 'en', 'de', 'fr', 'hu', 'ja', 'pt', 'nl', 'es', 'pl', 'it', 'he', - 'sq', 'fi', 'ca', 'ru', 'vi', 'cs', 'zh', 'hr', 'sv', 'tr', 'da', - 'id', 'ko', 'th', 'gl', 'fa', 'sr', 'tl', 'no', 'ar', 'mk', 'is', + 'sq', 'fi', 'ca', 'ru', 'vi', 'cs', 'zh', 'hr', 'sv', 'tr', 'ko', + 'da', 'id', 'th', 'gl', 'fa', 'sr', 'tl', 'no', 'mk', 'ar', 'is', 'ta', 'ka', 'lt', 'eo', 'bg', 'ro', 'sk', 'uk', 'el', 'az', 'si', 'li', 'la', 'tt', 'ang', 'ia', 'cv', 'sl', 'mr', 'et', 'ur', 'oc', - 'ml', 'bn', 'ms', 'hi', 'eu', 'fy', 'ie', 'tg', 'af', 'te', 'hy', - 'pa', 'ne', 'bs', 'sa', 'ky', 'be', 'ast', 'zh-min-nan', 'mg', 'cy', + 'ml', 'bn', 'ms', 'hi', 'eu', 'fy', 'ie', 'te', 'hy', 'tg', 'af', + 'ne', 'pa', 'bs', 'sa', 'ky', 'be', 'ast', 'zh-min-nan', 'mg', 'cy', 'ku', 'co', 'tk', 'su', 'uz', 'vo', 'kk', 'mn', 'my', ] Modified: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2011-04-23 15:32:34 UTC (rev 9191) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2011-04-23 15:37:11 UTC (rev 9192) @@ -12,32 +12,32 @@ self.languages_by_size = [ 'en', 'de', 'fr', 'pl', 'it', 'es', 'ja', 'ru', 'nl', 'pt', 'sv', - 'zh', 'ca', 'no', 'uk', 'fi', 'vi', 'cs', 'hu', 'ko', 'id', 'tr', - 'ro', 'da', 'ar', 'eo', 'sr', 'lt', 'fa', 'sk', 'vo', 'ms', 'he', - 'bg', 'sl', 'war', 'hr', 'hi', 'et', 'gl', 'simple', 'new', 'th', - 'eu', 'nn', 'roa-rup', 'el', 'az', 'ht', 'la', 'tl', 'ka', 'te', + 'zh', 'ca', 'no', 'uk', 'fi', 'vi', 'cs', 'hu', 'tr', 'id', 'ko', + 'ro', 'da', 'ar', 'eo', 'sr', 'lt', 'fa', 'sk', 'ms', 'vo', 'he', + 'bg', 'sl', 'war', 'hr', 'hi', 'et', 'eu', 'gl', 'simple', 'new', + 'th', 'nn', 'roa-rup', 'el', 'az', 'ht', 'la', 'tl', 'ka', 'te', 'mk', 'ceb', 'sh', 'pms', 'br', 'be-x-old', 'lv', 'mr', 'jv', 'lb', - 'cy', 'sq', 'is', 'bs', 'ta', 'be', 'an', 'bpy', 'oc', 'bn', 'io', - 'sw', 'lmo', 'fy', 'gu', 'kk', 'ml', 'af', 'nds', 'scn', 'ur', 'qu', - 'ku', 'zh-yue', 'su', 'ast', 'hy', 'nap', 'ne', 'yo', 'bat-smg', - 'cv', 'ga', 'wa', 'pnb', 'kn', 'tg', 'roa-tara', 'vec', 'tt', 'als', - 'yi', 'zh-min-nan', 'gd', 'bug', 'os', 'uz', 'sah', 'pam', 'arz', - 'am', 'mi', 'li', 'hsb', 'nah', 'sco', 'gan', 'co', 'glk', 'mn', - 'my', 'ia', 'bcl', 'fo', 'fiu-vro', 'si', 'nds-nl', 'vls', 'tk', - 'sa', 'bar', 'ckb', 'mg', 'gv', 'ilo', 'map-bms', 'dv', 'nrm', + 'cy', 'sq', 'is', 'bs', 'ta', 'be', 'an', 'bpy', 'oc', 'bn', 'kk', + 'io', 'sw', 'lmo', 'fy', 'gu', 'ml', 'af', 'nds', 'ur', 'scn', 'qu', + 'ku', 'zh-yue', 'su', 'ast', 'nap', 'hy', 'ne', 'yo', 'bat-smg', + 'cv', 'ga', 'wa', 'pnb', 'kn', 'tg', 'vec', 'roa-tara', 'tt', 'als', + 'zh-min-nan', 'yi', 'gd', 'bug', 'os', 'uz', 'sah', 'pam', 'am', + 'arz', 'mi', 'li', 'hsb', 'nah', 'sco', 'gan', 'mn', 'co', 'glk', + 'my', 'ia', 'bcl', 'fo', 'fiu-vro', 'si', 'nds-nl', 'sa', 'vls', + 'tk', 'bar', 'ckb', 'mg', 'gv', 'ilo', 'map-bms', 'dv', 'nrm', 'pag', 'diq', 'se', 'rm', 'mzn', 'wuu', 'fur', 'ug', 'lij', 'mt', - 'bo', 'bh', 'hif', 'ang', 'csb', 'nov', 'lad', 'km', 'sc', - 'zh-classical', 'mrj', 'cbk-zam', 'pi', 'ps', 'ksh', 'frp', 'hak', - 'kw', 'rue', 'mhr', 'nv', 'pa', 'szl', 'xal', 'rw', 'so', 'haw', - 'ie', 'pdc', 'stq', 'udm', 'ln', 'kv', 'krc', 'to', 'crh', 'pcd', - 'ace', 'ky', 'ext', 'myv', 'gn', 'ba', 'ce', 'eml', 'arc', 'pap', - 'ay', 'bjn', 'kl', 'jbo', 'wo', 'frr', 'tpi', 'kab', 'ty', 'srn', - 'zea', 'gag', 'ab', 'dsb', 'or', 'koi', 'lo', 'ig', 'av', 'mdf', - 'tet', 'kg', 'mwl', 'rmy', 'lbe', 'cu', 'ltg', 'kaa', 'kbd', 'sm', - 'got', 'ks', 'bm', 'pfl', 'ik', 'sd', 'bi', 'as', 'iu', 'na', 'pih', - 'pnt', 'ss', 'cdo', 'chr', 'ha', 'ee', 'ti', 'zu', 'bxr', 'om', - 'za', 've', 'ts', 'rn', 'sg', 'dz', 'cr', 'ch', 'lg', 'fj', 'ny', - 'tum', 'st', 'xh', 'ff', 'tn', 'ki', 'sn', 'ak', 'tw', 'chy', + 'bo', 'bh', 'mrj', 'hif', 'csb', 'ang', 'nov', 'lad', 'km', 'sc', + 'zh-classical', 'cbk-zam', 'pi', 'ps', 'ksh', 'frp', 'hak', 'kw', + 'udm', 'rue', 'mhr', 'nv', 'pa', 'szl', 'xal', 'so', 'rw', 'haw', + 'ie', 'stq', 'pdc', 'kv', 'ln', 'krc', 'to', 'crh', 'pcd', 'ace', + 'ky', 'ext', 'myv', 'gn', 'ba', 'ce', 'eml', 'arc', 'pap', 'ay', + 'bjn', 'kl', 'jbo', 'frr', 'wo', 'tpi', 'kab', 'ty', 'srn', 'zea', + 'gag', 'or', 'dsb', 'ab', 'koi', 'lo', 'ig', 'av', 'tet', 'mdf', + 'kg', 'mwl', 'rmy', 'lbe', 'cu', 'ltg', 'kaa', 'kbd', 'sm', 'got', + 'ks', 'bm', 'pfl', 'ik', 'sd', 'bi', 'as', 'iu', 'na', 'pih', 'pnt', + 'ss', 'chr', 'cdo', 'ha', 'ee', 'ti', 'zu', 'bxr', 'om', 'za', 've', + 'ts', 'rn', 'sg', 'dz', 'cr', 'tum', 'ch', 'lg', 'fj', 'ny', 'st', + 'xh', 'ff', 'tn', 'ki', 'sn', 'chy', 'ak', 'tw', ] for lang in self.languages_by_size: Modified: branches/rewrite/pywikibot/families/wikiquote_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikiquote_family.py 2011-04-23 15:32:34 UTC (rev 9191) +++ branches/rewrite/pywikibot/families/wikiquote_family.py 2011-04-23 15:37:11 UTC (rev 9192) @@ -12,11 +12,11 @@ self.languages_by_size = [ 'en', 'pl', 'it', 'de', 'ru', 'pt', 'sk', 'es', 'bg', 'bs', 'cs', - 'tr', 'fr', 'sl', 'he', 'lt', 'el', 'id', 'zh', 'fa', 'nl', 'hu', - 'uk', 'eo', 'fi', 'sv', 'no', 'nn', 'ja', 'hy', 'et', 'ca', 'ar', - 'li', 'cy', 'hr', 'ka', 'ko', 'sr', 'gl', 'ro', 'ku', 'ml', 'az', + 'tr', 'fr', 'sl', 'he', 'eo', 'lt', 'el', 'id', 'zh', 'fa', 'nl', + 'hu', 'uk', 'fi', 'sv', 'no', 'nn', 'ja', 'hy', 'et', 'ca', 'ar', + 'li', 'cy', 'hr', 'ka', 'ko', 'sr', 'gl', 'ro', 'ku', 'az', 'ml', 'is', 'th', 'te', 'da', 'eu', 'af', 'sq', 'vi', 'hi', 'la', 'br', - 'be', 'mr', 'ast', 'ta', 'uz', 'ang', 'zh-min-nan', 'ur', 'gu', + 'be', 'mr', 'ast', 'uz', 'ta', 'ang', 'ur', 'zh-min-nan', 'gu', 'su', 'lb', 'kn', 'wo', 'ky', 'am', 'co', ] Modified: branches/rewrite/pywikibot/families/wikisource_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikisource_family.py 2011-04-23 15:32:34 UTC (rev 9191) +++ branches/rewrite/pywikibot/families/wikisource_family.py 2011-04-23 15:37:11 UTC (rev 9192) @@ -11,8 +11,8 @@ self.name = 'wikisource' self.languages_by_size = [ - 'en', 'ru', 'zh', 'pt', 'fr', 'de', 'it', 'es', 'he', 'ar', 'hu', - 'fa', 'pl', 'th', 'cs', 'ro', 'ko', 'hr', 'te', 'fi', 'sv', 'bn', + 'en', 'ru', 'zh', 'pt', 'fr', 'de', 'it', 'es', 'he', 'ar', 'fa', + 'hu', 'pl', 'th', 'cs', 'ro', 'ko', 'hr', 'te', 'fi', 'sv', 'bn', 'vi', 'nl', 'tr', 'sl', 'uk', 'sr', 'ja', 'el', 'la', 'az', 'br', 'ml', 'li', 'yi', 'mk', 'sa', 'is', 'hy', 'bs', 'ta', 'ca', 'vec', 'id', 'da', 'eo', 'no', 'et', 'bg', 'sah', 'lt', 'gl', 'kn', 'cy', Modified: branches/rewrite/pywikibot/families/wiktionary_family.py =================================================================== --- branches/rewrite/pywikibot/families/wiktionary_family.py 2011-04-23 15:32:34 UTC (rev 9191) +++ branches/rewrite/pywikibot/families/wiktionary_family.py 2011-04-23 15:37:11 UTC (rev 9192) @@ -13,18 +13,18 @@ self.languages_by_size = [ 'en', 'fr', 'mg', 'zh', 'lt', 'ru', 'tr', 'vi', 'pl', 'ta', 'ko', 'io', 'de', 'pt', 'hu', 'fi', 'el', 'sv', 'no', 'it', 'nl', 'kn', - 'et', 'my', 'li', 'ja', 'ml', 'lo', 'es', 'ku', 'ar', 'ro', 'te', - 'id', 'gl', 'ca', 'uk', 'bg', 'cs', 'vo', 'is', 'fa', 'hr', + 'my', 'et', 'li', 'ml', 'ja', 'lo', 'es', 'ku', 'ar', 'ro', 'te', + 'id', 'gl', 'ca', 'uk', 'bg', 'cs', 'eo', 'vo', 'fa', 'is', 'hr', 'simple', 'scn', 'oc', 'th', 'sr', 'af', 'fy', 'sw', 'br', 'he', - 'eo', 'la', 'sq', 'sl', 'hy', 'eu', 'cy', 'da', 'tt', 'zh-min-nan', - 'wa', 'az', 'lv', 'ne', 'tk', 'ast', 'ka', 'ur', 'hsb', 'kk', 'hi', - 'ky', 'wo', 'nn', 'km', 'ang', 'co', 'be', 'ga', 'mr', 'gn', 'ia', - 'sk', 'tl', 'ms', 'ps', 'csb', 'st', 'sd', 'nds', 'kl', 'si', 'sh', - 'ug', 'ti', 'mk', 'bn', 'lb', 'an', 'zu', 'gu', 'ss', 'qu', 'am', - 'chr', 'ts', 'bs', 'fo', 'rw', 'tg', 'om', 'nah', 'su', 'kw', 'gv', - 'iu', 'mn', 'ie', 'yi', 'gd', 'za', 'pa', 'mt', 'tpi', 'mi', 'dv', - 'ik', 'sg', 'so', 'roa-rup', 'jv', 'uz', 'ln', 'sm', 'ha', 'sa', - 'ay', 'na', 'fj', 'jbo', 'ks', 'tn', 'dz', + 'la', 'sq', 'sl', 'hy', 'eu', 'cy', 'da', 'tt', 'zh-min-nan', 'wa', + 'az', 'lv', 'ne', 'tk', 'ast', 'hi', 'ka', 'ur', 'hsb', 'kk', 'ky', + 'nn', 'wo', 'km', 'ang', 'co', 'be', 'ga', 'mr', 'gn', 'ia', 'sk', + 'tl', 'ms', 'ps', 'csb', 'st', 'sd', 'nds', 'kl', 'si', 'sh', 'ug', + 'ti', 'mk', 'bn', 'lb', 'an', 'zu', 'gu', 'am', 'ss', 'qu', 'chr', + 'ts', 'bs', 'fo', 'rw', 'tg', 'om', 'nah', 'kw', 'su', 'gv', 'iu', + 'mn', 'ie', 'yi', 'gd', 'za', 'pa', 'mt', 'tpi', 'mi', 'dv', 'ik', + 'sg', 'so', 'roa-rup', 'jv', 'uz', 'ln', 'sm', 'ha', 'ay', 'sa', + 'na', 'fj', 'jbo', 'ks', 'tn', 'dz', ] for lang in self.languages_by_size:
1
0
0
0
SVN: [9191] trunk/pywikipedia/families
by xqt@svn.wikimedia.org
23 Apr '11
23 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9191
Revision: 9191 Author: xqt Date: 2011-04-23 15:32:34 +0000 (Sat, 23 Apr 2011) Log Message: ----------- update language_by_size Modified Paths: -------------- trunk/pywikipedia/families/wikibooks_family.py trunk/pywikipedia/families/wikipedia_family.py trunk/pywikipedia/families/wikiquote_family.py trunk/pywikipedia/families/wikisource_family.py trunk/pywikipedia/families/wiktionary_family.py Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2011-04-21 06:30:32 UTC (rev 9190) +++ trunk/pywikipedia/families/wikibooks_family.py 2011-04-23 15:32:34 UTC (rev 9191) @@ -12,12 +12,12 @@ self.languages_by_size = [ 'en', 'de', 'fr', 'hu', 'ja', 'pt', 'nl', 'es', 'pl', 'it', 'he', - 'sq', 'fi', 'ca', 'ru', 'vi', 'cs', 'zh', 'hr', 'sv', 'tr', 'da', - 'id', 'ko', 'th', 'gl', 'fa', 'sr', 'tl', 'no', 'ar', 'mk', 'is', + 'sq', 'fi', 'ca', 'ru', 'vi', 'cs', 'zh', 'hr', 'sv', 'tr', 'ko', + 'da', 'id', 'th', 'gl', 'fa', 'sr', 'tl', 'no', 'mk', 'ar', 'is', 'ta', 'ka', 'lt', 'eo', 'bg', 'ro', 'sk', 'uk', 'el', 'az', 'si', 'li', 'la', 'tt', 'ang', 'ia', 'cv', 'sl', 'mr', 'et', 'ur', 'oc', - 'ml', 'bn', 'ms', 'hi', 'eu', 'fy', 'ie', 'tg', 'af', 'te', 'hy', - 'pa', 'ne', 'bs', 'sa', 'ky', 'be', 'ast', 'zh-min-nan', 'mg', 'cy', + 'ml', 'bn', 'ms', 'hi', 'eu', 'fy', 'ie', 'te', 'hy', 'tg', 'af', + 'ne', 'pa', 'bs', 'sa', 'ky', 'be', 'ast', 'zh-min-nan', 'mg', 'cy', 'ku', 'co', 'tk', 'su', 'uz', 'vo', 'kk', 'mn', 'my', ] Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2011-04-21 06:30:32 UTC (rev 9190) +++ trunk/pywikipedia/families/wikipedia_family.py 2011-04-23 15:32:34 UTC (rev 9191) @@ -12,32 +12,32 @@ self.languages_by_size = [ 'en', 'de', 'fr', 'pl', 'it', 'es', 'ja', 'ru', 'nl', 'pt', 'sv', - 'zh', 'ca', 'no', 'uk', 'fi', 'vi', 'cs', 'hu', 'ko', 'id', 'tr', - 'ro', 'da', 'ar', 'eo', 'sr', 'lt', 'fa', 'sk', 'vo', 'ms', 'he', - 'bg', 'sl', 'war', 'hr', 'hi', 'et', 'gl', 'simple', 'new', 'th', - 'eu', 'nn', 'roa-rup', 'el', 'az', 'ht', 'la', 'tl', 'ka', 'te', + 'zh', 'ca', 'no', 'uk', 'fi', 'vi', 'cs', 'hu', 'tr', 'id', 'ko', + 'ro', 'da', 'ar', 'eo', 'sr', 'lt', 'fa', 'sk', 'ms', 'vo', 'he', + 'bg', 'sl', 'war', 'hr', 'hi', 'et', 'eu', 'gl', 'simple', 'new', + 'th', 'nn', 'roa-rup', 'el', 'az', 'ht', 'la', 'tl', 'ka', 'te', 'mk', 'ceb', 'sh', 'pms', 'br', 'be-x-old', 'lv', 'mr', 'jv', 'lb', - 'cy', 'sq', 'is', 'bs', 'ta', 'be', 'an', 'bpy', 'oc', 'bn', 'io', - 'sw', 'lmo', 'fy', 'gu', 'kk', 'ml', 'af', 'nds', 'scn', 'ur', 'qu', - 'ku', 'zh-yue', 'su', 'ast', 'hy', 'nap', 'ne', 'yo', 'bat-smg', - 'cv', 'ga', 'wa', 'pnb', 'kn', 'tg', 'roa-tara', 'vec', 'tt', 'als', - 'yi', 'zh-min-nan', 'gd', 'bug', 'os', 'uz', 'sah', 'pam', 'arz', - 'am', 'mi', 'li', 'hsb', 'nah', 'sco', 'gan', 'co', 'glk', 'mn', - 'my', 'ia', 'bcl', 'fo', 'fiu-vro', 'si', 'nds-nl', 'vls', 'tk', - 'sa', 'bar', 'ckb', 'mg', 'gv', 'ilo', 'map-bms', 'dv', 'nrm', + 'cy', 'sq', 'is', 'bs', 'ta', 'be', 'an', 'bpy', 'oc', 'bn', 'kk', + 'io', 'sw', 'lmo', 'fy', 'gu', 'ml', 'af', 'nds', 'ur', 'scn', 'qu', + 'ku', 'zh-yue', 'su', 'ast', 'nap', 'hy', 'ne', 'yo', 'bat-smg', + 'cv', 'ga', 'wa', 'pnb', 'kn', 'tg', 'vec', 'roa-tara', 'tt', 'als', + 'zh-min-nan', 'yi', 'gd', 'bug', 'os', 'uz', 'sah', 'pam', 'am', + 'arz', 'mi', 'li', 'hsb', 'nah', 'sco', 'gan', 'mn', 'co', 'glk', + 'my', 'ia', 'bcl', 'fo', 'fiu-vro', 'si', 'nds-nl', 'sa', 'vls', + 'tk', 'bar', 'ckb', 'mg', 'gv', 'ilo', 'map-bms', 'dv', 'nrm', 'pag', 'diq', 'se', 'rm', 'mzn', 'wuu', 'fur', 'ug', 'lij', 'mt', - 'bo', 'bh', 'hif', 'ang', 'csb', 'nov', 'lad', 'km', 'sc', - 'zh-classical', 'mrj', 'cbk-zam', 'pi', 'ps', 'ksh', 'frp', 'hak', - 'kw', 'rue', 'mhr', 'nv', 'pa', 'szl', 'xal', 'rw', 'so', 'haw', - 'ie', 'pdc', 'stq', 'udm', 'ln', 'kv', 'krc', 'to', 'crh', 'pcd', - 'ace', 'ky', 'ext', 'myv', 'gn', 'ba', 'ce', 'eml', 'arc', 'pap', - 'ay', 'bjn', 'kl', 'jbo', 'wo', 'frr', 'tpi', 'kab', 'ty', 'srn', - 'zea', 'gag', 'ab', 'dsb', 'or', 'koi', 'lo', 'ig', 'av', 'mdf', - 'tet', 'kg', 'mwl', 'rmy', 'lbe', 'cu', 'ltg', 'kaa', 'kbd', 'sm', - 'got', 'ks', 'bm', 'pfl', 'ik', 'sd', 'bi', 'as', 'iu', 'na', 'pih', - 'pnt', 'ss', 'cdo', 'chr', 'ha', 'ee', 'ti', 'zu', 'bxr', 'om', - 'za', 've', 'ts', 'rn', 'sg', 'dz', 'cr', 'ch', 'lg', 'fj', 'ny', - 'tum', 'st', 'xh', 'ff', 'tn', 'ki', 'sn', 'ak', 'tw', 'chy', + 'bo', 'bh', 'mrj', 'hif', 'csb', 'ang', 'nov', 'lad', 'km', 'sc', + 'zh-classical', 'cbk-zam', 'pi', 'ps', 'ksh', 'frp', 'hak', 'kw', + 'udm', 'rue', 'mhr', 'nv', 'pa', 'szl', 'xal', 'so', 'rw', 'haw', + 'ie', 'stq', 'pdc', 'kv', 'ln', 'krc', 'to', 'crh', 'pcd', 'ace', + 'ky', 'ext', 'myv', 'gn', 'ba', 'ce', 'eml', 'arc', 'pap', 'ay', + 'bjn', 'kl', 'jbo', 'frr', 'wo', 'tpi', 'kab', 'ty', 'srn', 'zea', + 'gag', 'or', 'dsb', 'ab', 'koi', 'lo', 'ig', 'av', 'tet', 'mdf', + 'kg', 'mwl', 'rmy', 'lbe', 'cu', 'ltg', 'kaa', 'kbd', 'sm', 'got', + 'ks', 'bm', 'pfl', 'ik', 'sd', 'bi', 'as', 'iu', 'na', 'pih', 'pnt', + 'ss', 'chr', 'cdo', 'ha', 'ee', 'ti', 'zu', 'bxr', 'om', 'za', 've', + 'ts', 'rn', 'sg', 'dz', 'cr', 'tum', 'ch', 'lg', 'fj', 'ny', 'st', + 'xh', 'ff', 'tn', 'ki', 'sn', 'chy', 'ak', 'tw', ] if family.config.SSL_connection: Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2011-04-21 06:30:32 UTC (rev 9190) +++ trunk/pywikipedia/families/wikiquote_family.py 2011-04-23 15:32:34 UTC (rev 9191) @@ -12,11 +12,11 @@ self.languages_by_size = [ 'en', 'pl', 'it', 'de', 'ru', 'pt', 'sk', 'es', 'bg', 'bs', 'cs', - 'tr', 'fr', 'sl', 'he', 'lt', 'el', 'id', 'zh', 'fa', 'nl', 'hu', - 'uk', 'eo', 'fi', 'sv', 'no', 'nn', 'ja', 'hy', 'et', 'ca', 'ar', - 'li', 'cy', 'hr', 'ka', 'ko', 'sr', 'gl', 'ro', 'ku', 'ml', 'az', + 'tr', 'fr', 'sl', 'he', 'eo', 'lt', 'el', 'id', 'zh', 'fa', 'nl', + 'hu', 'uk', 'fi', 'sv', 'no', 'nn', 'ja', 'hy', 'et', 'ca', 'ar', + 'li', 'cy', 'hr', 'ka', 'ko', 'sr', 'gl', 'ro', 'ku', 'az', 'ml', 'is', 'th', 'te', 'da', 'eu', 'af', 'sq', 'vi', 'hi', 'la', 'br', - 'be', 'mr', 'ast', 'ta', 'uz', 'ang', 'zh-min-nan', 'ur', 'gu', + 'be', 'mr', 'ast', 'uz', 'ta', 'ang', 'ur', 'zh-min-nan', 'gu', 'su', 'lb', 'kn', 'wo', 'ky', 'am', 'co', ] Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2011-04-21 06:30:32 UTC (rev 9190) +++ trunk/pywikipedia/families/wikisource_family.py 2011-04-23 15:32:34 UTC (rev 9191) @@ -11,8 +11,8 @@ self.name = 'wikisource' self.languages_by_size = [ - 'en', 'ru', 'zh', 'pt', 'fr', 'de', 'it', 'es', 'he', 'ar', 'hu', - 'fa', 'pl', 'th', 'cs', 'ro', 'ko', 'hr', 'te', 'fi', 'sv', 'bn', + 'en', 'ru', 'zh', 'pt', 'fr', 'de', 'it', 'es', 'he', 'ar', 'fa', + 'hu', 'pl', 'th', 'cs', 'ro', 'ko', 'hr', 'te', 'fi', 'sv', 'bn', 'vi', 'nl', 'tr', 'sl', 'uk', 'sr', 'ja', 'el', 'la', 'az', 'br', 'ml', 'li', 'yi', 'mk', 'sa', 'is', 'hy', 'bs', 'ta', 'ca', 'vec', 'id', 'da', 'eo', 'no', 'et', 'bg', 'sah', 'lt', 'gl', 'kn', 'cy', Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2011-04-21 06:30:32 UTC (rev 9190) +++ trunk/pywikipedia/families/wiktionary_family.py 2011-04-23 15:32:34 UTC (rev 9191) @@ -13,18 +13,18 @@ self.languages_by_size = [ 'en', 'fr', 'mg', 'zh', 'lt', 'ru', 'tr', 'vi', 'pl', 'ta', 'ko', 'io', 'de', 'pt', 'hu', 'fi', 'el', 'sv', 'no', 'it', 'nl', 'kn', - 'et', 'my', 'li', 'ja', 'ml', 'lo', 'es', 'ku', 'ar', 'ro', 'te', - 'id', 'gl', 'ca', 'uk', 'bg', 'cs', 'vo', 'is', 'fa', 'hr', + 'my', 'et', 'li', 'ml', 'ja', 'lo', 'es', 'ku', 'ar', 'ro', 'te', + 'id', 'gl', 'ca', 'uk', 'bg', 'cs', 'eo', 'vo', 'fa', 'is', 'hr', 'simple', 'scn', 'oc', 'th', 'sr', 'af', 'fy', 'sw', 'br', 'he', - 'eo', 'la', 'sq', 'sl', 'hy', 'eu', 'cy', 'da', 'tt', 'zh-min-nan', - 'wa', 'az', 'lv', 'ne', 'tk', 'ast', 'ka', 'ur', 'hsb', 'kk', 'hi', - 'ky', 'wo', 'nn', 'km', 'ang', 'co', 'be', 'ga', 'mr', 'gn', 'ia', - 'sk', 'tl', 'ms', 'ps', 'csb', 'st', 'sd', 'nds', 'kl', 'si', 'sh', - 'ug', 'ti', 'mk', 'bn', 'lb', 'an', 'zu', 'gu', 'ss', 'qu', 'am', - 'chr', 'ts', 'bs', 'fo', 'rw', 'tg', 'om', 'nah', 'su', 'kw', 'gv', - 'iu', 'mn', 'ie', 'yi', 'gd', 'za', 'pa', 'mt', 'tpi', 'mi', 'dv', - 'ik', 'sg', 'so', 'roa-rup', 'jv', 'uz', 'ln', 'sm', 'ha', 'sa', - 'ay', 'na', 'fj', 'jbo', 'ks', 'tn', 'dz', + 'la', 'sq', 'sl', 'hy', 'eu', 'cy', 'da', 'tt', 'zh-min-nan', 'wa', + 'az', 'lv', 'ne', 'tk', 'ast', 'hi', 'ka', 'ur', 'hsb', 'kk', 'ky', + 'nn', 'wo', 'km', 'ang', 'co', 'be', 'ga', 'mr', 'gn', 'ia', 'sk', + 'tl', 'ms', 'ps', 'csb', 'st', 'sd', 'nds', 'kl', 'si', 'sh', 'ug', + 'ti', 'mk', 'bn', 'lb', 'an', 'zu', 'gu', 'am', 'ss', 'qu', 'chr', + 'ts', 'bs', 'fo', 'rw', 'tg', 'om', 'nah', 'kw', 'su', 'gv', 'iu', + 'mn', 'ie', 'yi', 'gd', 'za', 'pa', 'mt', 'tpi', 'mi', 'dv', 'ik', + 'sg', 'so', 'roa-rup', 'jv', 'uz', 'ln', 'sm', 'ha', 'ay', 'sa', + 'na', 'fj', 'jbo', 'ks', 'tn', 'dz', ] if family.config.SSL_connection:
1
0
0
0
SVN: [9190] branches/rewrite/pywikibot/date.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9190
Revision: 9190 Author: xqt Date: 2011-04-21 06:30:32 +0000 (Thu, 21 Apr 2011) Log Message: ----------- change _romanNumbers back to a list since tuple.index() was introduced in py 2.6 first (bug #3290754) Modified Paths: -------------- branches/rewrite/pywikibot/date.py Modified: branches/rewrite/pywikibot/date.py =================================================================== --- branches/rewrite/pywikibot/date.py 2011-04-21 06:10:27 UTC (rev 9189) +++ branches/rewrite/pywikibot/date.py 2011-04-21 06:30:32 UTC (rev 9190) @@ -242,10 +242,10 @@ _decimalDigits = '0123456789' # Helper for roman numerals number representation -_romanNumbers = ('-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', +_romanNumbers = ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', - 'XXVII', 'XXVIII', 'XXIX', 'XXX') + 'XXVII', 'XXVIII', 'XXIX', 'XXX'] def intToRomanNum(i): if i >= len(_romanNumbers):
1
0
0
0
SVN: [9189] trunk/pywikipedia/date.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9189
Revision: 9189 Author: xqt Date: 2011-04-21 06:10:27 +0000 (Thu, 21 Apr 2011) Log Message: ----------- change _romanNumbers back to a list since tuple.index() was introduced in py 2.6 (bug #3290754) Modified Paths: -------------- trunk/pywikipedia/date.py Modified: trunk/pywikipedia/date.py =================================================================== --- trunk/pywikipedia/date.py 2011-04-20 16:02:00 UTC (rev 9188) +++ trunk/pywikipedia/date.py 2011-04-21 06:10:27 UTC (rev 9189) @@ -243,10 +243,10 @@ _decimalDigits = '0123456789' # Helper for roman numerals number representation -_romanNumbers = ('-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', +_romanNumbers = ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', - 'XXVII', 'XXVIII', 'XXIX', 'XXX') + 'XXVII', 'XXVIII', 'XXIX', 'XXX'] def intToRomanNum(i): if i >= len(_romanNumbers):
1
0
0
0
SVN: [9188] trunk/pywikipedia/archivebot.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9188
Revision: 9188 Author: xqt Date: 2011-04-20 16:02:00 +0000 (Wed, 20 Apr 2011) Log Message: ----------- Fix for long month names reported by Bin?\195?\161ris. Thanks! Modified Paths: -------------- trunk/pywikipedia/archivebot.py Modified: trunk/pywikipedia/archivebot.py =================================================================== --- trunk/pywikipedia/archivebot.py 2011-04-20 15:50:26 UTC (rev 9187) +++ trunk/pywikipedia/archivebot.py 2011-04-20 16:02:00 UTC (rev 9188) @@ -216,7 +216,7 @@ """Returns the locale's full name of month 'num' (1-12).""" if hasattr(locale, 'nl_langinfo'): return locale.nl_langinfo(locale.MON_1+num-1).decode('utf-8') - Months = ['january', 'february', 'march', 'april', 'may', 'june', + Months = ['january', 'february', 'march', 'april', 'may_long', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] return Site.mediawiki_message(Months[num-1])
1
0
0
0
SVN: [9187] branches/rewrite/pywikibot/date.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9187
Revision: 9187 Author: xqt Date: 2011-04-20 15:50:26 +0000 (Wed, 20 Apr 2011) Log Message: ----------- update from trunk r9186 Modified Paths: -------------- branches/rewrite/pywikibot/date.py Modified: branches/rewrite/pywikibot/date.py =================================================================== --- branches/rewrite/pywikibot/date.py 2011-04-20 15:46:57 UTC (rev 9186) +++ branches/rewrite/pywikibot/date.py 2011-04-20 15:50:26 UTC (rev 9187) @@ -892,9 +892,9 @@ 'hu' : lambda m: multi(m, [ (lambda v: dh_constVal(v, 0, u'i. e. 0-s évek'), lambda p: p == 0), - (lambda v: dh_decBC(v, u'i.e. %d-as évek' ), + (lambda v: dh_decBC(v, u'i. e. %d-as évek' ), lambda p: (p % 100 / 10) in [0,2,3,6,8]), - (lambda v: dh_decBC(v, u'i.e. %d-es évek'), alwaysTrue)]), + (lambda v: dh_decBC(v, u'i. e. %d-es évek'), alwaysTrue)]), 'it' : lambda v: dh_decBC( v, u'Anni %d a.C.' ),
1
0
0
0
SVN: [9186] trunk/pywikipedia/date.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9186
Revision: 9186 Author: xqt Date: 2011-04-20 15:46:57 +0000 (Wed, 20 Apr 2011) Log Message: ----------- fix for hu-wiki, follow up for r9184 Modified Paths: -------------- trunk/pywikipedia/date.py Modified: trunk/pywikipedia/date.py =================================================================== --- trunk/pywikipedia/date.py 2011-04-20 09:05:28 UTC (rev 9185) +++ trunk/pywikipedia/date.py 2011-04-20 15:46:57 UTC (rev 9186) @@ -893,9 +893,9 @@ 'hu' : lambda m: multi(m, [ (lambda v: dh_constVal(v, 0, u'i. e. 0-s évek'), lambda p: p == 0), - (lambda v: dh_decBC(v, u'i.e. %d-as évek' ), + (lambda v: dh_decBC(v, u'i. e. %d-as évek' ), lambda p: (p % 100 / 10) in [0,2,3,6,8]), - (lambda v: dh_decBC(v, u'i.e. %d-es évek'), alwaysTrue)]), + (lambda v: dh_decBC(v, u'i. e. %d-es évek'), alwaysTrue)]), 'it' : lambda v: dh_decBC( v, u'Anni %d a.C.' ),
1
0
0
0
SVN: [9185] branches/rewrite/pywikibot/date.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9185
Revision: 9185 Author: xqt Date: 2011-04-20 09:05:28 +0000 (Wed, 20 Apr 2011) Log Message: ----------- update from trunk Modified Paths: -------------- branches/rewrite/pywikibot/date.py Modified: branches/rewrite/pywikibot/date.py =================================================================== --- branches/rewrite/pywikibot/date.py 2011-04-20 08:30:19 UTC (rev 9184) +++ branches/rewrite/pywikibot/date.py 2011-04-20 09:05:28 UTC (rev 9185) @@ -7,8 +7,10 @@ # © Rob W.W. Hooft, 2003 # © Daniel Herding, 2004 # © Ævar Arnfjörð Bjarmason, 2004 -# © Andre Engels, 2005 -# © Yuri Astrakhan, 2005-2006 FirstnameLastname(a)gmail.com (years/decades/centuries/millenniums str <=> int conversions) +# © Andre Engels, 2004-2005 +# © Yuri Astrakhan, 2005-2006 FirstnameLastname(a)gmail.com +# (years/decades/centuries/millenniums str <=> int conversions) +# © Pywikipedia bot team, 2004-2011 # # Distributed under the terms of the MIT license. # @@ -21,61 +23,32 @@ # # Different collections of well known formats # -enMonthNames = [ u'January', u'February', u'March', u'April', u'May', u'June', u'July', u'August', u'September', u'October', u'November', u'December' ] -dayMnthFmts = [ 'Day_' + str(s) for s in enMonthNames ] # e.g. 'Day_January' -yrMnthFmts = [ 'Year_' + str(s) for s in enMonthNames ] # e.g. 'Year_January' +enMonthNames = [u'January', u'February', u'March', u'April', u'May', u'June', + u'July', u'August', u'September', u'October', u'November', + u'December'] +dayMnthFmts = ['Day_' + str(s) for s in enMonthNames] # e.g. 'Day_January' +yrMnthFmts = ['Year_' + str(s) for s in enMonthNames] # e.g. 'Year_January' -adDateFormats = [ 'YearAD', 'DecadeAD', 'CenturyAD', 'MillenniumAD' ] # the order of this list is important -bcDateFormats = [ 'YearBC', 'DecadeBC', 'CenturyBC', 'MillenniumBC' ] # the order of this list is important -dateFormats = bcDateFormats + adDateFormats -decadeFormats = [ 'DecadeAD', 'DecadeBC' ] -centuryFormats = [ 'CenturyAD', 'CenturyBC' ] -yearFormats = [ 'YearAD', 'YearBC' ] -millFormats = [ 'MillenniumAD', 'MillenniumBC' ] -snglValsFormats = [ 'CurrEvents' ] +# the order of these lists is important +adDateFormats = ['YearAD', 'DecadeAD', 'CenturyAD', 'MillenniumAD'] +bcDateFormats = ['YearBC', 'DecadeBC', 'CenturyBC', 'MillenniumBC'] +dateFormats = bcDateFormats + adDateFormats +decadeFormats = ['DecadeAD', 'DecadeBC'] +centuryFormats = ['CenturyAD', 'CenturyBC'] +yearFormats = ['YearAD', 'YearBC'] +millFormats = ['MillenniumAD', 'MillenniumBC'] +snglValsFormats = ['CurrEvents'] -# number of days in each month, required for interwiki.py with the -days argument -# @deprecated -# days_in_month = { - # 1: 31, - # 2: 29, - # 3: 31, - # 4: 30, - # 5: 31, - # 6: 30, - # 7: 31, - # 8: 31, - # 9: 30, - # 10: 31, - # 11: 30, - # 12: 31 -# } +def multi( value, tuplst ): + """This method is used when more than one pattern is used for the same + entry. Example: 1st century, 2nd century, etc. + The tuplst is a list of tupples. Each tupple must contain two functions: + first to encode/decode a single value (e.g. simpleInt), second is a + predicate function with an integer parameter that returns true or false. + When the 2nd function evaluates to true, the 1st function is used. -# For all languages the maximal value a year BC can have; before this date the -# language switches to decades or centuries -# @deprecated -# maxyearBC = { - # 'ca':500, - # 'de':400, - # 'en':499, - # 'nl':1000, - # 'pl':776 - # } - -# @deprecated -# maxyearAD = { - # 'es':2005, - # } - -def multi( value, tuplst ): - """This method is used when more than one pattern is used for the same entry. - Example: 1st century, 2nd century, etc. - The tuplst is a list of tupples. Each tupple must contain two functions: - first to encode/decode a single value (e.g. simpleInt), - second is a predicate function with an integer parameter that returns true or false. - When the 2nd function evaluates to true, the 1st function is used. """ if type(value) in _stringTypes: # Try all functions, and test result against predicates @@ -87,78 +60,100 @@ except: pass else: - # Find a predicate that gives true for this int value, and run a function + # Find a predicate that gives true for this int value, and run a + # function for func, pred in tuplst: if pred(value): return func(value) raise ValueError("could not find a matching function") - # -# # Helper functions that aid with single value no corrections encoding/decoding. # Various filters are item dependent. # -# -def dh_noConv( value, pattern, limit ): +def dh_noConv(value, pattern, limit): """decoding helper for a single integer value, no conversion, no rounding""" return dh( value, pattern, encNoConv, decSinglVal, limit ) -def dh_dayOfMnth( value, pattern ): - """decoding helper for a single integer value <=31, no conversion, no rounding (used in days of month)""" - return dh_noConv( value, pattern, formatLimits[dayMnthFmts[0]][0] ) # For now use January because it has all 31 days +def dh_dayOfMnth(value, pattern): + """decoding helper for a single integer value <=31, no conversion, + no rounding (used in days of month) -def dh_mnthOfYear( value, pattern ): - """decoding helper for a single integer value >=1000, no conversion, no rounding (used in month of the year)""" - return dh_noConv( value, pattern, _formatLimit_MonthOfYear[0] ) + """ + # For now use January because it has all 31 days + return dh_noConv(value, pattern, formatLimits[dayMnthFmts[0]][0]) -def dh_decAD( value, pattern ): - """decoding helper for a single integer value, no conversion, round to decimals (used in decades)""" - return dh( value, pattern, encDec0, decSinglVal, formatLimits['DecadeAD'][0] ) +def dh_mnthOfYear(value, pattern): + """decoding helper for a single integer value >=1000, no conversion, + no rounding (used in month of the year) -def dh_decBC( value, pattern ): - """decoding helper for a single integer value, no conversion, round to decimals (used in decades)""" - return dh( value, pattern, encDec0, decSinglVal, formatLimits['DecadeBC'][0] ) + """ + return dh_noConv(value, pattern, _formatLimit_MonthOfYear[0]) -def dh_yearBC( value, pattern ): - """decoding helper for a year value, no conversion, no rounding, limits to 3000""" - return dh_noConv( value, pattern, formatLimits['YearBC'][0] ) +def dh_decAD(value, pattern): + """decoding helper for a single integer value, no conversion, + round to decimals (used in decades) -def dh_yearAD( value, pattern ): - """decoding helper for a year value, no conversion, no rounding, limits to 3000""" - return dh_noConv( value, pattern, formatLimits['YearAD'][0] ) + """ + return dh(value, pattern, encDec0, decSinglVal, formatLimits['DecadeAD'][0]) -def dh_simpleYearAD( value ): - """decoding helper for a single integer value representing a year with no extra symbols""" - return dh_yearAD( value, u'%d' ) +def dh_decBC(value, pattern): + """decoding helper for a single integer value, no conversion, + round to decimals (used in decades) -def dh_number( value, pattern ): - return dh_noConv( value, pattern, formatLimits['Number'][0] ) -def dh_centuryAD( value, pattern ): - return dh_noConv( value, pattern, formatLimits['CenturyAD'][0] ) -def dh_centuryBC( value, pattern ): - return dh_noConv( value, pattern, formatLimits['CenturyBC'][0] ) -def dh_millenniumAD( value, pattern ): - return dh_noConv( value, pattern, formatLimits['MillenniumAD'][0] ) -def dh_millenniumBC( value, pattern ): - return dh_noConv( value, pattern, formatLimits['MillenniumBC'][0] ) + """ + return dh(value, pattern, encDec0, decSinglVal, formatLimits['DecadeBC'][0]) +def dh_yearBC(value, pattern): + """decoding helper for a year value, no conversion, no rounding, + limits to 3000 -def decSinglVal( v ): + """ + return dh_noConv(value, pattern, formatLimits['YearBC'][0]) + +def dh_yearAD(value, pattern): + """decoding helper for a year value, no conversion, no rounding, + limits to 3000 + + """ + return dh_noConv(value, pattern, formatLimits['YearAD'][0]) + +def dh_simpleYearAD(value): + """decoding helper for a single integer value representing a year with + no extra symbols + + """ + return dh_yearAD(value, u'%d') + +def dh_number(value, pattern): + return dh_noConv(value, pattern, formatLimits['Number'][0]) +def dh_centuryAD(value, pattern): + return dh_noConv(value, pattern, formatLimits['CenturyAD'][0]) +def dh_centuryBC(value, pattern): + return dh_noConv(value, pattern, formatLimits['CenturyBC'][0]) +def dh_millenniumAD(value, pattern): + return dh_noConv(value, pattern, formatLimits['MillenniumAD'][0]) +def dh_millenniumBC(value, pattern): + return dh_noConv(value, pattern, formatLimits['MillenniumBC'][0]) + +def decSinglVal(v): return v[0] -def encNoConv( i ): +def encNoConv(i): return i -def encDec0( i ): - return (i/10)*10 # round to the nearest decade, decade starts with a '0'-ending year +def encDec0(i): + # round to the nearest decade, decade starts with a '0'-ending year + return (i/10)*10 -def encDec1( i ): - return encDec0(i)+1 # round to the nearest decade, decade starts with a '1'-ending year +def encDec1(i): + # round to the nearest decade, decade starts with a '1'-ending year + return encDec0(i)+1 def slh( value, lst ): """This function helps in simple list value matching. + !!!!! The index starts at 1, so 1st element has index 1, not 0 !!!!! Usually it will be used as a lambda call in a map: lambda v: slh( v, [u'January',u'February',...] ) @@ -167,6 +162,7 @@ formats['MonthName']['en'](1) => u'January' formats['MonthName']['en'](u'January') => 1 formats['MonthName']['en'](u'anything else') => raise ValueError + """ if type(value) in _stringTypes: return lst.index(value)+1 @@ -178,8 +174,11 @@ def dh_constVal( value, ind, match ): """This function helps with matching a single value to a constant. - formats['CurrEvents']['en'](ind) => u'Current Events' - formats['CurrEvents']['en'](u'Current Events') => ind""" + + formats['CurrEvents']['en'](ind) => u'Current Events' + formats['CurrEvents']['en'](u'Current Events') => ind + + """ if type(value) in _stringTypes: if value == match: return ind @@ -193,7 +192,9 @@ def alwaysTrue( x ): """This function always returns True - its used for multiple value selection function - to accept all other values""" + to accept all other values + + """ return True def monthName(lang, ind): @@ -241,10 +242,10 @@ _decimalDigits = '0123456789' # Helper for roman numerals number representation -_romanNumbers = ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', - 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', - 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', 'XXVII', 'XXVIII', 'XXVIX', - 'XXX'] +_romanNumbers = ('-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', + 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', + 'XIX', 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', + 'XXVII', 'XXVIII', 'XXIX', 'XXX') def intToRomanNum(i): if i >= len(_romanNumbers): @@ -254,13 +255,15 @@ def romanNumToInt(v): return _romanNumbers.index(v) -# Each tuple must 3 parts: a list of all possible digits (symbols), encoder (from int to a u-string) and decoder (from u-string to an int) +# Each tuple must 3 parts: a list of all possible digits (symbols), encoder +# (from int to a u-string) and decoder (from u-string to an int) _digitDecoders = { # %% is a % '%' : u'%', # %d is a decimal 'd' : ( _decimalDigits, unicode, int ), - # %R is a roman numeral. This allows for only the simpliest linear conversions based on a list of numbers + # %R is a roman numeral. This allows for only the simpliest linear + # conversions based on a list of numbers 'R' : ( u'IVX', intToRomanNum, romanNumToInt ), # %K is a number in KN:: 'K' : ( _knDigits, lambda v: intToLocalDigitsStr(v, _knDigitsToLocal), lambda v: localDigitsStrToInt(v, _knDigitsToLocal, _knLocalToDigits) ), @@ -276,10 +279,12 @@ 'T' : ( _decimalDigits, lambda v: unicode(v+543), lambda v: int(v)-543 ), } -# Allows to search for '(%%)|(%d)|(%R)|...", and allows one digit 1-9 to set the size of zero-padding for numbers +# Allows to search for '(%%)|(%d)|(%R)|...", and allows one digit 1-9 to set +# the size of zero-padding for numbers _reParameters = re.compile(u'|'.join( u'(%%[1-9]?%s)' % s for s in _digitDecoders )) -# A map of sitecode+pattern to (re matching object and corresponding decoders) +# A map of sitecode+pattern to (re matching object and corresponding +# decoders) _escPtrnCache2 = {} # Allow both unicode and single-byte strings @@ -289,8 +294,10 @@ def escapePattern2( pattern ): """Converts a string pattern into a regex expression and cache. Allows matching of any _digitDecoders inside the string. - Returns a compiled regex object and a list of digit decoders""" + Returns a compiled regex object and a list of digit decoders + """ + if pattern not in _escPtrnCache2: newPattern = u'^' # begining of the string strPattern = u'' @@ -308,13 +315,18 @@ strPattern += s # Keep the original text else: if len(s) == 3: - newPattern += u'([%s]{%s})' % (dec[0], s[1]) # enforce mandatory field size - dec += (int(s[1]),) # add the number of required digits as the last (4th) part of the tuple + # enforce mandatory field size + newPattern += u'([%s]{%s})' % (dec[0], s[1]) + # add the number of required digits as the last (4th) part of the tuple + dec += (int(s[1]),) else: newPattern += u'([%s]+)' % dec[0] decoders.append( dec ) - strPattern += u'%s' # All encoders produce a string # this causes problem with the zero padding. Need to rethink + # All encoders produce a string + # this causes problem with the zero padding. + # Need to rethink + strPattern += u'%s' else: newPattern += re.escape( s ) strPattern += s @@ -328,25 +340,29 @@ def dh( value, pattern, encf, decf, filter = None ): """This function helps in year parsing. - Usually it will be used as a lambda call in a map: - lambda v: dh( v, u'pattern string', encodingFunc, decodingFunc ) - encodingFunc: - Converts from an integer parameter to another integer or a tuple of integers. - Depending on the pattern, each integer will be converted to a proper string - representation, and will be passed as a format argument to the pattern: - pattern % encodingFunc(value) - This function is a complement of decodingFunc. + Usually it will be used as a lambda call in a map: + lambda v: dh( v, u'pattern string', encodingFunc, decodingFunc ) - decodingFunc: - Converts a tuple/list of non-negative integers found in the original value string - into a normalized value. The normalized value can be passed right back into dh() - to produce the original string. This function is a complement of encodingFunc. - dh() interprets %d as a decimal and %s as a roman numeral number. + encodingFunc: + Converts from an integer parameter to another integer or a tuple of + integers. Depending on the pattern, each integer will be converted to a + proper string representation, and will be passed as a format argument + to the pattern: + pattern % encodingFunc(value) + This function is a complement of decodingFunc. + + decodingFunc: + Converts a tuple/list of non-negative integers found in the original + value string + into a normalized value. The normalized value can be passed right back + into dh() to produce the original string. This function is a complement + of encodingFunc. dh() interprets %d as a decimal and %s as a roman + numeral number. + """ compPattern, strPattern, decoders = escapePattern2(pattern) - if type(value) in _stringTypes: m = compPattern.match(value) if m: @@ -382,7 +398,7 @@ # convert integer parameter into its textual representation return strPattern % MakeParameter(decoders[0], params) -def MakeParameter( decoder, param ): +def MakeParameter(decoder, param): newValue = decoder[1](param) if len(decoder) == 4 and len(newValue) < decoder[3]: # force parameter length by taking the first digit in the list and repeating it required number of times @@ -408,105 +424,105 @@ # formats = { 'MonthName': { - 'af' : lambda v: slh( v, [u"Januarie", u"Februarie", u"Maart", u"April", u"Mei", u"Junie", u"Julie", u"Augustus", u"September", u"Oktober", u"November", u"Desember"] ), - 'als': lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), - 'an' : lambda v: slh( v, [u"chinero", u"frebero", u"marzo", u"abril", u"mayo", u"chunio", u"chulio", u"agosto", u"setiembre", u"otubre", u"nobiembre", u"abiento"] ), - 'ang': lambda v: slh( v, [u"Æfterra Gēola", u"Solmōnaþ", u"Hrēþmōnaþ", u"Ēastermōnaþ", u"Þrimilcemōnaþ", u"Sēremōnaþ", u"Mǣdmōnaþ", u"Wēodmōnaþ", u"Hāligmōnaþ", u"Winterfylleþ", u"Blōtmōnaþ", u"Gēolmōnaþ"] ), - 'ar' : lambda v: slh( v, [u"يناير", u"فبراير", u"مارس", u"أبريل", u"مايو", u"يونيو", u"يوليو", u"أغسطس", u"سبتمبر", u"أكتوبر", u"نوفمبر", u"ديسمبر"] ), - 'ast': lambda v: slh( v, [u"xineru", u"febreru", u"marzu", u"abril", u"mayu", u"xunu", u"xunetu", u"agostu", u"setiembre", u"ochobre", u"payares", u"avientu"] ), - 'be' : lambda v: slh( v, [u"студзень", u"люты", u"сакавік", u"красавік", u"травень", u"чэрвень", u"ліпень", u"жнівень", u"верасень", u"кастрычнік", u"лістапад", u"сьнежань"] ), - 'bg' : lambda v: slh( v, [u"януари", u"февруари", u"март", u"април", u"май", u"юни", u"юли", u"август", u"септември", u"октомври", u"ноември", u"декември"] ), - 'bn' : lambda v: slh( v, [u"জানুয়ারি", u"ফেব্রুয়ারি", u"মার্চ", u"এপ্রিল", u"মে", u"জুন", u"জুলাই", u"আগস্ট", u"সেপ্টেম্বর", u"অক্টোবর", u"নভেম্বর", u"ডিসেম্বর"] ), - 'br' : lambda v: slh( v, [u"Genver", u"C'hwevrer", u"Meurzh", u"Ebrel", u"Mae", u"Mezheven", u"Gouere", u"Eost", u"Gwengolo", u"Here", u"Du", u"Kerzu"] ), - 'bs' : lambda v: slh( v, [u"januar", u"februar", u"mart", u"april", u"maj", u"juni", u"juli", u"august", u"septembar", u"oktobar", u"novembar", u"decembar"] ), - 'ca' : lambda v: slh( v, [u"gener", u"febrer", u"març", u"abril", u"maig", u"juny", u"juliol", u"agost", u"setembre", u"octubre", u"novembre", u"desembre"] ), - 'ceb': lambda v: slh( v, [u"Enero", u"Pebrero", u"Marso", u"Abril", u"Mayo", u"Hunyo", u"Hulyo", u"Agosto", u"Septiyembre", u"Oktubre", u"Nobiyembre", u"Disyembre"] ), - 'co' : lambda v: slh( v, [u"ghjennaghju", u"frivaghju", u"marzu", u"aprile", u"maghju", u"ghjugnu", u"lugliu", u"aostu", u"settembre", u"uttrovi", u"nuvembri", u"decembre"] ), - 'cs' : lambda v: slh( v, [u"leden", u"únor", u"březen", u"duben", u"květen", u"červen", u"červenec", u"srpen", u"září", u"říjen", u"listopad", u"prosinec"] ), - 'csb': lambda v: slh( v, [u"stëcznik", u"gromicznik", u"strumiannik", u"łżëkwiôt", u"môj", u"czerwińc", u"lëpinc", u"zélnik", u"séwnik", u"rujan", u"lëstopadnik", u"gòdnik"] ), - 'cv' : lambda v: slh( v, [u"кăрлач", u"нарăс", u"Пуш", u"Ака", u"çу", u"çĕртме", u"утă", u"çурла", u"авăн", u"юпа", u"чӳк", u"раштав"] ), - 'cy' : lambda v: slh( v, [u"Ionawr", u"Chwefror", u"Mawrth", u"Ebrill", u"Mai", u"Mehefin", u"Gorffennaf", u"Awst", u"Medi", u"Hydref", u"Tachwedd", u"Rhagfyr"] ), - 'da' : lambda v: slh( v, [u"januar", u"februar", u"marts", u"april", u"maj", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"december"] ), - 'de' : lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), - 'el' : lambda v: slh( v, [u"Ιανουάριος", u"Φεβρουάριος", u"Μάρτιος", u"Απρίλιος", u"Μάιος", u"Ιούνιος", u"Ιούλιος", u"Αύγουστος", u"Σεπτέμβριος", u"Οκτώβριος", u"Νοέμβριος", u"Δεκέμβριος"] ), - 'en' : lambda v: slh( v, enMonthNames ), - 'eo' : lambda v: slh( v, [u"Januaro", u"Februaro", u"Marto", u"Aprilo", u"Majo", u"Junio", u"Julio", u"Aŭgusto", u"Septembro", u"Oktobro", u"Novembro", u"Decembro"] ), - 'es' : lambda v: slh( v, [u"enero", u"febrero", u"marzo", u"abril", u"mayo", u"junio", u"julio", u"agosto", u"septiembre", u"octubre", u"noviembre", u"diciembre"] ), - 'et' : lambda v: slh( v, [u"jaanuar", u"veebruar", u"märts", u"aprill", u"mai", u"juuni", u"juuli", u"august", u"september", u"oktoober", u"november", u"detsember"] ), - 'eu' : lambda v: slh( v, [u"Urtarril", u"Otsail", u"Martxo", u"Apiril", u"Maiatz", u"Ekain", u"Uztail", u"Abuztu", u"Irail", u"Urri", u"Azaro", u"Abendu"] ), - 'fa' : lambda v: slh( v, [u"ژانویه", u"فوریه", u"مارس", u"آوریل", u"مه", u"ژوئن", u"ژوئیه", u"اوت", u"سپتامبر", u"اکتبر", u"نوامبر", u"دسامبر"] ), - 'fi' : lambda v: slh( v, [u"tammikuu", u"helmikuu", u"maaliskuu", u"huhtikuu", u"toukokuu", u"kesäkuu", u"heinäkuu", u"elokuu", u"syyskuu", u"lokakuu", u"marraskuu", u"joulukuu"] ), - 'fo' : lambda v: slh( v, [u"januar", u"februar", u"mars", u"apríl", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ), - 'fr' : lambda v: slh( v, [u"janvier", u"février", u"mars (mois)", u"avril", u"mai", u"juin", u"juillet", u"août", u"septembre", u"octobre", u"novembre", u"décembre"] ), - 'fur': lambda v: slh( v, [u"Zenâr", u"Fevrâr", u"Març", u"Avrîl", u"Mai", u"Jugn", u"Lui", u"Avost", u"Setembar", u"Otubar", u"Novembar", u"Dicembar"] ), - 'fy' : lambda v: slh( v, [u"jannewaris", u"febrewaris", u"maart", u"april", u"maaie", u"juny", u"july", u"augustus", u"septimber", u"oktober", u"novimber", u"desimber"] ), - 'ga' : lambda v: slh( v, [u"Eanáir", u"Feabhra", u"Márta", u"Aibreán", u"Bealtaine", u"Meitheamh", u"Iúil", u"Lúnasa", u"Meán Fómhair", u"Deireadh Fómhair", u"Samhain", u"Nollaig"] ), - 'gl' : lambda v: slh( v, [u"xaneiro", u"febreiro", u"marzo", u"abril", u"maio", u"xuño", u"xullo", u"agosto", u"setembro", u"outubro", u"novembro", u"decembro"] ), - 'he' : lambda v: slh( v, [u"ינואר", u"פברואר", u"מרץ", u"אפריל", u"מאי", u"יוני", u"יולי", u"אוגוסט", u"ספטמבר", u"אוקטובר", u"נובמבר", u"דצמבר"] ), - 'hi' : lambda v: slh( v, [u"जनवरी", u"फ़रवरी", u"मार्च", u"अप्रैल", u"मई", u"जून", u"जुलाई", u"अगस्त", u"सितम्बर", u"अक्टूबर", u"नवम्बर", u"दिसम्बर"] ), - 'hr' : lambda v: slh( v, [u"siječanj", u"veljača", u"ožujak", u"travanj", u"svibanj", u"lipanj", u"srpanj", u"kolovoz", u"rujan", u"listopad", u"studeni", u"prosinac"] ), - 'hu' : lambda v: slh( v, [u"január", u"február", u"március", u"április", u"május", u"június", u"július", u"augusztus", u"szeptember", u"október", u"november", u"december"] ), - 'ia' : lambda v: slh( v, [u"januario", u"februario", u"martio", u"april", u"maio", u"junio", u"julio", u"augusto", u"septembre", u"octobre", u"novembre", u"decembre"] ), - 'id' : lambda v: slh( v, [u"Januari", u"Februari", u"Maret", u"April", u"Mei", u"Juni", u"Juli", u"Agustus", u"September", u"Oktober", u"November", u"Desember"] ), - 'ie' : lambda v: slh( v, [u"januar", u"februar", u"marte", u"april", u"may", u"junio", u"juli", u"august", u"septembre", u"octobre", u"novembre", u"decembre"] ), - 'io' : lambda v: slh( v, [u"januaro", u"februaro", u"Marto", u"aprilo", u"mayo", u"junio", u"julio", u"agosto", u"septembro", u"oktobro", u"novembro", u"decembro"] ), - 'is' : lambda v: slh( v, [u"janúar", u"febrúar", u"mars (mánuður)", u"apríl", u"maí", u"júní", u"júlí", u"ágúst", u"september", u"október", u"nóvember", u"desember"] ), - 'it' : lambda v: slh( v, [u"gennaio", u"febbraio", u"marzo", u"aprile", u"maggio", u"giugno", u"luglio", u"agosto", u"settembre", u"ottobre", u"novembre", u"dicembre"] ), - 'ja' : lambda v: slh( v, makeMonthList( u"%d月" )), - 'jv' : lambda v: slh( v, [u"Januari", u"Februari", u"Maret", u"April", u"Mei", u"Juni", u"Juli", u"Agustus", u"September", u"Oktober", u"November", u"Desember"] ), - 'ka' : lambda v: slh( v, [u"იანვარი", u"თებერვალი", u"მარტი", u"აპრილი", u"მაისი", u"ივნისი", u"ივლისი", u"აგვისტო", u"სექტემბერი", u"ოქტომბერი", u"ნოემბერი", u"დეკემბერი"] ), - 'kn' : lambda v: slh( v, [u"ಜನವರಿ", u"ಫೆಬ್ರವರಿ", u"ಮಾರ್ಚಿ", u"ಎಪ್ರಿಲ್", u"ಮೇ", u"ಜೂನ", u"ಜುಲೈ", u"ಆಗಸ್ಟ್", u"ಸೆಪ್ಟೆಂಬರ್", u"ಅಕ್ಟೋಬರ್", u"ನವೆಂಬರ್", u"ಡಿಸೆಂಬರ್"] ), - 'ko' : lambda v: slh( v, makeMonthList( u"%d월" )), - 'ksh': lambda v: slh( v, [u'Jannowaa', u'Febrowaa', u'Mä', u'Apprill', u'Meij', u'Juuni', u'Juuli', u'Aujuß', u'Sepptäber', u'Oktoober', u'Novemmber', u'Dezemmber'] ), - 'ku' : lambda v: slh( v, [u"rêbendan", u"reşemî", u"adar", u"avrêl", u"gulan", u"pûşper", u"tîrmeh", u"gelawêj (meh)", u"rezber", u"kewçêr", u"sermawez", u"berfanbar"] ), - 'kw' : lambda v: slh( v, [u"Mys Genver", u"Mys Whevrer", u"Mys Merth", u"Mys Ebrel", u"Mys Me", u"Mys Metheven", u"Mys Gortheren", u"Mys Est", u"Mys Gwyngala", u"Mys Hedra", u"Mys Du", u"Mys Kevardhu"] ), - 'la' : lambda v: slh( v, [u"Ianuarius", u"Februarius", u"Martius", u"Aprilis", u"Maius", u"Iunius", u"Iulius", u"Augustus (mensis)", u"September", u"October", u"November", u"December"] ), - 'lb' : lambda v: slh( v, [u"Januar", u"Februar", u"Mäerz", u"Abrëll", u"Mee", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), - 'li' : lambda v: slh( v, [u"jannewarie", u"fibberwarie", u"miert", u"april", u"mei", u"juni", u"juli", u"augustus (maond)", u"september", u"oktober", u"november", u"december"] ), - 'lt' : lambda v: slh( v, [u"Sausis", u"Vasaris", u"Kovas", u"Balandis", u"Gegužė", u"Birželis", u"Liepa", u"Rugpjūtis", u"Rugsėjis", u"Spalis", u"Lapkritis", u"Gruodis"] ), - 'lv' : lambda v: slh( v, [u"Janvāris", u"Februāris", u"Marts", u"Aprīlis", u"Maijs", u"Jūnijs", u"Jūlijs", u"Augusts", u"Septembris", u"Oktobris", u"Novembris", u"Decembris"] ), - 'mhr': lambda v: slh( v, [ u"шорыкйол", u"пургыж", u"ӱярня", u"вӱдшор", u"ага", u"пеледыш", u"сӱрем", u"сорла", u"идым", u"шыжа", u"кылме", u"декабрь"] ), - 'mi' : lambda v: slh( v, [u"Kohi-tātea", u"Hui-tanguru", u"Poutū-te-rangi", u"Paenga-whāwhā", u"Haratua", u"Pipiri", u"Hōngongoi", u"Here-turi-kōkā", u"Mahuru", u"Whiringa-ā-nuku", u"Whiringa-ā-rangi", u"Hakihea"] ), - 'ml' : lambda v: slh( v, [u"ജനുവരി", u"ഫെബ്രുവരി", u"മാര്ച്", u"ഏപ്രില്", u"മേയ്", u"ജൂണ്", u"ജൂലൈ", u"ആഗസ്റ്റ്", u"സപ്തന്പര്", u"ഒക്ടോബര്", u"നവന്പര്", u"ഡിസന്പര്"] ), - 'mr' : lambda v: slh( v, [u"जानेवारी", u"फेब्रुवारी", u"मार्च", u"एप्रिल", u"मे", u"जून", u"जुलै", u"ऑगस्ट", u"सप्टेंबर", u"ऑक्टोबर", u"नोव्हेंबर", u"डिसेंबर"] ), - 'ms' : lambda v: slh( v, [u"Januari", u"Februari", u"Mac", u"April", u"Mei", u"Jun", u"Julai", u"Ogos", u"September", u"Oktober", u"November", u"Disember"] ), - 'nap': lambda v: slh( v, [u"Jennaro", u"Frevaro", u"Màrzo", u"Abbrile", u"Maggio", u"Giùgno", u"Luglio", u"Aùsto", u"Settembre", u"Ottovre", u"Nuvembre", u"Dicembre"] ), - 'nds': lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), - 'nl' : lambda v: slh( v, [u"januari", u"februari", u"maart", u"april", u"mei", u"juni", u"juli", u"augustus (maand)", u"september", u"oktober", u"november", u"december"] ), - 'nn' : lambda v: slh( v, [u"januar", u"februar", u"månaden mars", u"april", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ), - 'no' : lambda v: slh( v, [u"januar", u"februar", u"mars", u"april", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ), - 'oc' : lambda v: slh( v, [u"genièr", u"febrièr", u"març", u"abril", u"mai", u"junh", u"julhet", u"agost", u"setembre", u"octobre", u"novembre", u"decembre"] ), - 'os' : lambda v: slh( v, [u"январь", u"февраль", u"мартъи", u"апрель", u"май", u"июнь", u"июль", u"август", u"сентябрь", u"октябрь", u"ноябрь", u"декабрь"] ), - 'pl' : lambda v: slh( v, [u"styczeń", u"luty", u"marzec", u"kwiecień", u"maj", u"czerwiec", u"lipiec", u"sierpień", u"wrzesień", u"październik", u"listopad", u"grudzień"] ), - 'pt' : lambda v: slh( v, [u"Janeiro", u"Fevereiro", u"Março", u"Abril", u"Maio", u"Junho", u"Julho", u"Agosto", u"Setembro", u"Outubro", u"Novembro", u"Dezembro"] ), - 'ro' : lambda v: slh( v, [u"ianuarie", u"februarie", u"martie", u"aprilie", u"mai", u"iunie", u"iulie", u"august", u"septembrie", u"octombrie", u"noiembrie", u"decembrie"] ), - 'ru' : lambda v: slh( v, [u"январь", u"февраль", u"март", u"апрель", u"май", u"июнь", u"июль", u"август", u"сентябрь", u"октябрь", u"ноябрь", u"декабрь"] ), - 'sc' : lambda v: slh( v, [u"Ghennarzu", u"Frearzu", u"Martzu", u"Abrile", u"Maju", u"Làmpadas", u"Triulas", u"Aùstu", u"Cabudanni", u"Santugaìne", u"Santadria", u"Nadale"] ), - 'scn': lambda v: slh( v, [u"jinnaru", u"frivaru", u"marzu", u"aprili", u"maiu", u"giugnu", u"giugnettu", u"austu", u"sittèmmiru", u"uttùviru", u"nuvèmmiru", u"dicèmmiru"] ), - 'sco': lambda v: slh( v, [u"Januar", u"Februar", u"Mairch", u"Aprile", u"Mey", u"Juin", u"Julie", u"August", u"September", u"October", u"November", u"December"] ), - 'se' : lambda v: slh( v, [u"ođđajagimánnu", u"guovvamánnu", u"njukčamánnu", u"cuoŋománnu", u"miessemánnu", u"geassemánnu", u"suoidnemánnu", u"borgemánnu", u"čakčamánnu", u"golggotmánnu", u"skábmamánnu", u"juovlamánnu"] ), - 'simple': lambda v: slh( v, [u"January", u"February", u"March", u"April", u"May", u"June", u"July", u"August", u"September", u"October", u"November", u"December"] ), - 'sk' : lambda v: slh( v, [u"január", u"február", u"marec", u"apríl", u"máj", u"jún", u"júl", u"august", u"september", u"október", u"november", u"december"] ), - 'sl' : lambda v: slh( v, [u"januar", u"februar", u"marec", u"april", u"maj", u"junij", u"julij", u"avgust", u"september", u"oktober", u"november", u"december"] ), - 'sq' : lambda v: slh( v, [u"Janari", u"Shkurti", u"Marsi (muaj)", u"Prilli", u"Maji", u"Qershori", u"Korriku", u"Gushti", u"Shtatori", u"Tetori", u"Nëntori", u"Dhjetori"] ), - 'sr' : lambda v: slh( v, [u"јануар", u"фебруар", u"март", u"април", u"мај", u"јун", u"јул", u"август", u"септембар", u"октобар", u"новембар", u"децембар"] ), - 'su' : lambda v: slh( v, [u"Januari", u"Pébruari", u"Maret", u"April", u"Méi", u"Juni", u"Juli", u"Agustus", u"Séptémber", u"Oktober", u"Nopémber", u"Désémber"] ), - 'sv' : lambda v: slh( v, [u"januari", u"februari", u"mars", u"april", u"maj", u"juni", u"juli", u"augusti", u"september", u"oktober", u"november", u"december"] ), - 'ta' : lambda v: slh( v, [u"ஜனவரி", u"பிப்ரவரி", u"மார்ச்", u"ஏப்ரல்", u"மே", u"ஜூன்", u"ஜூலை", u"ஆகஸ்டு", u"செப்டம்பர்", u"அக்டோபர்", u"நவம்பர்", u"டிசம்பர்"] ), - 'te' : lambda v: slh( v, [u"జనవరి", u"ఫిబ్రవరి", u"మార్చి", u"ఏప్రిల్", u"మే", u"జూన్", u"జూలై", u"ఆగష్టు", u"సెప్టెంబర్", u"అక్టోబర్", u"నవంబర్", u"డిసెంబర్"] ), - 'th' : lambda v: slh( v, [u"มกราคม", u"กุมภาพันธ์", u"มีนาคม", u"เมษายน", u"พฤษภาคม", u"มิถุนายน", u"กรกฎาคม", u"สิงหาคม", u"กันยายน", u"ตุลาคม", u"พฤศจิกายน", u"ธันวาคม"] ), - 'tl' : lambda v: slh( v, [u"Enero", u"Pebrero", u"Marso", u"Abril", u"Mayo", u"Hunyo", u"Hulyo", u"Agosto", u"Setyembre", u"Oktubre", u"Nobyembre", u"Disyembre"] ), - 'tpi': lambda v: slh( v, [u"Janueri", u"Februeri", u"Mas", u"Epril", u"Me", u"Jun", u"Julai", u"Ogas", u"Septemba", u"Oktoba", u"Novemba", u"Disemba"] ), - 'tr' : lambda v: slh( v, [u"Ocak", u"Şubat", u"Mart", u"Nisan", u"Mayıs", u"Haziran", u"Temmuz", u"Ağustos", u"Eylül", u"Ekim", u"Kasım", u"Aralık"] ), - 'tt' : lambda v: slh( v, [u"Ğínwar", u"Febräl", u"Mart", u"Äpril", u"May", u"Yün", u"Yül", u"August", u"Sentäber", u"Öktäber", u"Nöyäber", u"Dekäber"] ), - 'uk' : lambda v: slh( v, [u"січень", u"лютий", u"березень", u"квітень", u"травень", u"червень", u"липень", u"серпень", u"вересень", u"жовтень", u"листопад", u"грудень"] ), - 'ur' : lambda v: slh( v, [u"جنوری", u"فروری", u"مارچ", u"اپريل", u"مئ", u"جون", u"جولائ", u"اگست", u"ستمبر", u"اکتوبر", u"نومبر", u"دسمبر"] ), - 'vec': lambda v: slh( v, [u"genaro", u"febraro", u"marzso", u"apriłe", u"majo", u"giugno", u"lujo", u"agosto", u"setenbre", u"otobre", u"novenbre", u"diçenbre"] ), - 'vi' : lambda v: slh( v, [u"tháng một", u"tháng hai", u"tháng ba", u"tháng tư", u"tháng năm", u"tháng sáu", u"tháng bảy", u"tháng tám", u"tháng chín", u"tháng mười", u"tháng mười một", u"tháng 12"] ), - 'vo' : lambda v: slh( v, [u"Yanul", u"Febul", u"Mäzul", u"Prilul", u"Mayul", u"Yunul", u"Yulul", u"Gustul", u"Setul", u"Tobul", u"Novul", u"Dekul"] ), - 'wa' : lambda v: slh( v, [u"djanvî", u"fevrî", u"Måss (moes)", u"avri", u"may", u"djun", u"djulete", u"awousse", u"setimbe", u"octôbe", u"nôvimbe", u"decimbe"] ), - 'zh' : lambda v: slh( v, makeMonthList( u"%d月" )), - 'zh-min-nan': lambda v: slh( v, [u"It-goe̍h", u"Jī-goe̍h", u"Saⁿ-goe̍h", u"Sì-goe̍h", u"Gō·-goe̍h", u"La̍k-goe̍h", u"Chhit-goe̍h", u"Peh-goe̍h", u"Káu-goe̍h", u"Cha̍p-goe̍h", u"Cha̍p-it-goe̍h", u"Cha̍p-jī-goe̍h"] ), + 'af' : lambda v: slh( v, [u"Januarie", u"Februarie", u"Maart", u"April", u"Mei", u"Junie", u"Julie", u"Augustus", u"September", u"Oktober", u"November", u"Desember"] ), + 'als': lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), + 'an' : lambda v: slh( v, [u"chinero", u"frebero", u"marzo", u"abril", u"mayo", u"chunio", u"chulio", u"agosto", u"setiembre", u"otubre", u"nobiembre", u"abiento"] ), + 'ang': lambda v: slh( v, [u"Æfterra Gēola", u"Solmōnaþ", u"Hrēþmōnaþ", u"Ēastermōnaþ", u"Þrimilcemōnaþ", u"Sēremōnaþ", u"Mǣdmōnaþ", u"Wēodmōnaþ", u"Hāligmōnaþ", u"Winterfylleþ", u"Blōtmōnaþ", u"Gēolmōnaþ"] ), + 'ar' : lambda v: slh( v, [u"يناير", u"فبراير", u"مارس", u"أبريل", u"مايو", u"يونيو", u"يوليو", u"أغسطس", u"سبتمبر", u"أكتوبر", u"نوفمبر", u"ديسمبر"] ), + 'ast': lambda v: slh( v, [u"xineru", u"febreru", u"marzu", u"abril", u"mayu", u"xunu", u"xunetu", u"agostu", u"setiembre", u"ochobre", u"payares", u"avientu"] ), + 'be' : lambda v: slh( v, [u"студзень", u"люты", u"сакавік", u"красавік", u"травень", u"чэрвень", u"ліпень", u"жнівень", u"верасень", u"кастрычнік", u"лістапад", u"сьнежань"] ), + 'bg' : lambda v: slh( v, [u"януари", u"февруари", u"март", u"април", u"май", u"юни", u"юли", u"август", u"септември", u"октомври", u"ноември", u"декември"] ), + 'bn' : lambda v: slh( v, [u"জানুয়ারি", u"ফেব্রুয়ারি", u"মার্চ", u"এপ্রিল", u"মে", u"জুন", u"জুলাই", u"আগস্ট", u"সেপ্টেম্বর", u"অক্টোবর", u"নভেম্বর", u"ডিসেম্বর"] ), + 'br' : lambda v: slh( v, [u"Genver", u"C'hwevrer", u"Meurzh", u"Ebrel", u"Mae", u"Mezheven", u"Gouere", u"Eost", u"Gwengolo", u"Here", u"Du", u"Kerzu"] ), + 'bs' : lambda v: slh( v, [u"januar", u"februar", u"mart", u"april", u"maj", u"juni", u"juli", u"august", u"septembar", u"oktobar", u"novembar", u"decembar"] ), + 'ca' : lambda v: slh( v, [u"gener", u"febrer", u"març", u"abril", u"maig", u"juny", u"juliol", u"agost", u"setembre", u"octubre", u"novembre", u"desembre"] ), + 'ceb': lambda v: slh( v, [u"Enero", u"Pebrero", u"Marso", u"Abril", u"Mayo", u"Hunyo", u"Hulyo", u"Agosto", u"Septiyembre", u"Oktubre", u"Nobiyembre", u"Disyembre"] ), + 'co' : lambda v: slh( v, [u"ghjennaghju", u"frivaghju", u"marzu", u"aprile", u"maghju", u"ghjugnu", u"lugliu", u"aostu", u"settembre", u"uttrovi", u"nuvembri", u"decembre"] ), + 'cs' : lambda v: slh( v, [u"leden", u"únor", u"březen", u"duben", u"květen", u"červen", u"červenec", u"srpen", u"září", u"říjen", u"listopad", u"prosinec"] ), + 'csb': lambda v: slh( v, [u"stëcznik", u"gromicznik", u"strumiannik", u"łżëkwiôt", u"môj", u"czerwińc", u"lëpinc", u"zélnik", u"séwnik", u"rujan", u"lëstopadnik", u"gòdnik"] ), + 'cv' : lambda v: slh( v, [u"кăрлач", u"нарăс", u"Пуш", u"Ака", u"çу", u"çĕртме", u"утă", u"çурла", u"авăн", u"юпа", u"чӳк", u"раштав"] ), + 'cy' : lambda v: slh( v, [u"Ionawr", u"Chwefror", u"Mawrth", u"Ebrill", u"Mai", u"Mehefin", u"Gorffennaf", u"Awst", u"Medi", u"Hydref", u"Tachwedd", u"Rhagfyr"] ), + 'da' : lambda v: slh( v, [u"januar", u"februar", u"marts", u"april", u"maj", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"december"] ), + 'de' : lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), + 'el' : lambda v: slh( v, [u"Ιανουάριος", u"Φεβρουάριος", u"Μάρτιος", u"Απρίλιος", u"Μάιος", u"Ιούνιος", u"Ιούλιος", u"Αύγουστος", u"Σεπτέμβριος", u"Οκτώβριος", u"Νοέμβριος", u"Δεκέμβριος"] ), + 'en' : lambda v: slh( v, enMonthNames ), + 'eo' : lambda v: slh( v, [u"Januaro", u"Februaro", u"Marto", u"Aprilo", u"Majo", u"Junio", u"Julio", u"Aŭgusto", u"Septembro", u"Oktobro", u"Novembro", u"Decembro"] ), + 'es' : lambda v: slh( v, [u"enero", u"febrero", u"marzo", u"abril", u"mayo", u"junio", u"julio", u"agosto", u"septiembre", u"octubre", u"noviembre", u"diciembre"] ), + 'et' : lambda v: slh( v, [u"jaanuar", u"veebruar", u"märts", u"aprill", u"mai", u"juuni", u"juuli", u"august", u"september", u"oktoober", u"november", u"detsember"] ), + 'eu' : lambda v: slh( v, [u"Urtarril", u"Otsail", u"Martxo", u"Apiril", u"Maiatz", u"Ekain", u"Uztail", u"Abuztu", u"Irail", u"Urri", u"Azaro", u"Abendu"] ), + 'fa' : lambda v: slh( v, [u"ژانویه", u"فوریه", u"مارس", u"آوریل", u"مه", u"ژوئن", u"ژوئیه", u"اوت", u"سپتامبر", u"اکتبر", u"نوامبر", u"دسامبر"] ), + 'fi' : lambda v: slh( v, [u"tammikuu", u"helmikuu", u"maaliskuu", u"huhtikuu", u"toukokuu", u"kesäkuu", u"heinäkuu", u"elokuu", u"syyskuu", u"lokakuu", u"marraskuu", u"joulukuu"] ), + 'fo' : lambda v: slh( v, [u"januar", u"februar", u"mars", u"apríl", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ), + 'fr' : lambda v: slh( v, [u"janvier", u"février", u"mars (mois)", u"avril", u"mai", u"juin", u"juillet", u"août", u"septembre", u"octobre", u"novembre", u"décembre"] ), + 'fur': lambda v: slh( v, [u"Zenâr", u"Fevrâr", u"Març", u"Avrîl", u"Mai", u"Jugn", u"Lui", u"Avost", u"Setembar", u"Otubar", u"Novembar", u"Dicembar"] ), + 'fy' : lambda v: slh( v, [u"jannewaris", u"febrewaris", u"maart", u"april", u"maaie", u"juny", u"july", u"augustus", u"septimber", u"oktober", u"novimber", u"desimber"] ), + 'ga' : lambda v: slh( v, [u"Eanáir", u"Feabhra", u"Márta", u"Aibreán", u"Bealtaine", u"Meitheamh", u"Iúil", u"Lúnasa", u"Meán Fómhair", u"Deireadh Fómhair", u"Samhain", u"Nollaig"] ), + 'gl' : lambda v: slh( v, [u"xaneiro", u"febreiro", u"marzo", u"abril", u"maio", u"xuño", u"xullo", u"agosto", u"setembro", u"outubro", u"novembro", u"decembro"] ), + 'he' : lambda v: slh( v, [u"ינואר", u"פברואר", u"מרץ", u"אפריל", u"מאי", u"יוני", u"יולי", u"אוגוסט", u"ספטמבר", u"אוקטובר", u"נובמבר", u"דצמבר"] ), + 'hi' : lambda v: slh( v, [u"जनवरी", u"फ़रवरी", u"मार्च", u"अप्रैल", u"मई", u"जून", u"जुलाई", u"अगस्त", u"सितम्बर", u"अक्टूबर", u"नवम्बर", u"दिसम्बर"] ), + 'hr' : lambda v: slh( v, [u"siječanj", u"veljača", u"ožujak", u"travanj", u"svibanj", u"lipanj", u"srpanj", u"kolovoz", u"rujan", u"listopad", u"studeni", u"prosinac"] ), + 'hu' : lambda v: slh( v, [u"január", u"február", u"március", u"április", u"május", u"június", u"július", u"augusztus", u"szeptember", u"október", u"november", u"december"] ), + 'ia' : lambda v: slh( v, [u"januario", u"februario", u"martio", u"april", u"maio", u"junio", u"julio", u"augusto", u"septembre", u"octobre", u"novembre", u"decembre"] ), + 'id' : lambda v: slh( v, [u"Januari", u"Februari", u"Maret", u"April", u"Mei", u"Juni", u"Juli", u"Agustus", u"September", u"Oktober", u"November", u"Desember"] ), + 'ie' : lambda v: slh( v, [u"januar", u"februar", u"marte", u"april", u"may", u"junio", u"juli", u"august", u"septembre", u"octobre", u"novembre", u"decembre"] ), + 'io' : lambda v: slh( v, [u"januaro", u"februaro", u"Marto", u"aprilo", u"mayo", u"junio", u"julio", u"agosto", u"septembro", u"oktobro", u"novembro", u"decembro"] ), + 'is' : lambda v: slh( v, [u"janúar", u"febrúar", u"mars (mánuður)", u"apríl", u"maí", u"júní", u"júlí", u"ágúst", u"september", u"október", u"nóvember", u"desember"] ), + 'it' : lambda v: slh( v, [u"gennaio", u"febbraio", u"marzo", u"aprile", u"maggio", u"giugno", u"luglio", u"agosto", u"settembre", u"ottobre", u"novembre", u"dicembre"] ), + 'ja' : lambda v: slh( v, makeMonthList( u"%d月" )), + 'jv' : lambda v: slh( v, [u"Januari", u"Februari", u"Maret", u"April", u"Mei", u"Juni", u"Juli", u"Agustus", u"September", u"Oktober", u"November", u"Desember"] ), + 'ka' : lambda v: slh( v, [u"იანვარი", u"თებერვალი", u"მარტი", u"აპრილი", u"მაისი", u"ივნისი", u"ივლისი", u"აგვისტო", u"სექტემბერი", u"ოქტომბერი", u"ნოემბერი", u"დეკემბერი"] ), + 'kn' : lambda v: slh( v, [u"ಜನವರಿ", u"ಫೆಬ್ರವರಿ", u"ಮಾರ್ಚಿ", u"ಎಪ್ರಿಲ್", u"ಮೇ", u"ಜೂನ", u"ಜುಲೈ", u"ಆಗಸ್ಟ್", u"ಸೆಪ್ಟೆಂಬರ್", u"ಅಕ್ಟೋಬರ್", u"ನವೆಂಬರ್", u"ಡಿಸೆಂಬರ್"] ), + 'ko' : lambda v: slh( v, makeMonthList( u"%d월" )), + 'ksh': lambda v: slh( v, [u'Jannowaa', u'Febrowaa', u'Mä', u'Apprill', u'Meij', u'Juuni', u'Juuli', u'Aujuß', u'Sepptäber', u'Oktoober', u'Novemmber', u'Dezemmber'] ), + 'ku' : lambda v: slh( v, [u"rêbendan", u"reşemî", u"adar", u"avrêl", u"gulan", u"pûşper", u"tîrmeh", u"gelawêj (meh)", u"rezber", u"kewçêr", u"sermawez", u"berfanbar"] ), + 'kw' : lambda v: slh( v, [u"Mys Genver", u"Mys Whevrer", u"Mys Merth", u"Mys Ebrel", u"Mys Me", u"Mys Metheven", u"Mys Gortheren", u"Mys Est", u"Mys Gwyngala", u"Mys Hedra", u"Mys Du", u"Mys Kevardhu"] ), + 'la' : lambda v: slh( v, [u"Ianuarius", u"Februarius", u"Martius", u"Aprilis", u"Maius", u"Iunius", u"Iulius", u"Augustus (mensis)", u"September", u"October", u"November", u"December"] ), + 'lb' : lambda v: slh( v, [u"Januar", u"Februar", u"Mäerz", u"Abrëll", u"Mee", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), + 'li' : lambda v: slh( v, [u"jannewarie", u"fibberwarie", u"miert", u"april", u"mei", u"juni", u"juli", u"augustus (maond)", u"september", u"oktober", u"november", u"december"] ), + 'lt' : lambda v: slh( v, [u"Sausis", u"Vasaris", u"Kovas", u"Balandis", u"Gegužė", u"Birželis", u"Liepa", u"Rugpjūtis", u"Rugsėjis", u"Spalis", u"Lapkritis", u"Gruodis"] ), + 'lv' : lambda v: slh( v, [u"Janvāris", u"Februāris", u"Marts", u"Aprīlis", u"Maijs", u"Jūnijs", u"Jūlijs", u"Augusts", u"Septembris", u"Oktobris", u"Novembris", u"Decembris"] ), + 'mhr': lambda v: slh( v, [ u"шорыкйол", u"пургыж", u"ӱярня", u"вӱдшор", u"ага", u"пеледыш", u"сӱрем", u"сорла", u"идым", u"шыжа", u"кылме", u"декабрь"] ), + 'mi' : lambda v: slh( v, [u"Kohi-tātea", u"Hui-tanguru", u"Poutū-te-rangi", u"Paenga-whāwhā", u"Haratua", u"Pipiri", u"Hōngongoi", u"Here-turi-kōkā", u"Mahuru", u"Whiringa-ā-nuku", u"Whiringa-ā-rangi", u"Hakihea"] ), + 'ml' : lambda v: slh( v, [u"ജനുവരി", u"ഫെബ്രുവരി", u"മാര്ച്", u"ഏപ്രില്", u"മേയ്", u"ജൂണ്", u"ജൂലൈ", u"ആഗസ്റ്റ്", u"സപ്തന്പര്", u"ഒക്ടോബര്", u"നവന്പര്", u"ഡിസന്പര്"] ), + 'mr' : lambda v: slh( v, [u"जानेवारी", u"फेब्रुवारी", u"मार्च", u"एप्रिल", u"मे", u"जून", u"जुलै", u"ऑगस्ट", u"सप्टेंबर", u"ऑक्टोबर", u"नोव्हेंबर", u"डिसेंबर"] ), + 'ms' : lambda v: slh( v, [u"Januari", u"Februari", u"Mac", u"April", u"Mei", u"Jun", u"Julai", u"Ogos", u"September", u"Oktober", u"November", u"Disember"] ), + 'nap': lambda v: slh( v, [u"Jennaro", u"Frevaro", u"Màrzo", u"Abbrile", u"Maggio", u"Giùgno", u"Luglio", u"Aùsto", u"Settembre", u"Ottovre", u"Nuvembre", u"Dicembre"] ), + 'nds': lambda v: slh( v, [u"Januar", u"Februar", u"März", u"April", u"Mai", u"Juni", u"Juli", u"August", u"September", u"Oktober", u"November", u"Dezember"] ), + 'nl' : lambda v: slh( v, [u"januari", u"februari", u"maart", u"april", u"mei", u"juni", u"juli", u"augustus (maand)", u"september", u"oktober", u"november", u"december"] ), + 'nn' : lambda v: slh( v, [u"januar", u"februar", u"månaden mars", u"april", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ), + 'no' : lambda v: slh( v, [u"januar", u"februar", u"mars", u"april", u"mai", u"juni", u"juli", u"august", u"september", u"oktober", u"november", u"desember"] ), + 'oc' : lambda v: slh( v, [u"genièr", u"febrièr", u"març", u"abril", u"mai", u"junh", u"julhet", u"agost", u"setembre", u"octobre", u"novembre", u"decembre"] ), + 'os' : lambda v: slh( v, [u"январь", u"февраль", u"мартъи", u"апрель", u"май", u"июнь", u"июль", u"август", u"сентябрь", u"октябрь", u"ноябрь", u"декабрь"] ), + 'pl' : lambda v: slh( v, [u"styczeń", u"luty", u"marzec", u"kwiecień", u"maj", u"czerwiec", u"lipiec", u"sierpień", u"wrzesień", u"październik", u"listopad", u"grudzień"] ), + 'pt' : lambda v: slh( v, [u"Janeiro", u"Fevereiro", u"Março", u"Abril", u"Maio", u"Junho", u"Julho", u"Agosto", u"Setembro", u"Outubro", u"Novembro", u"Dezembro"] ), + 'ro' : lambda v: slh( v, [u"ianuarie", u"februarie", u"martie", u"aprilie", u"mai", u"iunie", u"iulie", u"august", u"septembrie", u"octombrie", u"noiembrie", u"decembrie"] ), + 'ru' : lambda v: slh( v, [u"январь", u"февраль", u"март", u"апрель", u"май", u"июнь", u"июль", u"август", u"сентябрь", u"октябрь", u"ноябрь", u"декабрь"] ), + 'sc' : lambda v: slh( v, [u"Ghennarzu", u"Frearzu", u"Martzu", u"Abrile", u"Maju", u"Làmpadas", u"Triulas", u"Aùstu", u"Cabudanni", u"Santugaìne", u"Santadria", u"Nadale"] ), + 'scn': lambda v: slh( v, [u"jinnaru", u"frivaru", u"marzu", u"aprili", u"maiu", u"giugnu", u"giugnettu", u"austu", u"sittèmmiru", u"uttùviru", u"nuvèmmiru", u"dicèmmiru"] ), + 'sco': lambda v: slh( v, [u"Januar", u"Februar", u"Mairch", u"Aprile", u"Mey", u"Juin", u"Julie", u"August", u"September", u"October", u"November", u"December"] ), + 'se' : lambda v: slh( v, [u"ođđajagimánnu", u"guovvamánnu", u"njukčamánnu", u"cuoŋománnu", u"miessemánnu", u"geassemánnu", u"suoidnemánnu", u"borgemánnu", u"čakčamánnu", u"golggotmánnu", u"skábmamánnu", u"juovlamánnu"] ), + 'simple': lambda v: slh( v, [u"January", u"February", u"March", u"April", u"May", u"June", u"July", u"August", u"September", u"October", u"November", u"December"] ), + 'sk' : lambda v: slh( v, [u"január", u"február", u"marec", u"apríl", u"máj", u"jún", u"júl", u"august", u"september", u"október", u"november", u"december"] ), + 'sl' : lambda v: slh( v, [u"januar", u"februar", u"marec", u"april", u"maj", u"junij", u"julij", u"avgust", u"september", u"oktober", u"november", u"december"] ), + 'sq' : lambda v: slh( v, [u"Janari", u"Shkurti", u"Marsi (muaj)", u"Prilli", u"Maji", u"Qershori", u"Korriku", u"Gushti", u"Shtatori", u"Tetori", u"Nëntori", u"Dhjetori"] ), + 'sr' : lambda v: slh( v, [u"јануар", u"фебруар", u"март", u"април", u"мај", u"јун", u"јул", u"август", u"септембар", u"октобар", u"новембар", u"децембар"] ), + 'su' : lambda v: slh( v, [u"Januari", u"Pébruari", u"Maret", u"April", u"Méi", u"Juni", u"Juli", u"Agustus", u"Séptémber", u"Oktober", u"Nopémber", u"Désémber"] ), + 'sv' : lambda v: slh( v, [u"januari", u"februari", u"mars", u"april", u"maj", u"juni", u"juli", u"augusti", u"september", u"oktober", u"november", u"december"] ), + 'ta' : lambda v: slh( v, [u"ஜனவரி", u"பிப்ரவரி", u"மார்ச்", u"ஏப்ரல்", u"மே", u"ஜூன்", u"ஜூலை", u"ஆகஸ்டு", u"செப்டம்பர்", u"அக்டோபர்", u"நவம்பர்", u"டிசம்பர்"] ), + 'te' : lambda v: slh( v, [u"జనవరి", u"ఫిబ్రవరి", u"మార్చి", u"ఏప్రిల్", u"మే", u"జూన్", u"జూలై", u"ఆగష్టు", u"సెప్టెంబర్", u"అక్టోబర్", u"నవంబర్", u"డిసెంబర్"] ), + 'th' : lambda v: slh( v, [u"มกราคม", u"กุมภาพันธ์", u"มีนาคม", u"เมษายน", u"พฤษภาคม", u"มิถุนายน", u"กรกฎาคม", u"สิงหาคม", u"กันยายน", u"ตุลาคม", u"พฤศจิกายน", u"ธันวาคม"] ), + 'tl' : lambda v: slh( v, [u"Enero", u"Pebrero", u"Marso", u"Abril", u"Mayo", u"Hunyo", u"Hulyo", u"Agosto", u"Setyembre", u"Oktubre", u"Nobyembre", u"Disyembre"] ), + 'tpi': lambda v: slh( v, [u"Janueri", u"Februeri", u"Mas", u"Epril", u"Me", u"Jun", u"Julai", u"Ogas", u"Septemba", u"Oktoba", u"Novemba", u"Disemba"] ), + 'tr' : lambda v: slh( v, [u"Ocak", u"Şubat", u"Mart", u"Nisan", u"Mayıs", u"Haziran", u"Temmuz", u"Ağustos", u"Eylül", u"Ekim", u"Kasım", u"Aralık"] ), + 'tt' : lambda v: slh( v, [u"Ğínwar", u"Febräl", u"Mart", u"Äpril", u"May", u"Yün", u"Yül", u"August", u"Sentäber", u"Öktäber", u"Nöyäber", u"Dekäber"] ), + 'uk' : lambda v: slh( v, [u"січень", u"лютий", u"березень", u"квітень", u"травень", u"червень", u"липень", u"серпень", u"вересень", u"жовтень", u"листопад", u"грудень"] ), + 'ur' : lambda v: slh( v, [u"جنوری", u"فروری", u"مارچ", u"اپريل", u"مئ", u"جون", u"جولائ", u"اگست", u"ستمبر", u"اکتوبر", u"نومبر", u"دسمبر"] ), + 'vec': lambda v: slh( v, [u"genaro", u"febraro", u"marzso", u"apriłe", u"majo", u"giugno", u"lujo", u"agosto", u"setenbre", u"otobre", u"novenbre", u"diçenbre"] ), + 'vi' : lambda v: slh( v, [u"tháng một", u"tháng hai", u"tháng ba", u"tháng tư", u"tháng năm", u"tháng sáu", u"tháng bảy", u"tháng tám", u"tháng chín", u"tháng mười", u"tháng mười một", u"tháng 12"] ), + 'vo' : lambda v: slh( v, [u"Yanul", u"Febul", u"Mäzul", u"Prilul", u"Mayul", u"Yunul", u"Yulul", u"Gustul", u"Setul", u"Tobul", u"Novul", u"Dekul"] ), + 'wa' : lambda v: slh( v, [u"djanvî", u"fevrî", u"Måss (moes)", u"avri", u"may", u"djun", u"djulete", u"awousse", u"setimbe", u"octôbe", u"nôvimbe", u"decimbe"] ), + 'zh' : lambda v: slh( v, makeMonthList( u"%d月" )), + 'zh-min-nan': lambda v: slh( v, [u"It-goe̍h", u"Jī-goe̍h", u"Saⁿ-goe̍h", u"Sì-goe̍h", u"Gō·-goe̍h", u"La̍k-goe̍h", u"Chhit-goe̍h", u"Peh-goe̍h", u"Káu-goe̍h", u"Cha̍p-goe̍h", u"Cha̍p-it-goe̍h", u"Cha̍p-jī-goe̍h"] ), }, 'Number': { @@ -517,6 +533,7 @@ 'cs' : lambda v: dh_number( v, u'%d (číslo)' ), 'da' : lambda v: dh_number( v, u'%d (tal)' ), 'en' : lambda v: dh_number( v, u'%d (number)' ), + 'fa' : lambda v: dh_number( v, u'%d (عدد)' ), 'fi' : lambda v: dh_number( v, u'%d (luku)' ), 'fr' : lambda v: dh_number( v, u'%d (nombre)' ), 'he' : lambda v: dh_number( v, u'%d (מספר)' ), @@ -641,7 +658,6 @@ 'su' : dh_simpleYearAD, 'ta' : dh_simpleYearAD, 'te' : dh_simpleYearAD, - #2005 => 'พ.ศ. 2548' 'th' : lambda v: dh_yearAD( v, u'พ.ศ. %T' ), 'tl' : dh_simpleYearAD, @@ -676,6 +692,7 @@ 'es' : lambda v: dh_yearBC( v, u'%d a. C.' ), 'et' : lambda v: dh_yearBC( v, u'%d eKr' ), 'eu' : lambda v: dh_yearBC( v, u'K. a. %d' ), + 'fa' : lambda v: dh_yearBC( v, u'%d (پیش از میلاد)' ), 'fi' : lambda v: dh_yearBC( v, u'%d eaa.' ), 'fo' : lambda v: dh_yearBC( v, u'%d f. Kr.' ), 'fr' : lambda v: dh_yearBC( v, u'-%d' ), @@ -752,6 +769,7 @@ 'eo' : lambda v: dh_decAD( v, u'%d-aj jaroj' ), 'es' : lambda v: dh_decAD( v, u'Años %d' ), 'et' : lambda v: dh_decAD( v, u'%d. aastad' ), + 'fa' : lambda v: dh_decAD( v, u'دهه %d (میلادی)' ), # decades ending in 00 are spelled differently 'fi' : lambda m: multi( m, [ @@ -871,10 +889,12 @@ 'he' : lambda v: dh_decBC( v, u'שנות ה־%d לפני הספירה' ), 'hr' : lambda v: dh_decBC( v, u'%dih p.n.e.' ), - 'hu' : lambda m: multi( m, [ - (lambda v: dh_constVal( v, 0, u'i.e. 0-ás évek' ), lambda p: p == 0), - (lambda v: dh_decBC( v, u'i.e. %d-as évek' ), lambda p: (p % 100 / 10) in [0,2,3,6,8]), - (lambda v: dh_decBC( v, u'i.e. %d-es évek' ), alwaysTrue)]), + 'hu' : lambda m: multi(m, [ + (lambda v: dh_constVal(v, 0, u'i. e. 0-s évek'), + lambda p: p == 0), + (lambda v: dh_decBC(v, u'i.e. %d-as évek' ), + lambda p: (p % 100 / 10) in [0,2,3,6,8]), + (lambda v: dh_decBC(v, u'i.e. %d-es évek'), alwaysTrue)]), 'it' : lambda v: dh_decBC( v, u'Anni %d a.C.' ), @@ -946,7 +966,7 @@ 'fa' : lambda m: multi( m, [ (lambda v: dh_constVal( v, 20, u'سده ۲۰ (میلادی)'), lambda p: p == 20), # This is a dummy value, just to avoid validation testing. Later, it should be replaced with a proper 'fa' titles - (lambda v: dh_centuryAD( v, u'%dth century' ), alwaysTrue)]), # ********** ERROR!!! + (lambda v: dh_centuryAD( v, u'سده %d (میلادی)' ), alwaysTrue)]), # ********** ERROR!!! 'fi' : lambda m: multi( m, [ (lambda v: dh_constVal( v, 1, u'Ensimmäinen vuosisata'), lambda p: p == 1), (lambda v: dh( v, u'%d00-luku', lambda i: i-1, lambda ii: ii[0]+1 ), alwaysTrue)]), @@ -1116,6 +1136,7 @@ (lambda v: dh_millenniumAD( v, u'%dth millennium' ), alwaysTrue)]), 'es' : lambda v: dh_millenniumAD( v, u'%R milenio' ), + 'fa' : lambda v: dh_millenniumAD( v, u'هزاره %R (میلادی)' ), 'fi' : lambda m: multi( m, [ (lambda v: dh_constVal( v, 1, u'Ensimmäinen vuosituhat'), lambda p: p == 1), (lambda v: dh_constVal( v, 2, u'Toinen vuosituhat'), lambda p: p == 2), @@ -1207,6 +1228,7 @@ 'Cat_Year_MusicAlbums': { 'cs' : lambda v: dh_yearAD( v, u'Alba roku %d' ), 'en' : lambda v: dh_yearAD( v, u'%d albums' ), + 'fa' : lambda v: dh_yearAD( v, u'آلبومهای %d (میلادی)'), 'fi' : lambda v: dh_yearAD( v, u'Vuoden %d albumit' ), 'fr' : lambda v: dh_yearAD( v, u'Album musical sorti en %d' ), 'he' : lambda v: dh_yearAD( v, u'אלבומי %d' ), @@ -1230,7 +1252,7 @@ 'eo' : lambda v: dh_singVal( v, u'Aktualaĵoj' ), 'es' : lambda v: dh_singVal( v, u'Actualidad' ), 'et' : lambda v: dh_singVal( v, u'Current events' ), - 'fa' : lambda v: dh_singVal( v, u'وقایع کنونی' ), # There is another fa:بهمن ۱۳۸۴ but i am not sure what it is. + 'fa' : lambda v: dh_singVal( v, u'رویدادهای کنونی'), 'fi' : lambda v: dh_singVal( v, u'Ajankohtaista' ), 'fr' : lambda v: dh_singVal( v, u'Actualités' ), 'gl' : lambda v: dh_singVal( v, u'Novas' ), @@ -1301,10 +1323,10 @@ else: formats[dayMnthFmts[i]][lang] = eval(u'lambda v: dh_dayOfMnth( v, u"%s" )' % patterns[i]) -def makeMonthList( pattern ): - return [ pattern % m for m in range(1,13) ] +def makeMonthList(pattern): + return [pattern % m for m in range(1,13)] -def makeMonthNamedList( lang, pattern, makeUpperCase = None ): +def makeMonthNamedList(lang, pattern, makeUpperCase=None): """Creates a list of 12 elements based on the name of the month. The language-dependent month name is used as a formating argument to the pattern. The pattern must be have one %s that will be replaced by the localized month name. @@ -1322,7 +1344,6 @@ def addFmt2( lang, isMnthOfYear, pattern, makeUpperCase = None ): addFmt( lang, isMnthOfYear, makeMonthNamedList( lang, pattern, makeUpperCase )) - # # Add day of the month formats to the formatting table: "en:May 15" # @@ -1353,6 +1374,7 @@ addFmt2('es', False, u"%%d de %s", False ) addFmt2('et', False, u"%%d. %s", False ) addFmt2('eu', False, u"%saren %%d", True ) +addFmt ('fa', False, [u"%d ژانویه", u"%d فوریه", u"%d مارس", u"%d آوریل", u"%d مه", u"%d ژوئن", u"%d ژوئیه", u"%d اوت", u"%d سپتامبر", u"%d اکتبر", u"%d نوامبر", u"%d دسامبر" ]) addFmt2('fi', False, u"%%d. %sta", False ) addFmt2('fo', False, u"%%d. %s", False ) addFmt ('fr', False, [ u"%d janvier", u"%d février", u"%d mars", u"%d avril", u"%d mai", u"%d juin", u"%d juillet", u"%d août", u"%d septembre", u"%d octobre", u"%d novembre", u"%d décembre" ]) @@ -1443,7 +1465,6 @@ u'(lambda v: dh_dayOfMnth( v, u"%%dañ %s" ), lambda p: p == 1),' + u'(lambda v: dh_dayOfMnth( v, u"%%d %s" ), alwaysTrue)])') % (brMonthNames[i], brMonthNames[i])) - # # Month of the Year: "en:May 1976" # @@ -1525,7 +1546,6 @@ """Returns the number of days in a given month, 1 being January, etc.""" return formatLimits[dayMnthFmts[month-1]][2]-1 - def getAutoFormat( lang, title, ignoreFirstLetterCase = True ): """Returns (dictName,value), where value can be a year, date, etc, and dictName is 'YearBC', 'December', etc.""" for dictName, dict in formats.iteritems(): @@ -1534,7 +1554,6 @@ return dictName, year except: pass - # sometimes the title may begin with an upper case while its listed as lower case, or the other way around # change case of the first character to the opposite, and try again if ignoreFirstLetterCase: @@ -1543,13 +1562,12 @@ title = title[0].lower() + title[1:] else: title = title[0].upper() + title[1:] - return getAutoFormat(lang, title, ignoreFirstLetterCase = False) except: pass - return None, None + class FormatDate(object): def __init__(self, site): self.site = site @@ -1565,10 +1583,8 @@ return formats['YearAD'][lang](year) # -# # Map testing methods # -# def printMonthArray( lang, pattern, capitalize ): """ @@ -1612,7 +1628,7 @@ raise # print( u"%s\t%s\t%f" % (formatName, code, time.clock() - startClock) ) -def test(quick = False, showAll = False): +def test(quick=False, showAll=False): """This is a test function, to be used interactively to test entire format conversion map at once @@ -1629,18 +1645,12 @@ else: testMapEntry( formatName, showAll ) # Extensive test! # Test decade rounding print(u"'%s' complete." % formatName) - if quick: #print(u'Date module quick consistency test passed') pass else: print(u'Date module has been fully tested') - -# -# # Do a quick test upon module loading! # Make sure the date file is correct -# -# test(quick=True)
1
0
0
0
SVN: [9184] trunk/pywikipedia/date.py
by xqt@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9184
Revision: 9184 Author: xqt Date: 2011-04-20 08:30:19 +0000 (Wed, 20 Apr 2011) Log Message: ----------- fix for _romanNumbers and hu-translations reported by Bin?\195?\161ris Modified Paths: -------------- trunk/pywikipedia/date.py Modified: trunk/pywikipedia/date.py =================================================================== --- trunk/pywikipedia/date.py 2011-04-20 07:51:58 UTC (rev 9183) +++ trunk/pywikipedia/date.py 2011-04-20 08:30:19 UTC (rev 9184) @@ -7,8 +7,10 @@ # © Rob W.W. Hooft, 2003 # © Daniel Herding, 2004 # © Ævar Arnfjörð Bjarmason, 2004 -# © Andre Engels, 2005 -# © Yuri Astrakhan, 2005-2006 FirstnameLastname(a)gmail.com (years/decades/centuries/millenniums str <=> int conversions) +# © Andre Engels, 2004-2005 +# © Yuri Astrakhan, 2005-2006 FirstnameLastname(a)gmail.com +# (years/decades/centuries/millenniums str <=> int conversions) +# © Pywikipedia bot team, 2004-2011 # # Distributed under the terms of the MIT license. # @@ -241,10 +243,10 @@ _decimalDigits = '0123456789' # Helper for roman numerals number representation -_romanNumbers = ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', +_romanNumbers = ('-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV', 'XVI', 'XVII', 'XVIII', 'XIX', 'XX', 'XXI', 'XXII', 'XXIII', 'XXIV', 'XXV', 'XXVI', - 'XXVII', 'XXVIII', 'XXVIX', 'XXX'] + 'XXVII', 'XXVIII', 'XXIX', 'XXX') def intToRomanNum(i): if i >= len(_romanNumbers): @@ -888,10 +890,12 @@ 'he' : lambda v: dh_decBC( v, u'שנות ה־%d לפני הספירה' ), 'hr' : lambda v: dh_decBC( v, u'%dih p.n.e.' ), - 'hu' : lambda m: multi( m, [ - (lambda v: dh_constVal( v, 0, u'i.e. 0-ás évek' ), lambda p: p == 0), - (lambda v: dh_decBC( v, u'i.e. %d-as évek' ), lambda p: (p % 100 / 10) in [0,2,3,6,8]), - (lambda v: dh_decBC( v, u'i.e. %d-es évek' ), alwaysTrue)]), + 'hu' : lambda m: multi(m, [ + (lambda v: dh_constVal(v, 0, u'i. e. 0-s évek'), + lambda p: p == 0), + (lambda v: dh_decBC(v, u'i.e. %d-as évek' ), + lambda p: (p % 100 / 10) in [0,2,3,6,8]), + (lambda v: dh_decBC(v, u'i.e. %d-es évek'), alwaysTrue)]), 'it' : lambda v: dh_decBC( v, u'Anni %d a.C.' ),
1
0
0
0
SVN: [9183] branches/rewrite/scripts/i18n
by siebrand@svn.wikimedia.org
20 Apr '11
20 Apr '11
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9183
Revision: 9183 Author: siebrand Date: 2011-04-20 07:51:58 +0000 (Wed, 20 Apr 2011) Log Message: ----------- Localisation updates from
http://translatewiki.net
. Modified Paths: -------------- branches/rewrite/scripts/i18n/basic.py branches/rewrite/scripts/i18n/category_redirect.py branches/rewrite/scripts/i18n/cosmetic_changes.py branches/rewrite/scripts/i18n/redirect.py Modified: branches/rewrite/scripts/i18n/basic.py =================================================================== --- branches/rewrite/scripts/i18n/basic.py 2011-04-19 09:07:26 UTC (rev 9182) +++ branches/rewrite/scripts/i18n/basic.py 2011-04-20 07:51:58 UTC (rev 9183) @@ -130,6 +130,10 @@ 'pt': { 'basic-changing': u'Robô: A alterar ...', }, + # Author: Giro720 + 'pt-br': { + 'basic-changing': u'Robô: Alterando ...', + }, 'ru': { 'basic-changing': u'Бот: изменил ...', }, Modified: branches/rewrite/scripts/i18n/category_redirect.py =================================================================== --- branches/rewrite/scripts/i18n/category_redirect.py 2011-04-19 09:07:26 UTC (rev 9182) +++ branches/rewrite/scripts/i18n/category_redirect.py 2011-04-20 07:51:58 UTC (rev 9183) @@ -316,7 +316,13 @@ 'category_redirect-edit-request-item': u'* %(title)s está em %(oldcat)s, que é um redireccionamento para %(newcat)s', 'category_redirect-fix-double': u'Robô: Correcção de redireccionamento duplo', }, + # Author: Giro720 'pt-br': { + 'category_redirect-add-template': u'Robô: Adição da predefinição de redirecionamento da categoria', + 'category_redirect-change-category': u'Robô: Alteração da categoria redirecionada [[:%(oldCatLink)s|%(oldCatTitle)s]] para [[:%(newCatLink)s|%(newCatTitle)s]]', + 'category_redirect-comment': u'Robô de manutenção de redirecionamentos de categorias', + 'category_redirect-edit-request': u'As seguintes páginas protegidas necessitam de atualização dos links de categorias: %(itemlist)s', + 'category_redirect-edit-request-item': u'* %(title)s está em %(oldcat)s, que é um redirecionamento para %(newcat)s', 'category_redirect-fix-double': u'Robô: Corrigido redirecionamento duplo', }, # Author: Xqt Modified: branches/rewrite/scripts/i18n/cosmetic_changes.py =================================================================== --- branches/rewrite/scripts/i18n/cosmetic_changes.py 2011-04-19 09:07:26 UTC (rev 9182) +++ branches/rewrite/scripts/i18n/cosmetic_changes.py 2011-04-20 07:51:58 UTC (rev 9183) @@ -225,6 +225,11 @@ 'cosmetic_changes-append': u'; mudanças triviais', 'cosmetic_changes-standalone': u'Robô: Mudanças triviais', }, + # Author: Giro720 + 'pt-br': { + 'cosmetic_changes-append': u'; mudanças triviais', + 'cosmetic_changes-standalone': u'Robô: Mudanças triviais', + }, # Author: Xqt 'qqq': { 'cosmetic_changes-append': u'Summary message that will be appended to the normal edit summary when cosmetic changes are made on the fly', Modified: branches/rewrite/scripts/i18n/redirect.py =================================================================== --- branches/rewrite/scripts/i18n/redirect.py 2011-04-19 09:07:26 UTC (rev 9182) +++ branches/rewrite/scripts/i18n/redirect.py 2011-04-20 07:51:58 UTC (rev 9183) @@ -144,6 +144,13 @@ 'redirect-remove-broken': u'ربات: (بن بست) تغییر مسیر به صفحهای که وجود ندارد', 'redirect-remove-loop': u'ربات: تغییر مسیر حلقهای', }, + # Author: Nedergard + # Author: Nike + 'fi': { + 'redirect-broken-redirect-template': u'{{db-r1}}', + 'redirect-fix-double': u'Botti korjasi kaksinkertaisen ohjauksen → %(to)s', + 'redirect-remove-broken': u'Botti: Ohjauksen kohdesivua ei ole olemassa', + }, # Author: Crochet.david # Author: IAlex 'fr': {
1
0
0
0
← Newer
1
2
3
4
5
6
7
Older →
Jump to page:
1
2
3
4
5
6
7
Results per page:
10
25
50
100
200