Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization produces broken layout files #8

Closed
akien-mga opened this issue Dec 18, 2015 · 6 comments
Closed

Internationalization produces broken layout files #8

akien-mga opened this issue Dec 18, 2015 · 6 comments

Comments

@akien-mga
Copy link
Contributor

As reported by @doktor5000 on https://bugs.mageia.org/show_bug.cgi?id=17306#c2, it looks like the use of the German translation in QJoypad 4.2.0 produces broken layout files, as the translated names are used in it:

$ cat ~/.qjoypad3/test.lyt

# QJoyPad 4.2 Layout File

Joystick 1 {
        Achse 1: +key 0, -key 0
        Achse 2: +key 0, -key 0
        Achse 3: +key 0, -key 0
        Achse 4: +key 0, -key 0
        Achse 5: +key 0, -key 0
        Achse 6: +key 0, -key 0
        Taste 1: key 38
        Taste 2: key 53
        Taste 3: key 0
        Taste 4: key 0
        Taste 5: key 0
        Taste 6: key 0
        Taste 7: key 0
        Taste 8: key 0
        Taste 9: key 0
        Taste 10: key 0
        Taste 11: key 0
        Taste 12: key 0
}

which triggers this error upon load:

/dev/input: keybinding file failure
Error while reading layout. Unrecognized word: achse

It appears to be a regression as 4.1.0 had no translation support.

@akien-mga
Copy link
Contributor Author

On a side note, he also noted that version 4.1.0 used to save only the settings for keys that had actually been modified, while 4.2.0 seems to save all keys, assigning non-custom ones to key 0.
See:

$ cat ~/.qjoypad3/test.lyt 
# QJoyPad 4.1 Layout File

Joystick 1 {
        Button 1: key 38
        Button 2: key 53
}

for the same configuration as above. It's not a bug per se, but if it's not a conscious change, it might be work looking into to prevent saving non-relevant info in the layout file.

@akien-mga
Copy link
Contributor Author

Note that there are a couple other issues in the bug report linked above, we might open some more tickets once they're better diagnosed.

@panzi
Copy link
Owner

panzi commented Dec 18, 2015

Oh, wow. That's quite a stupid bug, sorry. I'll look into it when I have time.

@panzi
Copy link
Owner

panzi commented Dec 18, 2015

About:

it doesn't show the name of my gamepad, it only shows "Joysticks: 1".
E.g. systemsettings shows "Logitech Logitech RumblePad 2 USB (/dev/input/js0)"

In the qjoypad window it shows the gamepad name, but in the tray menu it only shows a list of gamepad numbers. That probably doesn't make any sense whatsoever and should just be removed (or replaced with the number of gamepads connected). I have no idea what I was thinking there. I'll remove it.

@panzi
Copy link
Owner

panzi commented Dec 18, 2015

Even though I didn't have time I fixed it.

@panzi panzi closed this as completed Dec 18, 2015
@akien-mga
Copy link
Contributor Author

Awesome, thanks. I'll package it and we'll test the new version thoroughly too :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants