GNOME Bugzilla – Bug 142258
invald translated string in interface.c
Last modified: 2004-12-22 21:47:04 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),
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 ***
It does build, but "make distcheck" and "make dist" fails with error, that string contains non-ASCII character.
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?
/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