xffm updates, i18n still broken
edscott wilson garcia
edscott at imp.mx
Mon Apr 7 05:16:32 CEST 2003
El dom, 06-04-2003 a las 16:47, Olivier Fourdan escribió:
> Hi all,
> I've made a few updates to xffm:
> - update POTFILES list (was outdated, missing files, etc.)
> - update xffm.pot (oudated as POTFILES was outdated)
> - update fr.po
> - update all po files (but I did not add missing translations :) )
> - add i18n support to xfdiff4
> However, i18n is still broken in xffm as seen on the following
> screenshot :
> I set the LANG to fr_FR (I know, I did not add UTF-8 on purpose, the
> applications should set that) but some text in the treeview does not use
> UTF-8 ("Réseau", "Système") while other in the menu correctly use it
> ("Aller à").
Hmm... It looks like a missing consideration in the xffm code.
> Looks like some init is broken. Still, the following lines are present
> and correct :
> #ifdef ENABLE_NLS
> bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
> bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
> gtk_init(&argc, &argv);
> So what's wrong ? I suspect it has something to do with the use of libs
> (libxffm) - I think the bind_textdomain_codeset should be redone at lib
> init (if any) because the lib is initted by ld.so (I think). Dunno.
> If anybody has an idea...
I think it might be this line in src/treeview.c:
tag[i] = g_locale_to_utf8(_(root[i].label), -1, &r_bytes, &w_bytes,
I've changed it to a subroutine which checks if it is valid utf-8 before
acting. It might work ok now.
> Olivier Fourdan <fourdan at xfce.org>
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
More information about the Xfce4-dev