Skip to content
Snippets Groups Projects
Commit e6ec9c1b authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: introduction of internationalization in OTB

parent a8b6a010
Branches
Tags
No related merge requests found
# 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}
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment