babel.core.UnknownLocaleError: unknown locale 'ast'

Bug #928589 reported by hades
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wicd
Confirmed
Wishlist
David Paleino

Bug Description

I got latest code and when configure :

compiling catalog 'po/fr_CA.po' to 'translations/fr_CA/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ka.po' to 'translations/ka/LC_MESSAGES/wicd.mo'
Traceback (most recent call last):
  File "/usr/bin/pybabel", line 9, in <module>
    load_entry_point('Babel==0.9.6', 'console_scripts', 'pybabel')()
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 1106, in main
    return CommandLineInterface().run(sys.argv)
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 650, in run
    return getattr(self, cmdname)(args[1:])
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 751, in compile
    catalog = read_po(infile, locale)
  File "/usr/lib/python2.7/site-packages/babel/messages/pofile.py", line 124, in read_po
    catalog = Catalog(locale=locale, domain=domain)
  File "/usr/lib/python2.7/site-packages/babel/messages/catalog.py", line 215, in __init__
    locale = Locale.parse(locale)
  File "/usr/lib/python2.7/site-packages/babel/core.py", line 212, in parse
    return cls(*parse_locale(identifier, sep=sep))
  File "/usr/lib/python2.7/site-packages/babel/core.py", line 137, in __init__
    raise UnknownLocaleError(identifier)
babel.core.UnknownLocaleError: unknown locale 'ast'
compiling catalog 'po/fr.po' to 'translations/fr/LC_MESSAGES/wicd.mo'
compiling catalog 'po/es_AR.po' to 'translations/es_AR/LC_MESSAGES/wicd.mo'
compiling catalog 'po/tr.po' to 'translations/tr/LC_MESSAGES/wicd.mo'
compiling catalog 'po/zh_HK.po' to 'translations/zh_HK/LC_MESSAGES/wicd.mo'

this time ,babel crash :

core.py:137:__init__:UnknownLocaleError: unknown locale 'ast'
Traceback (most recent call last):
  File "/usr/bin/pybabel", line 9, in <module>
    load_entry_point('Babel==0.9.6', 'console_scripts', 'pybabel')()
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 1106, in main
    return CommandLineInterface().run(sys.argv)
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 650, in run
    return getattr(self, cmdname)(args[1:])
  File "/usr/lib/python2.7/site-packages/babel/messages/frontend.py", line 751, in compile
    catalog = read_po(infile, locale)
  File "/usr/lib/python2.7/site-packages/babel/messages/pofile.py", line 124, in read_po
    catalog = Catalog(locale=locale, domain=domain)
  File "/usr/lib/python2.7/site-packages/babel/messages/catalog.py", line 215, in __init__
    locale = Locale.parse(locale)
  File "/usr/lib/python2.7/site-packages/babel/core.py", line 212, in parse
    return cls(*parse_locale(identifier, sep=sep))
  File "/usr/lib/python2.7/site-packages/babel/core.py", line 137, in __init__
    raise UnknownLocaleError(identifier)
UnknownLocaleError: unknown locale 'ast'

Local variables in innermost frame:
identifier: 'ast'
language: 'ast'
script: None
self: <Locale "ast">
variant: None
territory: None

and install,I got this:

copying translations/ka/LC_MESSAGES/wicd.mo -> /usr/share/locale/ka/LC_MESSAGES/
error: can't copy 'translations/ast/LC_MESSAGES/wicd.mo': doesn't exist or not a regular file

os: fedora x64
kernel 3.2.3
python 2.7

Revision history for this message
hades (whererun) wrote :

fedora 16 x64 ,so sorry !

Revision history for this message
David Paleino (dpaleino) wrote :

Hello,

this is a known bug. Unfortunately, pybabel doesn't support Asturian.

Does the installation stop there? If yes, then it needs fixing; if not, then you will "only" miss the Asturian translation. The traceback during "configure" is harmless :)

David

Changed in wicd:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → David Paleino (dpaleino)
Revision history for this message
David Paleino (dpaleino) wrote :
Revision history for this message
hades (whererun) wrote :

thanks so much .I hnow it now .

I will cp some translations files into their files .

Revision history for this message
David Paleino (dpaleino) wrote :

After configure, you can do:

 msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo

That will compile the Asturian messages :)

I'll try to hack a quick solution, waiting for pybabel to support it.

Revision history for this message
hades (whererun) wrote :

thanks again .I will do that and waiting for pybabel to support !

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.