Bug 1397 - Allow localizing the command line help
authorTakao Fujiwara <takao.fujiwara@sun.com>
Tue, 6 Jan 2009 12:11:07 +0000 (12:11 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 6 Jan 2009 12:15:02 +0000 (12:15 +0000)
commit8e6423a1b6e08e140a888df5398206640deea59e
treeea236bc421b052bfb38f7980d4b10fe8b5a7bf86
parente5543a658f74bcc6efb477d34953e5f2bf08d930
Bug 1397 - Allow localizing the command line help

Clutter has a set of command line options that are added to every
application by means of clutter_init() or by obtaining the Clutter
GOptionGroup and using g_option_context_parse(). Thus, every Clutter
application will automatically have an --help command line switch
showing the list of options and their description.

At the moment, Clutter does not enable localization of the help,
thus making it less than useful on non-English locales.

This patch enables the machinery to create a localization file and
load it when initializing Clutter, by means of the GLib macros and
locale.h API we already use.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/clutter-main.c
clutter/glx/clutter-backend-glx.c
clutter/x11/clutter-backend-x11.c
configure.ac
po/POTFILES.in