rem: dialogue ( "L'importation a chou." );
add: dialogue ( _("Cannot import file.") );
context: void importer_ib ( void ){  GtkWidget *dialog;  GtkWidget *label;  GtkWidget *fenetre_nom;  gint resultat;  gchar *nom_ib;  GtkWidget *bouton_merge_remplace;  GtkWidget *menu;  GtkWidget *menu_item;  GtkWidget *separateur;  dialog = gnome_dialog_new ( _("Import the budgetary lines"),			      GNOME_STOCK_BUTTON_OK,			      GNOME_STOCK_BUTTON_CANCEL,			      NULL );  gtk_window_set_transient_for ( GTK_WINDOW ( dialog ),				 GTK_WINDOW ( window ));  gnome_dialog_set_default ( GNOME_DIALOG ( dialog ),			     0 );  gtk_signal_connect ( GTK_OBJECT ( dialog ),		       "destroy",		       GTK_SIGNAL_FUNC ( gtk_signal_emit_stop_by_name ),		       "destroy" );  label = gtk_label_new ( COLON(_("Enter a filename")) );  gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),		       label,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( label );  fenetre_nom = gnome_file_entry_new ( "nom_fichier",				       "nom_fichier" );  gnome_file_entry_set_default_path ( GNOME_FILE_ENTRY ( fenetre_nom ),				      dernier_chemin_de_travail );  gtk_widget_set_usize ( gnome_file_entry_gnome_entry ( GNOME_FILE_ENTRY ( fenetre_nom )),			 300,			 FALSE );  gtk_entry_set_text ( GTK_ENTRY ( gnome_file_entry_gtk_entry ( GNOME_FILE_ENTRY ( fenetre_nom ))),		       g_strconcat ( dernier_chemin_de_travail,				     ".igsb",				     NULL ));  gtk_entry_set_position ( GTK_ENTRY ( gnome_file_entry_gtk_entry ( GNOME_FILE_ENTRY ( fenetre_nom ))),			   strlen (dernier_chemin_de_travail ));  gnome_dialog_editable_enters ( GNOME_DIALOG ( dialog ),				 GTK_EDITABLE ( gnome_file_entry_gtk_entry ( GNOME_FILE_ENTRY ( fenetre_nom ))));  gtk_window_set_focus ( GTK_WINDOW ( dialog ),			 gnome_file_entry_gtk_entry ( GNOME_FILE_ENTRY ( fenetre_nom )));  gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),		       fenetre_nom,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( fenetre_nom );  /* on permet de remplacer/fusionner la liste */  separateur = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),		       separateur,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( separateur );  /* pour viter un warning lors de la compil */  bouton_merge_remplace = NULL;  if ( no_derniere_operation )    {      /*       il y a dj des oprations dans le fichier, on ne peut que fusionner */      label = gtk_label_new ( "Le fichier contient dj des oprations,\nles deux listes d'IB seront fusionnes." );      gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),			   label,			   FALSE,			   FALSE,			   0 );      gtk_widget_show ( label );    }  else    {      label = gtk_label_new ( "Voulez-vous :" );      gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),			   label,			   FALSE,			   FALSE,			   0 );      gtk_widget_show ( label );      bouton_merge_remplace = gtk_option_menu_new ();      gtk_box_pack_start ( GTK_BOX ( GNOME_DIALOG ( dialog ) -> vbox ),			   bouton_merge_remplace,			   FALSE,			   FALSE,			   0 );      gtk_widget_show ( bouton_merge_remplace );      menu = gtk_menu_new ();      menu_item = gtk_menu_item_new_with_label ( "Fusionner les deux listes d'IB" );      gtk_object_set_data ( GTK_OBJECT ( menu_item ),			    "choix",			    NULL );      gtk_menu_append ( GTK_MENU ( menu ),			menu_item );      gtk_widget_show ( menu_item );      menu_item = gtk_menu_item_new_with_label ( "Remplacer l'ancienne liste d'IB" );      gtk_object_set_data ( GTK_OBJECT ( menu_item ),			    "choix",			    GINT_TO_POINTER ( 1 ));      gtk_menu_append ( GTK_MENU ( menu ),			menu_item );      gtk_widget_show ( menu_item );      gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_merge_remplace ),				 menu );      gtk_widget_show ( menu );    }  resultat = gnome_dialog_run ( GNOME_DIALOG ( dialog ));  switch ( resultat )    {    case 0 :      nom_ib = g_strdup ( g_strstrip ( (gchar *) gtk_entry_get_text ( GTK_ENTRY ( gnome_file_entry_gtk_entry ( GNOME_FILE_ENTRY ( fenetre_nom ))))));      gnome_dialog_close ( GNOME_DIALOG ( dialog ));      /* vrification que c'est possible */      if ( !strlen ( nom_ib ))	return;      /* si on a choisi de remplacer l'ancienne liste, on la vire ici */      if ( !no_derniere_operation	   &&	   gtk_object_get_data ( GTK_OBJECT ( GTK_OPTION_MENU ( bouton_merge_remplace ) -> menu_item ),				 "choix" ))	{	  g_slist_free ( liste_struct_imputation );	  liste_struct_imputation = NULL;	  no_derniere_imputation = 0;	  nb_enregistrements_imputations = 0;	}      if ( !charge_ib ( nom_ib ))	{	  dialogue ( "L'importation a chou." );	  return;	}      break;    default :      gnome_dialog_close ( GNOME_DIALOG ( dialog ));      return;    }}