commit 28db675224a842d7674fadf8afdebccbb49c4635 Author: Daniele Forsi <dani...@forsi.it> Date: Sun Jul 31 19:02:40 2011 +0200
Return translated strings for iPod model and generation Use the _() macro like in all other places since gi18n-lib.h defines it the way it's needed for libraries (ie with an explicit translation domain). This bug was visible in the list of iPod models shown in gtkpod when initializing a repository or recreating the directory structure. src/itdb_device.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- diff --git a/src/itdb_device.c b/src/itdb_device.c index 34b89fe..3baa53e 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -1669,7 +1669,7 @@ const gchar *itdb_info_get_ipod_model_name_string (Itdb_IpodModel model) verify if @model is valid */ while (ipod_model_name_table[i]) { - if (i==model) return gettext (ipod_model_name_table[i]); + if (i==model) return _(ipod_model_name_table[i]); ++i; } return NULL; @@ -1697,7 +1697,7 @@ const gchar *itdb_info_get_ipod_generation_string (Itdb_IpodGeneration generatio while (ipod_generation_name_table[i]) { if (i==generation) - return gettext (ipod_generation_name_table[i]); + return _(ipod_generation_name_table[i]); ++i; } return NULL; ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2