Re: msgfmt -c



Roger Leigh wrote:
> It's also worth mentioning here that glib-gettextize is way out of
> date and should not be used (it should be removed and replaced with a
> wrapper around autopoint).
>
> Now that gettext provides "autopoint", there is no need for
> glib-gettextize.  glib-gettextize doesn't exploit the features of
> current gettext releases (it was forked from gettextize several years
> ago, and has not been kept up-to-date), such as e.g. gettext-0.14.5.
>
> See http://bugzilla.gnome.org/show_bug.cgi?id=308769 for an example.

Thanks for the hint. I've just played a bit with it and tried to
replace glib-gettextize with autopoint. Here what I've done, if
somebody will try it too.

autogen.sh:
  Apart from the check in autogen.sh at top it means basically to
  replace the line
     echo "no" | glib-gettextize --force --copy
  with
     autopoint --force

configure.in:
  More work comes up in configure.in, where we have to remove the
  line
    ALL_LINGUAS="it"
  and call AM_GNU_GETTEXT instead of AM_GLIB_GNU_GETTEXT (the later
  must be removed or the build will fail) don't know what that
  implies for the GTK-way-of-gettext?
  We also have to add the following line for autopoint:
    AM_GNU_GETTEXT_VERSION(x.yy.zz)

Makefile.am:
  Here we have to mainly to add intl to SUBDIRS (before src)

po/LINGUAS:
  This file must be added and filled with the contents of the
  ALL_LINGUAS variable removed from configure.in

po/Makevars:
  This file is created after the first successful run of autopoint,
  but named Makevars.template. So we have to copy it to Makevars
  and modifing the containing line XGETTEXT_OPTIONS to our
  requirements (e.g.: XGETTEXT_OPTIONS = --from-code=UTF-8)
  This file must contain top_builddir = .., or the build will
  fail otherwise)

Now it should build an run properly. In my case it worked fine.

Cheers,

Andy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]