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 142258 - invald translated string in interface.c
invald translated string in interface.c
Status: RESOLVED DUPLICATE of bug 98510
Product: glade-legacy
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Damon Chaplin
Damon Chaplin
Depends on:
Blocks:
 
 
Reported: 2004-05-10 10:09 UTC by Stanislav Brabec
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stanislav Brabec 2004-05-10 10:09:35 UTC
- Start glade in non-English locale (e.g. cs_CZ).
- Generate a source code for any GNOME project with menu widget.

You can see following line in .glade file, if you create menu and don't do
anything in it:

                 <child>
                    <widget class="GtkImageMenuItem" id="new1">
                      <property name="visible">True</property>
                      <property
name="stock_item">GNOMEUIINFO_MENU_NEW_ITEM</property>
                      <property name="label" translatable="yes">_Nový</property>
                      <property name="use_underline">True</property>
                      <signal name="activate" handler="on_new1_activate"
last_modification_time="Sat, 08 May 2004 09:56:07 GMT"/>
                    </widget>
                  </child>

Other stock menu items are OK.

And you can see following in interface.c:
GNOMEUIINFO_MENU_NEW_ITEM (N_(_Nov\303\275"), NULL, on_new1_activate, NULL),
Comment 1 Damon Chaplin 2004-05-10 20:10:25 UTC
Yes, I wasn't sure what to do in that case. It does build OK, doesn't it?

This is a dup of bug 98510. Feel free to add comments there.

*** This bug has been marked as a duplicate of 98510 ***
Comment 2 Stanislav Brabec 2004-05-11 09:23:48 UTC
It does build, but "make distcheck" and "make dist" fails with error, that
string contains non-ASCII character.
Comment 3 Damon Chaplin 2004-05-12 10:40:13 UTC
Oh, I thought we escaped strings so they were OK in C.

This is OK C isn't it? The non-ASCII characters have been escaped.
GNOMEUIINFO_MENU_NEW_ITEM (N_(_Nov\303\275"), NULL, on_new1_activate, NULL),

Or is make dist complaining about something else?
Comment 4 Stanislav Brabec 2004-05-12 10:47:23 UTC
/usr/bin/xgettext --default-domain=projekt1 --directory=.. \
  --add-comments --keyword=_ --keyword=N_ \
  --files-from=./POTFILES.in \
&& test ! -f projekt1.po \
   || ( rm -f ./projekt1.pot \
        && mv projekt1.po ./projekt1.pot )
/usr/bin/xgettext: Non-ASCII string at src/interface.c:31.
                   Please specify the source encoding through --from-code.
mv: cannot stat `projekt1.po': není souborem ani adresáøem
make[2]: *** [projekt1.pot] Error 1
make[2]: Leaving directory `/home/sbrabec/Projekty/projekt1/po'
make[1]: *** [update-po] Error 2
make[1]: Leaving directory `/home/sbrabec/Projekty/projekt1/po'
make: *** [distdir] Error 1