Edgewall Software

Changes between Version 7 and Version 8 of TracL10N/Transifex


Ignore:
Timestamp:
Nov 4, 2012, 5:21:01 PM (11 years ago)
Author:
Christian Boos
Comment:

tx push error "No mapping found for language code …" and workaround

Legend:

Unmodified
Added
Removed
Modified
  • TracL10N/Transifex

    v7 v8  
    432432}}}
    433433
     434For some languages, push can fail like this:
     435{{{
     436$ tx push -t -l gl
     437Pushing translations for resource trac.0_12-stable-messages-js-pot:
     438Warning: No mapping found for language code 'gl'.
     439KeyError: 'gl'
     440}}}
     441This is because there's no `message-js.po` catalog for the 'gl' translation, only a `message.po` one.
     442
     443The workaround is to push explicitly this one, by using the `-r` option:
     444{{{
     445$ tx push -t -r trac.0_12-stable-messages-pot -l gl
     446Pushing translations for resource trac.0_12-stable-messages-pot:
     447Pushing 'gl' translations (file: trac\locale\gl\LC_MESSAGES\messages.po)
     448Done.
     449}}}
    434450
    435451== Notes about the Transifex "Releases"  #Releases