//
// mgui/tests/test_gettext.cpp
// This file is part of Bombono DVD project.
//
// Copyright (c) 2010 Ilya Murav'jov
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
// 

#include <mgui/tests/_pc_.h>

//#include <libintl.h>
//#define _(String) gettext(String)
//#define gettext_noop(String) String
//#define N_(String) gettext_noop(String)

#include <mgui/project/mconstructor.h>
#include <mgui/win_utils.h>
#include <mgui/dialog.h>

#include <mlib/stream.h>
#include <mlib/tech.h>
//#include <mlib/filesystem.h>
#include <mgui/gettext.h>

BOOST_AUTO_TEST_CASE( TestGettext )
{
    return;
    InitI18n();
    
    const char* not_trans_text = N_("not_trans_text");
    BOOST_CHECK( strcmp(not_trans_text, "not_trans_text") == 0 );

    io::cout << _("Hello, world!") << io::endl;
    //io::cout << boost::format(_("writing %1%,  x=%2% : %3%-th try")) % "toto" % 40.23 % 50; 
}

BOOST_AUTO_TEST_CASE( TestMBLinks )
{
    return;
    InitGtkmm();

    std::string err_str = "See more about preparing video for authoring in <a href=\"http://www.bombono.org/\">online help</a>.";
    MessageBoxWeb("Message", Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, err_str);
}

