Difference between revisions of "Talk:GEPS 029: GTK3-GObject introspection Conversion"

From Gramps
Jump to: navigation, search
m (compilation (gettext))
(compilation (gettext))
(3 intermediate revisions by the same user not shown)
Line 133: Line 133:
 
This one seems to be a problem on launch (setting encoding) but related to the compiled translation file!
 
This one seems to be a problem on launch (setting encoding) but related to the compiled translation file!
  
If I modify the 'msgid' (config.py), I get next error (not the next on translation strings sequence...):
+
If I modify the 'msgid' (config.py), I get next errors (not the next with non-ASCII characters on translation strings sequence!):
 
<pre>1349: ERROR: gramps.py: line 163: Unhandled exception
 
<pre>1349: ERROR: gramps.py: line 163: Unhandled exception
 
Traceback (most recent call last):
 
Traceback (most recent call last):
Line 146: Line 146:
 
   File "geps029/share/gramps/gen/ggettext.py", line 48, in gettext
 
   File "geps029/share/gramps/gen/ggettext.py", line 48, in gettext
 
     return unicode(pgettext.gettext(msgid))
 
     return unicode(pgettext.gettext(msgid))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)</pre>
+
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19:
 +
ordinal not in range(128)</pre>
 +
<pre>1546: ERROR: gramps.py: line 163: Unhandled exception
 +
