xkeyboard-config should use a standard mechanism for handling translations, not a custom xml format

Bug #95231 reported by Kamil Páral
4
Affects Status Importance Assigned to Milestone
xkeyboard-config (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

Ubuntu 7.04 (23.03.07)

gnome-keyboard-properties cannot be localized. If you look for strings that exist there, you will find them in the xkeyboard-config localization package. The problem is, gnome-keyboard-properties don't take localization from that package.

We (Czech) have fully localized xkeyboard-config package, but gnome-keyboard-properties are showing mainly in english.

I have figured out, that gnome-keyboard-properties takes its localization from files
/usr/share/X11/xkb/rules/xorg.xml
/usr/share/X11/xkb/rules/base.xml
/usr/share/X11/xkb/rules/xfree86.xml
(not sure which one of them)

But those xml files cannot be localized (at least in Rosseta)! And I wouldn't understand purpose of xkeyboard-config package though.

Please either fix gnome-keyboard-properties to look for localization into xkeyboard-config package or give some possibility to translate those xml files in Rosseta. I suppose the first option is right.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Could you make a screenshot of the dialog showing the non translated options? What locale do you use exactly?

Changed in control-center:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Kamil Páral (kamil.paral) wrote :

I use "cs_CZ.UTF-8" locale, and I attached a picture of System → Options → Keyboard (picture from Ubuntu 6.10, but it's the same as 7.04). All the strings are translated in xkeyboard-config package, but only a few of them are actually translated on the picture (only those strings available in forementioned xml files).

Revision history for this message
Kamil Páral (kamil.paral) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

The /usr/share/X11/xkb/rules/xorg.xml has no translation to your locale for those options, is your bug about xkeyboard-config not using rosetta?

Changed in control-center:
assignee: desktop-bugs → nobody
status: Needs Info → Unconfirmed
Revision history for this message
Kamil Páral (kamil.paral) wrote :

Oh yes it does have. Look at attached picture, "Dodatečné volby pro kompatibilitu" is one of few translated strings. Now look:

$ rgrep "Dodatečné volby pro kompatibilitu" /usr/share/locale-langpack/cs/
Binary file /usr/share/locale-langpack/cs/LC_MESSAGES/xkeyboard-config.mo matches

$ rgrep "Dodatečné volby pro kompatibilitu" /usr/share/X11/
/usr/share/X11/xkb/rules/xorg.xml: <description xml:lang="cs">Dodatečné volby pro kompatibilitu</description>
/usr/share/X11/xkb/rules/xfree86.xml: <description xml:lang="cs">Dodatečné volby pro kompatibilitu</description>
/usr/share/X11/xkb/rules/base.xml: <description xml:lang="cs">Dodatečné volby pro kompatibilitu</description>

You see? Those xml files (from fresh Ubuntu 7.04) have some translated string for the "cs" language, as well as xkeyboard-config.mo file. The problem is, translated strings are taken from xml files (and not from xkeyboard-config file) AND those xml files cannot be translated in rosetta.

As I said, I suppose the bug is, that gnome-keyboard-properties uses those xml for translation and not xkeyboard-config.mo, where are *exactly the same* strings (and we have them *all* translated via rosetta). If it is correct for gnome-keyboard-properties to use those xml files, what is then xkeyboard-config.mo good for? And how can we (in Ubuntu) translate gnome-keyboard-properties?

Revision history for this message
Gabor Kelemen (kelemeng) wrote :

This is bugging me too for some time, and I think there is a solution. The problem is, that xkeyboard-config has all its translated strings in xml files, which are generated at compile time. The only thing to do would be to automagically export all existing translations from rosetta, putting them in the po dir, then compiling the package. And of course the mo file should be removed from language packs, it's not used anyway. Simple enough, isn't it?
Any thoughts?

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi kamil.paral,

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with the latest development release of Ubuntu? (ISOs are available from cdimage.ubuntu.com)

If it remains an issue, could you also attach a new /var/log/Xorg.0.log?
Thanks in advance.

The output of lspci -vvnn would also be worth having.

Changed in xkeyboard-config:
status: New → Incomplete
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Yes, this is still an issue. The settings are still in an xml file, which is localized at compile time, and the translations are still not exported back to the source tree from LP translations. Furthermore, this problem in general was discussed on ubuntu-translators@ and was refused to solve, because it would take too much time/resources. See:

https://lists.ubuntu.com/archives/ubuntu-translators/2008-October/001822.html

Revision history for this message
Kamil Páral (kamil.paral) wrote :

In Ubuntu 8.10 most of the strings in keyboard configuration are translated into Czech (I guess that's an upstream's work). But as Gabor said, this is probably still an issue.

Changed in xkeyboard-config:
status: Incomplete → New
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automated message]

Hi kamil.paral,

Thanks for including the attached files. Could you also include your /var/log/Xorg.0.log?

Changed in xkeyboard-config:
status: New → Incomplete
Revision history for this message
Kamil Páral (kamil.paral) wrote :

I think it is not needed.

Bryce Harrington (bryce)
Changed in xkeyboard-config:
importance: Low → Wishlist
status: Incomplete → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

It is good to hear that the issue of czech translations being broken is now resolved.

The issue of xkeyboard-config not using Rosetta is not something we can address. We use what upstream provides, and it is their choice what software to use to handle translations. You are welcome to approach upstream to make this request, but esp. since launchpad still is not open sourced it might be more feasible to investigate if you can export your work in Rosetta in a form that the xkeyboard-config project can utilize.

Changed in xkeyboard-config:
status: Triaged → Won't Fix
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.