speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH] Add i18n utilities to common library


From: Andrei Kholodnyi
Subject: [PATCH] Add i18n utilities to common library
Date: Tue, 5 Oct 2010 19:57:12 +0200

Hi Rui,

nice to see patches coming from you again, here are my comments

> +#ifndef I18N_H
> +#define I18N_H
> +#include <glib/gi18n.h>

not clear why do you need glib header here.
you have only void init_i18n (void) declaration.

> +void init_i18n(void);

it is better to have it returning status instead of void.
there are three functions called inside, all of them returning something.

> +void init_i18n(void)
> +{
> + ? ? ? setlocale(LC_ALL, "");
> + ? ? ? bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
> + ? ? ? textdomain(GETTEXT_PACKAGE);
> +}

shouldn't it be also
#include <libintl.h>

for bindtextdomain and textdomain?

Thanks,
Andrei.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]