comparison src/evdev-plug/ed_ui.c @ 2764:d45b4beadf6c

Made "bluetooth" and "streambrowser" plugins translatable.
author Stany HENRY <StrassBoy@gmail.com>
date Thu, 03 Jul 2008 09:07:03 +0200
parents 145966acb0c4
children 3134a0987162
comparison
equal deleted inserted replaced
2763:bbde87558ec7 2764:d45b4beadf6c
207 guint is_available = 0; 207 guint is_available = 0;
208 gtk_tree_model_get( model , iter , DEVLIST_COL_ISAVAILABLE , &is_available , -1 ); 208 gtk_tree_model_get( model , iter , DEVLIST_COL_ISAVAILABLE , &is_available , -1 );
209 switch (is_available) 209 switch (is_available)
210 { 210 {
211 case DEVLIST_ISAVAILABLE_DET: 211 case DEVLIST_ISAVAILABLE_DET:
212 g_object_set( renderer , "text" , "Detected" , 212 g_object_set( renderer , "text" , _("Detected") ,
213 "foreground" , "Green" , "foreground-set" , TRUE , 213 "foreground" , "Green" , "foreground-set" , TRUE ,
214 "background" , "Black" , "background-set" , TRUE , NULL ); 214 "background" , "Black" , "background-set" , TRUE , NULL );
215 break; 215 break;
216 case DEVLIST_ISAVAILABLE_CUSTOM: 216 case DEVLIST_ISAVAILABLE_CUSTOM:
217 g_object_set( renderer , "text" , "Custom" , 217 g_object_set( renderer , "text" , _("Custom") ,
218 "foreground" , "Yellow" , "foreground-set" , TRUE , 218 "foreground" , "Yellow" , "foreground-set" , TRUE ,
219 "background" , "Black" , "background-set" , TRUE , NULL ); 219 "background" , "Black" , "background-set" , TRUE , NULL );
220 break; 220 break;
221 case DEVLIST_ISAVAILABLE_NOTDET: 221 case DEVLIST_ISAVAILABLE_NOTDET:
222 default: 222 default:
223 g_object_set( renderer , "text" , "Not Detected" , 223 g_object_set( renderer , "text" , _("Not Detected") ,
224 "foreground" , "Orange" , "foreground-set" , TRUE , 224 "foreground" , "Orange" , "foreground-set" , TRUE ,
225 "background" , "Black" , "background-set" , TRUE , NULL ); 225 "background" , "Black" , "background-set" , TRUE , NULL );
226 break; 226 break;
227 } 227 }
228 return; 228 return;
399 gtk_list_store_append( GTK_LIST_STORE(model) , &iter ); 399 gtk_list_store_append( GTK_LIST_STORE(model) , &iter );
400 gtk_list_store_set( GTK_LIST_STORE(model) , &iter , 400 gtk_list_store_set( GTK_LIST_STORE(model) , &iter ,
401 DEVLIST_COL_ISACTIVE , FALSE , 401 DEVLIST_COL_ISACTIVE , FALSE ,
402 DEVLIST_COL_NAME , name , 402 DEVLIST_COL_NAME , name ,
403 DEVLIST_COL_FILENAME , file , 403 DEVLIST_COL_FILENAME , file ,
404 DEVLIST_COL_PHYS , "(custom)" , 404 DEVLIST_COL_PHYS , _("(custom)") ,
405 DEVLIST_COL_ISAVAILABLE , DEVLIST_ISAVAILABLE_CUSTOM , 405 DEVLIST_COL_ISAVAILABLE , DEVLIST_ISAVAILABLE_CUSTOM ,
406 DEVLIST_COL_BINDINGS , NULL , -1 ); 406 DEVLIST_COL_BINDINGS , NULL , -1 );
407 task_done = TRUE; 407 task_done = TRUE;
408 } 408 }
409 else 409 else