← Back to team overview

ubuntu-translations-coordinators team mailing list archive

[Bug 999155] Re: Onboard crashes due to mixup in Catalan Translation

 

In reply to comment #14 and #15:

Here is the SRU that I mentioned in comment #14: 
https://bugs.launchpad.net/ubuntu/precise/+source/onboard/+bug/999111

However, the delta between version 0.97.0 and 0.97.1 was considered to huge for an SRU, so we were asked whether we could cherry-pick only the fix for the translation bug in order to add it to the 0.97.0 package available in the main repository for precise. marmuta, the main coder of Onboard since quite some time, derived a patch from version 0.97.1 to fix the translation bug in 0.97.0 in order to propose it as an alternative SRU for precise. Here it is: 
https://bugs.launchpad.net/ubuntu/precise/+source/onboard/+bug/1023434

The SRU criteria are essentially the same as described in the second SRU
bug thread; in this thread, it is a bug in another language file that
causes Onboard to crash. The purpose of the fix is to have Onboard
ignore the translation strings with errors and keep on running. This is
important, because people using an on-screen keyboard lose their main
interaction device if the on-screen keyboard, which is Onboard in
Ubuntu, crashes.

If the catalan language file has not been updated in the meanwhile
(there was a language pack update a few days ago), the fix can simply be
tested by running Onboard with the catalan language. The details about
how to do it can be found in the second SRU bug thread mentioned here.

-- 
You received this bug notification because you are a member of Ubuntu
Translations Coordinators, which is subscribed to Ubuntu Translations.
Matching subscriptions: Ubuntu Translations bug mail
https://bugs.launchpad.net/bugs/999155

Title:
  Onboard crashes due to mixup in Catalan Translation

Status in Onboard on-screen keyboard:
  Fix Released
Status in Ubuntu Translations:
  Triaged
Status in “onboard” package in Ubuntu:
  In Progress

Bug description:
  In response to
  https://bugs.launchpad.net/ubuntu/+source/onboard/+bug/930891/comments/13:

  There is a translation mixup with the Catalan language in the 0.97 branch of Onboard.
  "{description} '{filepath}' found." was translated as
  "S'ha trobat {description} «{filename}»."

  Onboard 0.97.0 fails to start:

  Traceback (most recent call last):
    File "/usr/bin/onboard", line 16, in <module>
      ob = Onboard()
    File "/usr/lib/python2.7/dist-packages/Onboard/OnboardGtk.py", line 64, in __init__
      self.init()
    File "/usr/lib/python2.7/dist-packages/Onboard/OnboardGtk.py", line 86, in init
      self.reload_layout()
    File "/usr/lib/python2.7/dist-packages/Onboard/OnboardGtk.py", line 350, in reload_layout
      self.load_layout(config.layout_filename,
    File "/usr/lib/python2.7/dist-packages/Onboard/Config.py", line 387, in get_layout_filename
      self.LAYOUT_FILE_EXTENSION))
    File "/usr/lib/python2.7/dist-packages/Onboard/ConfigUtils.py", line 233, in _get_user_sys_filename_gs
      system_filename_func)
    File "/usr/lib/python2.7/dist-packages/Onboard/ConfigUtils.py", line 276, in _get_user_sys_filename
      .format(description=description, filepath=filepath))
  KeyError: 'filename'

  Onboard 0.97.1 just prints warnings:

  WARNING:utils: _format: Skipping bad translation msgid='{description}
  '{filepath}' found.' msgstr='S'ha trobat {description} «{filename}».'
  KeyError: u'filename'

To manage notifications about this bug go to:
https://bugs.launchpad.net/onboard/+bug/999155/+subscriptions


References