diff --git a/ViewerManager/View/otbImageViewerManagerViewGroup.fl b/ViewerManager/View/otbImageViewerManagerViewGroup.fl index f94d443534b6d88e132dce7ab222c51d7370bb75..d3120712f46ac3075d27c35f862b614a8a17bd57 100644 --- a/ViewerManager/View/otbImageViewerManagerViewGroup.fl +++ b/ViewerManager/View/otbImageViewerManagerViewGroup.fl @@ -1,5 +1,8 @@ # data file for the Fltk User Interface Designer (fluid) -version 1.0107 +version 1.0109 +i18n_type 1 +i18n_include <libintl.h> +i18n_function gettext header_name {.h} code_name {.cxx} class ImageViewerManagerViewGroup {open @@ -8,8 +11,8 @@ class ImageViewerManagerViewGroup {open } { Fl_Window guiMainWindow { label otbImageViewerManagerView - callback {this->Quit()} open - xywh {833 76 610 460} type Double box UP_BOX color 52 selection_color 7 labelcolor 187 resizable visible + callback {this->Quit()} open selected + xywh {666 76 610 460} type Double box UP_BOX color 52 selection_color 7 labelcolor 187 resizable visible } { Fl_Text_Display guiViewerInformation { label Information @@ -93,7 +96,7 @@ class ImageViewerManagerViewGroup {open callback {Diaporama();} tooltip {Launch the slideshow mode} xywh {490 215 95 25} box ROUND_UP_BOX down_box ROUND_DOWN_BOX shortcut 0x64 color 23 selection_color 23 labelcolor 186 } - Fl_Group gBlanck2 {open selected + Fl_Group gBlanck2 {open xywh {500 288 75 12} resizable } {} } @@ -168,7 +171,7 @@ class ImageViewerManagerViewGroup {open } Fl_Window guiLinkSetupWindow { label {Link Images} open - xywh {738 336 560 220} type Double box UP_BOX color 52 selection_color 7 labelcolor 187 resizable visible + xywh {716 336 560 220} type Double box UP_BOX color 52 selection_color 7 labelcolor 187 resizable visible } { Fl_Input guiLinkXOffset { label {X offset} diff --git a/ViewerManager/otbImageViewerManager.cxx b/ViewerManager/otbImageViewerManager.cxx index 9c6133fed80a8c45c80353f6bb92bfe46198e8c0..8927f5814e254eec9ebd64748add100935f0b050 100644 --- a/ViewerManager/otbImageViewerManager.cxx +++ b/ViewerManager/otbImageViewerManager.cxx @@ -21,10 +21,15 @@ PURPOSE. See the above copyright notices for more information. #include "otbCommandLineArgumentParser.h" #include "otbMsgReporter.h" +#include <libintl.h> + int main(int argc, char* argv[]) { - + setlocale( LC_ALL, "" ); + bindtextdomain( "messages", "/home/christop/OTB/OTB-Binary-Applications-Debug/locale" ); + textdomain( "messages" ); + // Parse command line parameters // typedef otb::CommandLineArgumentParser ParserType; // ParserType::Pointer parser = ParserType::New(); @@ -53,7 +58,7 @@ int main(int argc, char* argv[]) // } // return EXIT_FAILURE; // } - + typedef otb::ImageViewerManagerController ControllerType; typedef otb::ImageViewerManagerViewGUI ViewType; @@ -62,7 +67,7 @@ int main(int argc, char* argv[]) controller->SetView(view); view->SetImageViewerManagerController(controller); //otb::MsgReporter::GetInstance()->SetTitle("Image Viewer Manager application"); - + // view->Show(); for (int i = 1; i<argc;++i)