Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema con system-config-printer-kde y locales
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
HitMaker
Apprentice
Apprentice


Joined: 15 May 2008
Posts: 175
Location: Helsinki

PostPosted: Wed Nov 04, 2009 9:54 am    Post subject: Problema con system-config-printer-kde y locales Reply with quote

Buenas a todos :lol:

A ver, que me pasa algo que tengo localizado pero no sé como arreglarlo.

He instalado la entrada de configuración de impresoras del menu de preferencias de KDE, pero tengo un problemilla con las locales:

Si tengo puesto en o es_ES como locales, sin problemas, pero si tengo es_ES.UTF-8 da fallos:

hitmaker@Hit-Linux ~ $ LC_ALL="es_ES" kcmshell4 system-config-printer-kde --> OK
hitmaker@Hit-Linux ~ $ LC_ALL="en_EN" kcmshell4 system-config-printer-kde --> OK

hitmaker@Hit-Linux ~ $ LC_ALL="es_ES.UTF-8" kcmshell4 system-config-printer-kde... peta:
Quote:

Traceback (most recent call last):
File "<string>", line 18, in kpythonpluginfactory_bridge
File "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py", line 4004, in CreatePlugin
kcm = u.makeui(component_data, widget_parent)
File "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py", line 223, in makeui
special_choice=_("Automatic rotation")),
File "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py", line 51, in _
return unicode(i18n(string), "utf-8")
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 6-9: invalid data


mis locales están apriori bien configuradas y tal (vamos con el 02locale y demás, funcionando aparentemente bien)

Entonces, si arranco a mano con LC_ALL="es_ES" me permite ver la impresora pero si arranca a través del menú que sería como arrancar a mano con es_ES.UTF-8 pues me indica que hay un error y no me sale la impresora.

He visto esto: https://bugs.gentoo.org/281379

Pero no entiendo el arreglo, viene como arreglarlo creo pero no sé donde meter esas lineas, se que van en la config del "/usr/share/apps/system-config-printer-kde/system-config-printer-kde.py" Pero no sé en que linea.

Saludos
_________________
E8200 - 4GB - P5E-VM - 8800GTS & Dell SP2309W - 750GB Seagate SATA2 7200.11 -Antec P180Mini & Enermax Modu82+ 525W - Gentoo
MacBook Pro 3.1 - Snow Leopard
Samsung NC10
Back to top
View user's profile Send private message
paynalton
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jun 2006
Posts: 106
Location: Mexico

PostPosted: Wed Nov 04, 2009 12:54 pm    Post subject: Reply with quote

Me parece que es un cambio que se debe aplicar a las fuentes de kde antes de compilar, dentro del archivo system-config-printer-kde.py

En la docuentación de gentoo hay instrucciones de como crear y aplicar ese parche. Si lo creas y te funciona despues lo mandas para que se comparta a todos los demás y tu nombre figure entre los miles de colaboradores de gentoo jejjejeje


Code:
# diff system-config-printer-kde.py.orig system-config-printer-kde.py.sbm
> 51c51,60
<     return unicode(i18n(string), "utf-8")
---
>     try:
>         translated_string=i18n(string)
>     except:
>         print "ERROR: Couldn't translate %s" % translated_string
>     try:
>         return unicode(translated_string, "utf-8")
>     except:
>         print "ERROR: Couldn't unicode %s" % translated_string
>         return unicode(string, "utf-8")

_________________
"Si un ave no rompe su huevo morirá antes de nacer.... Nosotros somos el ave y el mundo es nuestro huevo. POR LA REVOLUCION DEL MUNDO!!!!" Utena
Back to top
View user's profile Send private message
HitMaker
Apprentice
Apprentice


Joined: 15 May 2008
Posts: 175
Location: Helsinki

PostPosted: Sat Nov 07, 2009 6:27 pm    Post subject: Reply with quote

Na lo "arreglé", hice un downgrade del sistema a estable y con paquetes no testing va perfecto :)
_________________
E8200 - 4GB - P5E-VM - 8800GTS & Dell SP2309W - 750GB Seagate SATA2 7200.11 -Antec P180Mini & Enermax Modu82+ 525W - Gentoo
MacBook Pro 3.1 - Snow Leopard
Samsung NC10
Back to top
View user's profile Send private message
hugomdq
n00b
n00b


Joined: 23 Apr 2010
Posts: 1

PostPosted: Fri Apr 23, 2010 5:44 am    Post subject: Reply with quote

solamente eliminando un guion bajo asi:

#nano /usr/share/apps/system-config-printer-kde/system-config-printer-kde.py

self.ui.cmbJOOrientationRequested,
self.ui.btnJOResetOrientationRequested,
combobox_map = [3, 4, 5, 6],
special_choice=_("Automatic rotation")),
options.OptionAlwaysShown ("fitplot", bool, False,
self.ui.cbJOFitplot,


debe quedar asi:


self.ui.cmbJOOrientationRequested,
self.ui.btnJOResetOrientationRequested,
combobox_map = [3, 4, 5, 6],
special_choice=("Automatic rotation")), (sin el guion bajo despues de special_choice=)
options.OptionAlwaysShown ("fitplot", bool, False,
self.ui.cbJOFitplot,

a mi me funciono perfecto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum