Bugs item #1820282, was opened at 2007-10-25 17:38 Message generated for change (Settings changed) made by leogregianin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: André Malafaya Baptista (malafaya) Assigned to: Nobody/Anonymous (nobody) Summary: featured.py for language codes including hyphen
Initial Comment: When i tried running featured.py with switches:
-fromlang:be-x-old -fromlang:roa-tara
it actually started processing. Only later i realized those languages are not implemented in featured.py. I don't really understand what it was processing but it definitely was not the corresponding language.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2007-11-13 19:47
Message: Logged In: YES user_id=1037345 Originator: YES
OK, I understood that apparently I have to put in 2 codes enclosing the comma. Just to be sure, why 2 codes? According to the -fromlang switch's help (although not very well written), the first code is "my language". I assume this is the wiki I'm updating but this is already given by the -lang switch (or the default in user_config.py). The language I put as the first one, before the comma, is processed as a foreign wiki anyway. Isn't this 2-code thing deprecated? If not, why 2 languages and not 3 for example, or just 1? It tries to process both languages separated by commas, not giving any special status to the first one.
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin) Date: 2007-11-13 13:37
Message: Logged In: YES user_id=1136737 Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for this, don't running. And zh-classical and zh-yue work done.
featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
?????? <<<
No corresponding page in wikipedia:pt
???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: Leonardo Gregianin (leogregianin) Date: 2007-11-13 13:36
Message: Logged In: YES user_id=1136737 Originator: NO
be-x-old and roa-tara don't have category or backlink in featured.py, for this, don't running. And zh-classical and zh-yue work done.
featured.py -fromlang:pt,zh-classical
Getting references to [[zh-classical:Template:????]]
?????? <<<
No corresponding page in wikipedia:pt
???? <<<
No corresponding page in wikipedia:pt
do you need put two languages in -fromlang:xx,yy
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2007-10-26 09:47
Message: Logged In: YES user_id=1037345 Originator: YES
The problem seems to be here:
if len(fromlang)==1 and fromlang[0].index("-")>=0:
Apparently, if you only specify one language, it considers the hyphen as a separator between the first and last languages to process.
If I specify:
-fromlang:zh-yue,zh-yue
then I can make it work.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2007-10-25 17:49
Message: Logged In: YES user_id=1037345 Originator: YES
I just tried for implemented language codes zh-yue and zh-classical. No work is done by the bot. It doesn't even try to download the template linking pages.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1820282...