WORKAROUND:
-----------
I can get the driver names translated into Spanish changing the Jockey
source code.
In /usr/lib/python2.5/site-packages/jockey/ui.py file, change the
get_ui_driver_name method from:
def get_ui_driver_name(self, handler_info):
'''Return handler name, as it should be presented in the UI.
This cares about translation, as well as tagging recommended drivers.
'''
result = handler_info['name']
result = self._(result)
if bool(handler_info['recommended']):
result += ' [%s]' % self.string_recommended
return result
to:
def get_ui_driver_name(self, handler_info):
'''Return handler name, as it should be presented in the UI.
This cares about translation, as well as tagging recommended drivers.
'''
result = handler_info['name']
ary = result.rsplit('(')
real_name = ary[0][:-1]
version = (ary[1].rsplit(' '))[1][:-1]
result = self._(real_name) + ' (' + self._('version %s') % version + ')'
if bool(handler_info['recommended']):
result += ' [%s]' % self.string_recommended
return result
My code is obviously very inelegant. The problem is that
handler_info['name'] returns both the driver name and the version number
concatenated together. For example:
handler_info['name'] = 'NVIDIA accelerated graphics driver (version
180)'
so I need to split it into two components: the real driver name and the
version. The two components are then localizated apart with
self._(real_name) + ' (' + self._('version %s') % version + ')'.
I attach an screenshot of the Jockey UI with the fix applied.
** Attachment added: "jockey_fixed.png"
http://launchpadlibrarian.net/24819501/jockey_fixed.png
--
Driver names shows untranslated, albeit they're translated
https://bugs.launchpad.net/bugs/353081
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs