screenshots don't have the correct language code

Bug #556532 reported by Luke Jennings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickshot
Fix Committed
High
Neil Tallim

Bug Description

I think this is python-pybabel related but some how the dutch screenshots are not being taken in dutch. I asked in #ubuntu-nl to double check but this is not dutch http://screenshots.ubuntu-manual.org/data/02-assistive-technologies@nl@1270227508.png .
This is http://screenshots.ubuntu-manual.org/data/05-firefox-ppa@nl@1270226586.png . A lot of the dutch screenshots are in arabic of some form.

When running quickshot the language is detected ok except netherlands (aruba) which causes quickshot to crash. I have added a commet to https://bugs.edge.launchpad.net/quickshot/+bug/554861 .

summary: - languages are not being detected correctly
+ screenshots don't have the correct language code
Revision history for this message
Neil Tallim (red-hamsterx) wrote :

I just tried the following as a test...

import locale
print locale.getdefaultlocale()

...and this happened.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: nl_AW

Environment: LiveCD, installed to disk, running with Quickshot user. Nothing else was changed.

We may need to check with Python's Issue Tracker to see if this is a known problem and possibly submit a patch, if it isn't somehow specific to the Lucid Python build.

Revision history for this message
Luke Jennings (ubuntujenkins) wrote :

Possibly this has something to do with it look at the last post in http://bugs.python.org/issue

Revision history for this message
Luke Jennings (ubuntujenkins) wrote :
Revision history for this message
Neil Tallim (red-hamsterx) wrote :

For the 10.10 beta run, until we have a chance to rip what we need from babel and explore our options, we're just going to trust the LANG environment variable (with a little massaging) to report the right thing. That should bypass the root of this issue.

Changed in quickshot:
importance: Undecided → High
status: New → Fix Committed
assignee: nobody → Neil Tallim (red-hamsterx)
milestone: none → 1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.