miracle2k / android2po

Convert Android string resources to gettext, and back.
BSD 2-Clause "Simplified" License
126 stars 50 forks source link

Unable to init my project #4

Closed TomTasche closed 14 years ago

TomTasche commented 14 years ago

Hello,

I downloaded android2po, installed and tried to init my project with 'a2po init' command. It detects all languages correctly, but fails without writing any file (only an empty 'locale' folder appears).

Here is the output: XXXX@YYYY:~/Programmieren/MailBoxer/android/workspace/SayMyName Donut$ a2po export Found 4 language(s): de, es, fr, it Generating template.pot Traceback (most recent call last): File "/usr/local/bin/a2po", line 3, in android2po.run() File "/usr/local/lib/python2.6/dist-packages/android2po/program.py", line 264, in run sys.exit(main(sys.argv) or 0) File "/usr/local/lib/python2.6/dist-packages/android2po/program.py", line 255, in main return cmd.execute() File "/usr/local/lib/python2.6/dist-packages/android2po/commands.py", line 183, in execute default_po = xml2po(file) File "/usr/local/lib/python2.6/dist-packages/android2po/convert.py", line 263, in xml2po catalog.add(org_value, trans_value or u'', context=name) TypeError: add() got an unexpected keyword argument 'context'

Thanks Tom

miracle2k commented 14 years ago

Are you sure you are using the SVN version of babel? See the instruction for how to build it.

TomTasche commented 14 years ago

I installed babel from the Ubuntu-repository because it's the same version you suggest in Readme (0.9.4). Maybe it isn't the same. Sorry and thanks for your help!

miracle2k commented 14 years ago

The readme says ">" 0.9.4. That one character is quite important ;)

It seems like babel development is picking up again, so hopefully there'll be a new release soon.