WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Deluge crashes and wont start when locale set to other language then English  (Read 5633 times)

Offline ztealmax

  • Newbie
  • *
  • Posts: 45
Deluge crashes and wont start when locale set to other language then English


Quote
** (deluge:9140): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (deluge:9140): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (deluge:9140): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'

(deluge:9140): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.
[ERROR   ] 19:26:18 gtkui:69 Unable to initialize gettext/locale!
[ERROR   ] 19:26:18 gtkui:70 unsupported locale setting
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 58, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/local/lib/python2.7/locale.py", line 539, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
[ERROR   ] 19:26:19 daemon:107 Unable to initialize gettext/locale: unsupported locale setting
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted

im using lxde2 as my desktop most of it support my language Swedish, installed deluge-locale also

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Do you have the locale properly set up (via getlocale)?
The only barriers that can stop you are the ones you create yourself.

Offline ztealmax

  • Newbie
  • *
  • Posts: 45
hehe hmm, guess i missed that how this that work? i just downloaded deluge-locale and getlocale
and added lang=sv kmap=sv

what else should i do? thanx
« Last Edit: July 14, 2012, 06:03:55 PM by ztealmax »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
You need to pick the correct locale in the getlocale output, it will generate you a custom locale extension and output what lang= bootcode you should use.

Your kmap code should be "kmap=qwerty/sv-latin1", BTW.
The only barriers that can stop you are the ones you create yourself.

Offline ztealmax

  • Newbie
  • *
  • Posts: 45
thanx yea i had to go to console and type sudo getlocale.sh then it all worked out correctly
and the code at boot was lang=sv_SE.UTF-8

Thank you for the help :-)

Sincerelly
Martin