comparison src/status.c @ 13248:3e3d54d5be19

[gaim-migrate @ 15614] I think this is necessary to ensure the status primitive names are always translated. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 12 Feb 2006 17:24:28 +0000
parents ad7aa4aa753b
children 1ca4a579eb57
comparison
equal deleted inserted replaced
13247:c1a75785c8f2 13248:3e3d54d5be19
180 int i; 180 int i;
181 181
182 for (i = 0; i < GAIM_STATUS_NUM_PRIMITIVES; i++) 182 for (i = 0; i < GAIM_STATUS_NUM_PRIMITIVES; i++)
183 { 183 {
184 if (type == status_primitive_map[i].type) 184 if (type == status_primitive_map[i].type)
185 return status_primitive_map[i].name; 185 return _(status_primitive_map[i].name);
186 } 186 }
187 187
188 return status_primitive_map[0].name; 188 return _(status_primitive_map[0].name);
189 } 189 }
190 190
191 GaimStatusPrimitive 191 GaimStatusPrimitive
192 gaim_primitive_get_type_from_id(const char *id) 192 gaim_primitive_get_type_from_id(const char *id)
193 { 193 {
231 status_type->id = g_strdup(gaim_primitive_get_id_from_type(primitive)); 231 status_type->id = g_strdup(gaim_primitive_get_id_from_type(primitive));
232 232
233 if (name != NULL) 233 if (name != NULL)
234 status_type->name = g_strdup(name); 234 status_type->name = g_strdup(name);
235 else 235 else
236 status_type->name = g_strdup(_(gaim_primitive_get_name_from_type(primitive))); 236 status_type->name = g_strdup(gaim_primitive_get_name_from_type(primitive));
237 237
238 return status_type; 238 return status_type;
239 } 239 }
240 240
241 GaimStatusType * 241 GaimStatusType *