The i18n dict file must be committed first and you have to update submodules 
before your script works well. For your working copy you may c&p the dict file 
into the scripts/i18n folder for testing purposes.

Greetings
xqt

----- Ursprüngliche Nachricht -----
Von: Travis Briggs
Gesendet: 12.06.2014 19:30
An: Pywikibot discussion list
Betreff: Re: [Pywikipedia-l] (core) Adding code in scripts/i18n to gerritreview

Okay, so my follow up question is about this line:



comment = i18n.twtranslate(pywikibot.Site(), "selflink-remove")





Will that somehow work properly before the scripts/i18n code is submitted? Or 
do I have to submit the i18n code first and then make the core scripts change?
 



Thanks!

-Travis




On 12 June 2014 09:22, <[email protected]> wrote:
 



----- Original Nachricht ----
 Von:     Travis Briggs <[email protected]>
 An:      [email protected]
 Datum:   12.06.2014 02:41
 Betreff: [Pywikipedia-l] (core) Adding code in scripts/i18n to gerrit review
 


> Hi,
 >
 > I've sent my first patch for code review (
 > https://gerrit.wikimedia.org/r/#/c/138661/)
 >
 > As part of the review, it was noted that I should move a 'msg' variable
 > into scripts/i18n. I have done so, however now I'm wondering what the
 > review process for code in that submodule?
 >
 > Is there a way to add my i18n code to the same gerrit review? Conceptually
 > it is one change, though I'm not sure if maybe the way the i18n works is
 > that the script can function with the corresponding i18n script missing. Is
 > that possible?
 >
 > Thanks,
 > -Travis
 >
 >
 
You can't. You must not  use scripts/i18n directly but you have to commit the 
messages dict to pywikibot-i18n repository
 
Greetings
 xqt
 
_______________________________________________
 Pywikipedia-l mailing list
 [email protected]
 https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
 
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to