summaryrefslogtreecommitdiffstats
path: root/client/browser/src/main.cpp
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-04-25 12:43:17 +0000
committerramon <ramongomez@us.es>2016-04-25 12:43:17 +0000
commit7caf92ff3addf94546a755503e33264a0bdff741 (patch)
tree0ae6f7df65cc57d38037ae9f04b7508510784dbc /client/browser/src/main.cpp
parent62b144661849e2836a41fcbf69c61c331d7211e4 (diff)
#244: Preaparar código del Browser para usar GNU Gettext para traducir mensajes y generar el fichero maestro.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4897 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/browser/src/main.cpp')
-rw-r--r--client/browser/src/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/browser/src/main.cpp b/client/browser/src/main.cpp
index dd3ac6ed..1ca697b4 100644
--- a/client/browser/src/main.cpp
+++ b/client/browser/src/main.cpp
@@ -2,12 +2,19 @@
#include <stdio.h>
#include "mainwindow.h"
#include <Qt/qtextcodec.h>
+// Internacionalización con GNU Gettext.
+#include <libintl.h>
int main(int argc, char *argv[])
{
+ // Preparar internacionalización.
+ setlocale (LC_ALL, "");
+ bindtextdomain ("browser", "/opt/opengnsys/lib/locale");
+ textdomain ("browser");
+
if(argc<=1)
{
- printf("Usage: %s http://siteweb.com/\n",argv[0]);
+ printf(gettext("Uso: %s -qws http://sitioweb.com/\n"),argv[0]);
return -1;
}
// Codificación UTF-8.