diff --git a/src/qtgui/main.cpp b/src/qtgui/main.cpp index 97781dce..7734bdff 100644 --- a/src/qtgui/main.cpp +++ b/src/qtgui/main.cpp @@ -1,10 +1,14 @@ #ifndef lint -static char rcsid[] = "@(#$Id: main.cpp,v 1.10 2005-10-19 10:21:48 dockes Exp $ (C) 2005 J.F.Dockes"; +static char rcsid[] = "@(#$Id: main.cpp,v 1.11 2005-10-22 05:35:16 dockes Exp $ (C) 2005 J.F.Dockes"; #endif #include #include + +#include +#include + #include #include @@ -81,10 +85,15 @@ static void sigcleanup(int) recollNeedsExit = 1; } - int main( int argc, char ** argv ) { QApplication a(argc, argv); + + QTranslator translator( 0 ); + // QTextCodec::locale() return $LANG + translator.load( QString("recoll_") + QTextCodec::locale(), "." ); + a.installTranslator( &translator ); + RecollMain w; w.show(); a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); diff --git a/src/qtgui/recoll.pro b/src/qtgui/recoll.pro index f55e2ab2..558d47bd 100644 --- a/src/qtgui/recoll.pro +++ b/src/qtgui/recoll.pro @@ -38,3 +38,4 @@ contains( UNAME, [lL]inux ) { LIBS -= -liconv } +TRANSLATIONS = recoll_fr.ts diff --git a/src/qtgui/recoll_fr.ts b/src/qtgui/recoll_fr.ts new file mode 100644 index 00000000..01eee1f5 --- /dev/null +++ b/src/qtgui/recoll_fr.ts @@ -0,0 +1,155 @@ + + + Preview + + Preview + Previsualisation + + + Preview 1 + Previsualisation 1 + + + &Search for: + &Rechercher: + + + &Next + &Suivant + + + Alt+N + Alt+S + + + &Previous + &Precédent + + + Alt+P + Alt+P + + + Match &Case + Respecter la &casse + + + Alt+C + Alt+C + + + Close Tab + Fermer la tabulation + + + + RecollMain + + recoll + recoll + + + Search + Rechercher + + + Clear + Effacer + + + Ctrl+S + Ctrl+S + + + Previous page + Page précedente + + + Next page + Page suivante + + + Advanced search + Recherche avancée + + + &File + &Fichier + + + Exit + Quitter + + + E&xit + &Quitter + + + Start Indexing + Commencer l'indexation + + + + advsearch + + Advanced search + Recherche avancée + + + Search For + Rechercher + + + All these words + Tous les mots + + + This exact phrase + Cette phrase exactement + + + Any of these words + N'importe lequel de ces mots + + + None of these words + Aucun parmi ces mots + + + Restrict file types + Restraindre le type de fichier + + + Searched file types + Type de fichier recherché + + + --------> + --------> + + + <--------- + <--------- + + + Ignored file types + Types de fichier ignorés + + + Browse + ButinerParcourir + + + Restrict results to files in subtree: + Restraindre les résultats aux fichiers de l'arborescenc: + + + Start Search + Lancer la recherche + + + Dismiss + Annuler + + +