Localization issues
- From: Lourembam Lenin <leninlou gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Localization issues
- Date: Wed, 29 Dec 2010 17:11:47 +0530
Hi Team,
I have localization issue:
I have a text in English which i want to convert it into French.
The sequence that i followed are as under:
1. generate all the text using xgettext command in terminal, creating
.pot file
2. creating .po file from .pot file
3. creating .mo file from .po file
I have copy the .mo file in "/usr/share/locale/fr/LC_MESSAGES"
here is my code for main.c file:
int main()
{
setlocale(LC_ALL,"");
bindtextdomain("main","/usr/share/locale");
textdomain("main");
printf( gettext("Hello world\n"));
return (0);
}
But when i execute the program, french version is not printed on terminal
after changing the language to french.
Please get me a solution for this.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]