diff options
Diffstat (limited to 'client/browser/src/main.cpp')
-rw-r--r-- | client/browser/src/main.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/client/browser/src/main.cpp b/client/browser/src/main.cpp deleted file mode 100644 index 2104e652..00000000 --- a/client/browser/src/main.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include <QtGui/QApplication> -#include <stdio.h> -#include "mainwindow.h" -#include <Qt/qtextcodec.h> -// Internacionalización con GNU Gettext. -#include <libintl.h> -#define TEXTDOMAIN "browser" -#define LOCALEDIR "/opt/opengnsys/lib/locale" -#define CHARSET "UTF-8" - -int main(int argc, char *argv[]) -{ - // Preparar internacionalización. - setlocale (LC_ALL, ""); - bindtextdomain (TEXTDOMAIN, LOCALEDIR); - textdomain (TEXTDOMAIN); - - if(argc<=1) - { - printf(gettext("Uso: %s -qws http://sitioweb.com/\n"),argv[0]); - return -1; - } - // Codificación de caracteres. - QTextCodec::setCodecForTr(QTextCodec::codecForName(CHARSET)); - QTextCodec::setCodecForCStrings(QTextCodec::codecForName(CHARSET)); - QTextCodec::setCodecForLocale(QTextCodec::codecForName(CHARSET)); - - QApplication a(argc, argv); - MainWindow w; - w.show(); - return a.exec(); -} |