- Status Closed
- Percent Complete
- Task Type Bug Report
- Category Any
-
Assigned To
LinuxNIT - Operating System All
- Severity Medium
- Priority Very Low
- Reported Version 1.x Gem+ (beta's)
- Due in Version 2.0
-
Due Date
Undecided
- Votes
- Private
Attached to Project: Elive
Opened by thanatermesis - 2009-08-19
Last edited by thanatermesis - 2009-09-14
Opened by thanatermesis - 2009-08-19
Last edited by thanatermesis - 2009-09-14
FS#459 - net-connector: Connect button screwed up
Thanks to the report of DronAn[BY], aparently the connect and disconnect buttons has dissapeared, there’s a few screenshots:
http://bayimg.com/BaDfkaAcf http://bayimg.com/BADFnAacF
The reason of this is the russian language that screws something somewhere... there’s an error message found in the terminal:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
I don’t know the reason of why this affects the button and no other parts of the interface (see screenshot), but for now, since this is a very important bug (some ppl will not connect!), i have just disabled from gettext the message that broke this :) (note: the broking thing is not the button message but other element, please see the commit in this ticket comments)
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Temporal fix (verified) of this problem at: http://dev.elivecd.org/changeset/1334
DronAn: Can you try translate again (remove and write it again) the sentence "Status for" on eltrans ? (section net-connector), maybe the problem is a wrong caracter from this word, do the translation and use it on your system to see if works (if im not wrong, eltrans allow you to use your own made translations, not only to send it)
The problem was NOT from net-connector, but by an automatic-translated word from my tools (after DronAn has rewrited the default word, it does works), but I don't found any way to check if the utf8 characters are correctly encoded, I don't see any error by any way that Ill try... the only way that looks like to work is just like the error showed with this python error, with UnicodeDecode, so:
LinuxNIT can you possible to write a very small python to do this check ?(yes, just these 4 lines), that will work in pipe mode and if the result is wrong, then return/exit with the value 1, if is OK, return/exit with the value 0. So, for include this tool on my scripts in order to do something like that:Note: attached examples of real buggy messages/files (see the wrong-line-example.txt more exactly where is the real line that fails)
utf.tgz(4.5 KiB)Somebody has make me a small python tool to verify characters, but this tool doesn't looks like to show me any error with my tests :(
commands tried:
Update: This tool does strange random things ? sometimes it shows me "Nothing entered" message and sometimes no with the same command tried consecutively, WTF?
The same person has tell me that the code needs to have something like:
http://docs.python.org/library/gettext.html
He's the author of shellementary (python version of zenity using elementary), he uses this gettext code on it: http://trac.enlightenment.org/e/browser/trunk/PROTO/shellementary/shellementary.in
LinuxNIT: After to do a lot of changes, like changing totally the sentence to different ones, like changing the way gettext is managed in the code... I still not understanding anything, these are the actual changes to the code: http://dev.elivecd.org/changeset/1351
I have see that the problem is NOT the automated translations (DronAn has made its own translations too for this word and still the problem)
The only actual solution right now was to disable the message for translation (just like a plain text), remember that the problem looks like to be there but the visual problem is that another thing (connect/disconnect button) dissapears
DronAn[BY] has again problems with russian translations, now with other thing (maybe the same section), please contact him to do tests and stuff
Some comments from a dev of python-efl bindings: