jenkinsmain
Last change
on this file since ffbf8ac was
dae65b7,
checked in by Vadim Troshchinskiy <vtroshchinskiy@…>, 19 months ago
|
Update browser to Qt5
|
-
Property mode set to
100644
|
File size:
863 bytes
|
Line | |
---|
1 | #include <QApplication> |
---|
2 | #include <stdio.h> |
---|
3 | #include "mainwindow.h" |
---|
4 | // Internacionalización con GNU Gettext. |
---|
5 | #include <libintl.h> |
---|
6 | #define TEXTDOMAIN "browser" |
---|
7 | #define LOCALEDIR "/opt/opengnsys/lib/locale" |
---|
8 | #define CHARSET "UTF-8" |
---|
9 | |
---|
10 | int main(int argc, char *argv[]) |
---|
11 | { |
---|
12 | // Preparar internacionalización. |
---|
13 | setlocale (LC_ALL, ""); |
---|
14 | bindtextdomain (TEXTDOMAIN, LOCALEDIR); |
---|
15 | textdomain (TEXTDOMAIN); |
---|
16 | |
---|
17 | if(argc<=1) |
---|
18 | { |
---|
19 | printf(gettext("Uso: %s -qws http://sitioweb.com/\n"),argv[0]); |
---|
20 | return -1; |
---|
21 | } |
---|
22 | // Codificación de caracteres. |
---|
23 | //QTextCodec::setCodecForTr(QTextCodec::codecForName(CHARSET)); |
---|
24 | // QTextCodec::setCodecForCStrings(QTextCodec::codecForName(CHARSET)); |
---|
25 | //QTextCodec::setCodecForLocale(QTextCodec::codecForName(CHARSET)); |
---|
26 | |
---|
27 | QApplication a(argc, argv); |
---|
28 | MainWindow w; |
---|
29 | w.show(); |
---|
30 | return a.exec(); |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.