GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Apr 20, 2014 9:15 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: gtk_show_about_dialog and gettext problem
PostPosted: Fri Dec 27, 2013 4:24 am 
Offline
GTK+ Guru

Joined: Sun Apr 06, 2008 6:43 pm
Posts: 281
Location: Fortress of solitude
Hi:

I have a problem only with gtk_show_about_dialog, the thing is that all my strings are translated correctly to my locale, except gtk_show_about_dialog, this is my code on main.c:
Code:
bind_textdomain_codeset(PACKAGE, "UTF-8");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
setlocale(LC_ALL, "");

Now the code:
Code:
GdkPixbuf *icon = gtk_window_get_icon(GTK_WINDOW(data->win));
   const char *autores[] = {
      "Joel<aullidolinar@gmail.com>",
      NULL
   };
   const char *translators = "EspaƱol: Joel<aullidolinar@gmail.com>";
   gtk_show_about_dialog(GTK_WINDOW(data->win), "authors", autores, "translator-credits", translators, "logo", icon, "version", PACKAGE_VERSION, "comments", N_("GTK+-2.0 alarm utility"), NULL);

all the strings are translated corretly except "comments", because still appears in english, my po file is correctly generated:
Code:
#: ../src/form.cpp:79 ../data/gtkalarm.desktop.in.h:1
msgid "GTK+-2.0 alarm utility"
msgstr "Herramienta de alarma en GTK+-2.0"

All is fine except "comments", did I miss something? Thanks

_________________
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.


Top
 Profile  
 
 Post subject: Re: gtk_show_about_dialog and gettext problem
PostPosted: Fri Dec 27, 2013 5:31 pm 
Offline
GTK+ Guru

Joined: Sun Apr 06, 2008 6:43 pm
Posts: 281
Location: Fortress of solitude
I manage to solve my problem, seems that "N_" does not the correct keyword...it's "_"

_________________
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group