sugarlabs / turtleart-activity

A block-based Logo programming environment
MIT License
18 stars 54 forks source link

Missing pt_BR locale #3

Closed clarkep closed 9 years ago

clarkep commented 9 years ago

./osbuild build crashed on building this activity.

[osbuild /]$ build turtleart
* Building turtleart

Command failed: python2.7 /home/broot/sugar-build/turtleart/setup.py install --prefix /home/broot/sugar-build/build/out/install

/home/broot/sugar-build/turtleart/po/pt_BR.po:845: end-of-line within string
msgfmt: found 1 fatal error
ERROR - msgfmt failed with return code 1.
Traceback (most recent call last):
  File "/home/broot/sugar-build/turtleart/setup.py", line 32, in <module>
    bundlebuilder.start()
  File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py", line 403, in start
    globals()['cmd_' + args[0]](config, args[1:])
  File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py", line 326, in cmd_install
    installer.install(suboptions.prefix)
  File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py", line 238, in install
    self.builder.build()
  File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py", line 105, in build
    self.build_locale()
  File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py", line 137, in build_locale
    cat = gettext.GNUTranslations(open(mo_file, 'r'))
IOError: [Errno 2] No such file or directory: '/home/broot/sugar-build/turtleart/locale/pt_BR/LC_MESSAGES/org.laptop.TurtleArtActivity.mo'
clarkep commented 9 years ago

I tried to reproduce in a new dev-environment and couldn't. weird. Everything seems ok

walterbender commented 9 years ago

There was a bad string in the PO file. I pushed a patch which fixed it.

-walte

On Sun, Nov 16, 2014 at 2:21 PM, clarkep notifications@github.com wrote:

Closed #3 https://github.com/walterbender/turtleart/issues/3.

— Reply to this email directly or view it on GitHub https://github.com/walterbender/turtleart/issues/3#event-193935553.

Walter Bender Sugar Labs http://www.sugarlabs.org