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 101796 - gnome-panel msgids includes non-ASCII characters breaking gettext
gnome-panel msgids includes non-ASCII characters breaking gettext
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
2.1.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-12-22 10:13 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2002-12-22 10:13:30 UTC
The files applets/gen_util/clock.c, applets/gen_util/mailcheck.c, and
gnome-panel/menu.c contains non-ascii characters that
causes many warnings from xgettext when I update the sv.po (which is in
UTF-8) with "intltool-update sv":


xgettext: warning: The following msgid contains non-ASCII characters.
                   This will cause problems to translators who use a
                   character encoding different from yours. Consider
                   using a pure ASCII msgid instead.
                   Copyright © 1998-2002 Free Software Foundation. Inc.
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: warning: The following msgid contains non-ASCII characters.
                   This will cause problems to translators who use a
                   character encoding different from yours. Consider
                   using a pure ASCII msgid instead.
                   Copyright © 1998-2002 Free Software Foundation, Inc.
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: warning: The following msgid contains non-ASCII characters.
                   This will cause problems to translators who use a
                   character encoding different from yours. Consider
                   using a pure ASCII msgid instead.
                   Copyright © 1997-2002 Free Software Foundation, Inc.
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence


Also, the character (©) will not be displayed in the msgid in the po file,
it will simply be an extra space. Thus, this message cannot be translated
correctly as it is, and causes the above warnings with gettext 0.11 and
newer, and possibly also other gettexts.
Comment 1 Christian Rose 2002-12-22 10:16:28 UTC
I could add something about proposed solutions. Either

1) go back to using (C) in the msgids, or
2) un-mark these messages for translation (if you are sure they don't
need localization).

Perhaps 2) is the best alternative. I don't know why these would need
localization as they are written now.
Comment 2 Mark McLoughlin 2002-12-22 19:44:25 UTC
Thanks Christian. I agree, I don't see why these would need to be
translated.

2002-12-23  Mark McLoughlin  <mark@skynet.ie>

        * menu.c: (about_cb): remove translations marks from around 
        the copyright notices for the about dialogs. The container 
        non-ascii characters and no longer need to be translated 
         anyhow. Fixes #101796.

2002-12-23  Mark McLoughlin  <mark@skynet.ie>

        * clock.c: (display_about_dialog):
        * mailcheck.c: (mailcheck_about): remove translations
        marks from around the copyright notices for the about
        dialogs. The container non-ascii characters and no longer
        need to be translated anyhow. Fixes #101796.