Traceback (most recent call last):
 +
  File "share/gramps/gramps.py", line 421, in <module>
 +
    errors = run()
 +
  File "share/gramps/gramps.py", line 354, in run
 +
    from cli.argparser import ArgParser
 +
  File "geps029/share/gramps/cli/argparser.py", line 78, in <module>
 +
    """)
 +
  File "geps029/share/gramps/gen/ggettext.py", line 48, in gettext
 +
    return unicode(pgettext.gettext(msgid))
 +
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 12:
 +
ordinal not in range(128)</pre>
 +
 
 +
====fr.po====
 +
 
 +
...
 +
"Content-Type: text/plain; charset=UTF-8\n"
 +
...
 +
 
 +
# L'espace finale est pour précéder le « : » codé en dur.
 +
#: ../src/gui/configure.py
 +
msgid "Missing given name"
 +
msgstr "Prénom manquant "
 +
 
 +
# L'espace finale est pour précéder le « : » codé en dur.
 +
#: ../src/gui/configure.py
 +
msgid "Private record"
 +
msgstr "Enregistrement privé "
 +
 
  
 
:--[[User:Romjerome|Romjerome]] ([[User talk:Romjerome|talk]]) 08:46, 14 July 2012 (MST)
 
:--[[User:Romjerome|Romjerome]] ([[User talk:Romjerome|talk]]) 08:46, 14 July 2012 (MST)

Revision as of 04:07, 15 July 2012

Gettext support for pygobject 3.3.2 and GEPS029

  • pygobject 3.3.2:

Currently, I do not know why pygobject 3.3.2 is not compiled with gettext support?

I added:

gettext intltool

packages and I have downloaded sources (GEPS029).

I will try to compile the Tarball.

I hope to see more informations about missing config files after that.

--Romjerome (talk) 04:11, 14 July 2012 (MST)

  • GEPS029:
No more informations.
So, I do not know if this is important for testing gettext support on GEPS029!

command line

I get a warning by calling 'gramps.py':
GRAMPS GTK3: a g_value_get_object warning:
/usr/local/lib/python2.7/site-packages/gi/types.py:47: Warning: g_value_get_object: assertion 
`G_VALUE_HOLDS_OBJECT (value)' failed
  return info.invoke(*args, **kwargs)

or during session:

(gramps.py:14089): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion 
`icon_set != NULL' failed
  • errors by trying to (undo)edit or edit a given name (ex:Jérôme):
Error Details: 
===================

5102266: ERROR: gramps.py: line 163: Unhandled exception
Traceback (most recent call last):
  File "gramps/src/gui/widgets/undoableentry.py", line 210, in _on_delete_text
    undo_action = self.deleteclass(editable, start, end)
  File "gramps/src/gui/widgets/undoableentry.py", line 69, in __init__
    self.text = editable.get_chars(start, end).encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: 
ordinal not in range(128)

5419082: ERROR: gramps.py: line 163: Unhandled exception
Traceback (most recent call last):
  File "gramps/src/gui/editors/editperson.py", line 827, in save
    self._check_for_unknown_gender()
  File "gramps/src/gui/editors/editperson.py", line 720, in _check_for_unknown_gender
    d = GenderDialog(self.window)
  File "gramps/src/gui/editors/editperson.py", line 1059, in __init__
    GObject.GObject.__init__(self,
NameError: global name 'GObject' is not defined


System Information: 
===================

Python version: 2.7.3 (default, Apr 20 2012, 22:44:07) [GCC 4.6.3] 
BSDDB version: 5.1.2 (5, 1, 25) 
Gramps version: 3.5.0-0.SVN 
LANG: fr_FR.UTF-8
OS: Linux
Distribution: 3.2.0-23-generic-pae

GTK version    : 3.5.7
gobject version: 3.3.2
cairo version  : (1, 8, 8)
  • error by trying to edit a source, to edit a media object or to edit a repository (maybe related to the above one?)
5655409: ERROR: gramps.py: line 163: Unhandled exception
Traceback (most recent call last):
  File "gramps/src/plugins/view/sourceview.py", line 211, in add
    EditSource(self.dbstate, self.uistate, [], gen.lib.Source())
  File "gramps/src/gui/editors/editsource.py", line 69, in __init__
    dbstate.db.get_source_from_gramps_id)
  File "gramps/src/gui/editors/editprimary.py", line 84, in __init__
    self._create_tabbed_pages()
  File "gramps/src/gui/editors/editsource.py", line 173, in _create_tabbed_pages
    self.glade.get_object('vbox').pack_start(notebook, True)
  File "/usr/local/lib/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
TypeError: pack_start() takes exactly 5 arguments (3 given)
39185: ERROR: gramps.py: line 163: Unhandled exception
Traceback (most recent call last):
  File "gramps/src/plugins/view/mediaview.py", line 348, in add
    EditMedia(self.dbstate, self.uistate, [], gen.lib.MediaObject())
  File "gramps/src/gui/editors/editmedia.py", line 72, in __init__
    dbstate.db.get_object_from_gramps_id, callback)
  File "gramps/src/gui/editors/editprimary.py", line 84, in __init__
    self._create_tabbed_pages()
  File "gramps/src/editors/editmedia.py", line 229, in _create_tabbed_pages
    self.glade.get_object('vbox').pack_start(notebook, True)
  File "/usr/local/lib/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
TypeError: pack_start() takes exactly 5 arguments (3 given)
Traceback (most recent call last):
  File "gramps/src/gui/viewmanager.py", line 1223, in __create_page
    page_display = page.get_display()
  File "gramps/src/gui/views/pageview.py", line 391, in get_display
    self.top = self.build_interface()
  File "gramps/src/gui/views/pageview.py", line 156, in build_interface
    defaults[1])
  File "gramps/src/gui/grampsbar.py", line 108, in __init__
    self.dbstate, self.uistate)
  File "gramps/src/gui/widgets/grampletpane.py", line 170, in make_requested_gramplet
    getattr(module, opts["content"])(gui)
  File "gramps/src/gen/plug/_gramplet.py", line 60, in __init__
    self.init()
  File "gramps/src/plugins/gramplet/repositorydetails.py", line 33, in init
    self.gui.WIDGET = self.build_gui()
  File "gramps/src/plugins/gramplet/repositorydetails.py", line 48, in build_gui
    vbox.pack_start(self.table, fill=True, expand=False)
  File "/usr/local/lib/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
TypeError: pack_start() takes exactly 5 non-keyword arguments (2 given)

compilation (gettext)

  File "geps029/share/gramps/gramps.py", line 421, in <module>
    errors = run()
  File "geps029/share/gramps/gramps.py", line 354, in run
    from cli.argparser import ArgParser
  File "geps029/share/gramps/cli/argparser.py", line 50, in <module>
    from gen.config import config
  File "geps029/share/gramps/gen/config.py", line 288, in <module>
    register('preferences.no-given-text', "[%s]" % _("Missing Given Name"))
  File "geps029/share/gramps/gen/ggettext.py", line 48, in gettext
    return unicode(pgettext.gettext(msgid))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2:
ordinal not in range(128)

This one seems to be a problem on launch (setting encoding) but related to the compiled translation file!

If I modify the 'msgid' (config.py), I get next errors (not the next with non-ASCII characters on translation strings sequence!):

1349: ERROR: gramps.py: line 163: Unhandled exception
Traceback (most recent call last):
  File "share/gramps/gramps.py", line 421, in <module>
    errors = run()
  File "share/gramps/gramps.py", line 354, in run
    from cli.argparser import ArgParser
  File "geps029/share/gramps/cli/argparser.py", line 50, in <module>
    from gen.config import config
  File "geps029/share/gramps/gen/config.py", line 298, in <module>
    register('preferences.private-record-text', "[%s]" % _("Private Record"))
  File "geps029/share/gramps/gen/ggettext.py", line 48, in gettext
    return unicode(pgettext.gettext(msgid))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19:
ordinal not in range(128)
1546: ERROR: gramps.py: line 163: Unhandled exception
Traceback (most recent call last):
  File "share/gramps/gramps.py", line 421, in <module>
    errors = run()
  File "share/gramps/gramps.py", line 354, in run
    from cli.argparser import ArgParser
  File "geps029/share/gramps/cli/argparser.py", line 78, in <module>
    """)
  File "geps029/share/gramps/gen/ggettext.py", line 48, in gettext
    return unicode(pgettext.gettext(msgid))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 12: 
ordinal not in range(128)

fr.po

...
"Content-Type: text/plain; charset=UTF-8\n"
...
# L'espace finale est pour précéder le « : » codé en dur.
#: ../src/gui/configure.py
msgid "Missing given name"
msgstr "Prénom manquant "
# L'espace finale est pour précéder le « : » codé en dur.
#: ../src/gui/configure.py
msgid "Private record"
msgstr "Enregistrement privé "


--Romjerome (talk) 08:46, 14 July 2012 (MST)