After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709335 - gaupol crashes with fr_FR.utf_8 locale
gaupol crashes with fr_FR.utf_8 locale
Status: RESOLVED FIXED
Product: gaupol
Classification: Other
Component: general
0.24.1
Other Linux
: Normal normal
: ---
Assigned To: gaupol-maint@gnome.bugs
gaupol-maint@gnome.bugs
: 709341 709515 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-10-03 06:35 UTC by Patrice
Modified: 2013-10-06 17:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patrice 2013-10-03 06:35:07 UTC
Traceback

File: /usr/lib/python3.3/site-packages/aeidon/deco.py
Line: 307
In: inner_wrapper

    try: return function(*args, **kwargs)

File: /usr/lib/python3.3/site-packages/gaupol/agents/save.py
Line: 69
In: _on_save_main_document_as_activate

    self.save_main_as(page)

File: /usr/lib/python3.3/site-packages/gaupol/agents/save.py
Line: 186
In: save_main_as

    page.project.main_file)

File: /usr/lib/python3.3/site-packages/gaupol/agents/save.py
Line: 118
In: _select_file

    dialog = gaupol.SaveDialog(self.window, title, mode)

File: /usr/lib/python3.3/site-packages/gaupol/dialogs/save.py
Line: 46
In: __init__

    self._init_encoding_combo()

File: /usr/lib/python3.3/site-packages/gaupol/dialogs/file.py
Line: 40
In: _init_encoding_combo

    self._populate_encoding_combo()

File: /usr/lib/python3.3/site-packages/gaupol/dialogs/file.py
Line: 104
In: _populate_encoding_combo

    name = aeidon.encodings.code_to_long_name(encoding)

File: /usr/lib/python3.3/site-packages/aeidon/encodings.py
Line: 165
In: code_to_long_name

    description=item[DESC]))

KeyError: 'nom'

Environment

Platform: Linux-3.11.2-1-ARCH-x86_64-with-arch
Locale: fr_FR.utf_8

Libraries

Python: 3.3.2
GTK+: 3.8.4
PyGObject: 3.8.3
GStreamer: 1.0.10.0

Python Packages

aeidon: 0.24.1
gaupol: 0.24.1
enchant: 1.6.5
gtkspellcheck: 4.0.1
chardet: 2.0.1
Comment 1 Osmo Salomaa 2013-10-03 17:07:12 UTC
*** Bug 709341 has been marked as a duplicate of this bug. ***
Comment 2 Osmo Salomaa 2013-10-03 18:13:39 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

The bug is in the French translation. While waiting for the next release you work around the problem yourself, e.g. by removing the French translation file, which is usually '/usr/share/locale/fr/LC_MESSAGES/gaupol.mo' or '/usr/local/share/locale/fr/LC_MESSAGES/gaupol.mo'.

commit 0f1aef71e10d54a844bc39a14c84f6f9cc322c89
Author: Osmo Salomaa <otsaloma@iki.fi>
Date:   Thu Oct 3 21:05:45 2013 +0300

    Fix broken string formatting in the French translation.

    https://bugzilla.gnome.org/show_bug.cgi?id=709335

https://github.com/otsaloma/gaupol/commit/0f1aef71e10d54a844bc39a14c84f6f9cc322c89
Comment 3 Patrice 2013-10-03 18:18:18 UTC
Thanks!
I did what you say and it's working!
Great and quick job!
Thanks for all your work!
Comment 4 Osmo Salomaa 2013-10-06 17:56:51 UTC
*** Bug 709515 has been marked as a duplicate of this bug. ***